Disabled the loading screen as described in the EAQ. This should fix the not being able to run Minecraft.
To build your mod, run
gradlew build
from the command line, the sam way you setup you workspace.
Best thing is to store the
UUID
of the player. You can get the
UUID
from a player using
Entity#getUniqueID()
. To save it to NBT, save the
getLeastSignificantBits()
and
getMostSignificantBits
result (
longs
). To recreate the
UUID
, use the constructor that accepts 2
longs
(the most and least significant bits) which you saved to NBT.
The Minecraft By Example from TheGreyGhost has a
Block
that has the camouflage parts you want: https://github.com/TheGreyGhost/MinecraftByExample/tree/master/src/main/java/minecraftbyexample/mbe04_block_dynamic_block_model1
Instead of checking for duplicates when reading the values, check for duplicated when adding them to the
List
. There's
List<T>#contains(T)
which returns true if
T
is already in the
List<T>
.
It's used in GuiContainerCreative
:
this.mc.getTextureManager().bindTexture(new ResourceLocation("textures/gui/container/creative_inventory/tab_" + creativetabs.getBackgroundImageName()));
There's no domain specified, meaning it's looking in the minecraft domain.
Use the
BlockEvent.PlaceEvent
to check if the Blocks below are melon blocks, then remove those and spawn a golem. Look at
BlockPumpkin#trySpawnGolem
for how vanilla is doing it.