-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
[1.10.2]Impossible to create bow enchantment
Animefan8888 replied to fcelon's topic in Modder Support
Post your code. -
[1.10.2]Impossible to create bow enchantment
Animefan8888 replied to fcelon's topic in Modder Support
shootingEntity is public -
What do you mean by creating a "custom Inventory" ? Is the InventoryBasic not sufficient for this kind of things ? Also, I am surprised that nobody tried to develop this in Forge. I searched few minutes on google and different forge forums and I have not been able to find a single topic talking about this. Create a class that extends InventoryBasic. Then in the constructor have it pass ItemStack Arrays and loop through them and add them to the already existing array with setInventorySlotContents or addItem.
-
You have to register and add the model in preInit
-
There needs to be a assets folder before your modid.
-
[SOLVED] [1.10.2] Custom player inventory doesn't display GUI
Animefan8888 replied to Daeruin's topic in Modder Support
Because they are accessing their variables not yours. -
[SOLVED] [1.10.2] Custom player inventory doesn't display GUI
Animefan8888 replied to Daeruin's topic in Modder Support
Private variables only allow that instance to access them and they only exist within those bounds. -
[SOLVED] [1.10.2] Custom player inventory doesn't display GUI
Animefan8888 replied to Daeruin's topic in Modder Support
You never actually set oldMouseX or oldMouseY to anything after declaring them. -
[SOLVED] [1.10.2] Custom player inventory doesn't display GUI
Animefan8888 replied to Daeruin's topic in Modder Support
Look at the names of the parameters in drawEntiryOnScreen specifically the ladt two floats. -
How to get EntityPlayerMP from EntityPlayer?
Animefan8888 replied to CBUltimate's topic in Modder Support
Cast it, dont forget instanceof. -
[1.8] Entity stealing items from inventory
Animefan8888 replied to IAmDrinkingLemonade's topic in Modder Support
Post the crash. -
[SOLVED] [1.10.2] Custom player inventory doesn't display GUI
Animefan8888 replied to Daeruin's topic in Modder Support
Post the code you think does that. -
[SOLVED] [1.10.2] Custom player inventory doesn't display GUI
Animefan8888 replied to Daeruin's topic in Modder Support
Definitely will, it has a read and write method -
[SOLVED] [1.10.2] Custom player inventory doesn't display GUI
Animefan8888 replied to Daeruin's topic in Modder Support
I would say best bet would be to rearrange your slots/ItemStacks. -
[1.11.2] ItemStack.loadItemStackFromNBT();
Animefan8888 replied to rowan662's topic in Modder Support
If you are saving an inventory to a TE, you should just be able to do itemStackHandlerField.serialize/deserialize. Have you switched over to the new Capability system? -
[1.11.2] ItemStack.loadItemStackFromNBT();
Animefan8888 replied to rowan662's topic in Modder Support
Look at ItemStackHandler#deserializeNBT for how it loads an ItemStack from NBT and ItemStackHandler#serializeNBT for writing of ItemStacks.