I dont know if that is the problem, but I would recommend you to add the slots in this order:
1. Slot(s) of the TileEntity
2. Player Inventory
3. Player Hotbar
Since the Container uses a List of Slots it may be the problem
Also, what does
theVitr.openInventory
do?
@Override, as far as I know, doesnt actually do anything just lets you know that you override
TEBlock is just a Block that provides a TileEntity, here the Code to be clear:
I want to have a normal Block that just auto-faces the player when placed, and tried using the code from the furnace but I couldnt get it to work. The Block gets textured right but it doesnt rotate
My Block Class:
blockstate file:
block model file:
DUDE THIS MISTAKE...
Thanks!
Now it works!
Just wanted to ask: can't you call only the clientproxy if this is only clientside stuff? the current thing i've been told is that i have to make empty methods in the commonproxy and then override them
And my tile Entity drops black-purple particles why doesnt it automatically generate some from the block texture?
Here are the relevant Codeparts:
1. The Model still doesnt show (I now tested it with replacing the Modelloader line with Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(b), 0, new ModelResourceLocation(b.getRegistryName().toString())); and this does work)
2. As you can see in the code if I am not totally dumb the Item is registered before the recipe
1. I made a new method in the Clientproxy to call this in the postinit:
ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(b), 0, new ModelResourceLocation(""+b.getRegistryName()));
but the texture doesnt apply(it is getting called tho!)
2.JEI says this in the log:
Sitting and thinking for hours now, I will ask here: If i try to craft my testblock (code: http://pastebin.com/EQfVMuda) Minecraft crashes: http://pastebin.com/mYP5CN8x
Seema like it cant resolve the item in the ItemStack but the mc code is so weird...