Skip to content

Instantly share code, notes, and snippets.

@lilypuree
lilypuree / Winter miscellanea
Last active November 15, 2020 19:59
Winterjam 2020 block ideas
-Icicles (models are already done)
-Ice Balls : throwable ice cubes that deal damage
-Glacial Snow : harder snow
-Glacial Ice : prettier ice
-Candy Cane : sugar cane variant
-Candy Cane Blocks : crafted from candy cane
-Assorted Winter Decorations : Small trinkets that are placeable in one block space.
-Snowy variants for vanilla foliage(grass, ferns, vines and possibly more)
package lilypuree.dragonvale.dragons.entity.client;
import com.google.gson.Gson;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.vertex.IVertexBuilder;
import lilypuree.dragonvale.dragons.DragonGrowthStages;
import lilypuree.dragonvale.dragons.entity.DragonEntityBase;
import net.minecraft.client.Minecraft;
package lilypuree.dragonvale.dragons.entity;
import lilypuree.dragonvale.dragons.DragonGrowthStages;
import lilypuree.dragonvale.treats.items.TreatItem;
import net.minecraft.entity.*;
import net.minecraft.entity.ai.goal.LookRandomlyGoal;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.CompoundNBT;
package lilypuree.dragonvale.treats.blocks;
import lilypuree.dragonvale.DragonvaleMain;
import lilypuree.dragonvale.maptags.ItemToIntMapTags;
import lilypuree.dragonvale.maptags.MapTag;
import lilypuree.dragonvale.setup.registry.DragonvaleBlocks;
import lilypuree.dragonvale.setup.registry.DragonvaleItems;
import lilypuree.dragonvale.setup.registry.Registration;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.player.PlayerInventory;
package lilypuree.forest_tree.trees.client.render;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.vertex.IVertexBuilder;
import lilypuree.forest_tree.ForestTree;
import lilypuree.forest_tree.Registration;
import lilypuree.forest_tree.client.HologramRenderType;
import lilypuree.forest_tree.trees.customization.TreeDesignerTile;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.*;
package lilypuree.forest_tree.trees.customization;
import lilypuree.forest_tree.Registration;
import lilypuree.forest_tree.util.ContainerHelper;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.player.PlayerInventory;
import net.minecraft.inventory.container.Container;
import net.minecraft.inventory.container.IContainerProvider;
import net.minecraft.item.ItemStack;
package lilypuree.forest_tree.trees.customization;
import lilypuree.forest_tree.Registration;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.player.PlayerInventory;
import net.minecraft.inventory.container.Container;
import net.minecraft.inventory.container.INamedContainerProvider;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.CompoundNBT;
import net.minecraft.tileentity.TileEntity;
package lilypuree.forest_tree.trees.client.gui;
import com.mojang.blaze3d.matrix.MatrixStack;
import lilypuree.forest_tree.ForestTree;
import lilypuree.forest_tree.Registration;
import lilypuree.forest_tree.gui.GuiExtended;
import lilypuree.forest_tree.trees.customization.TreeDesignerContainer;
import lilypuree.forest_tree.trees.world.gen.feature.parametric.Module;
import lilypuree.forest_tree.trees.world.gen.feature.parametric.TreeGenParamData;
import net.minecraft.client.gui.screen.inventory.ContainerScreen;
> Configure project :
New Dep: net.minecraftforge:forge:1.15.2-31.1.19_mapped_snapshot_20200624-1.15.1_at_da39a3ee5e6b4b0d3255bfef95601890afd80709
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:command_line_warnings
CONFIGURE SUCCESSFUL in 1s
[16:46:58] [main/INFO]: Writing debug log file accesstransform.log
private void putVertex(BakedQuadBuilder builder, Vector3f normal,
double x, double y, double z, float u, float v, TextureAtlasSprite sprite, float r, float g, float b) {
ImmutableList<VertexFormatElement> elements = builder.getVertexFormat().getElements().asList();
for (int j = 0; j < elements.size(); j++) {
VertexFormatElement e = elements.get(j);
switch (e.getUsage()) {
case POSITION:
builder.put(j, (float) x, (float) y, (float) z, 1.0f);
break;