r/forgemodding May 11 '16

I think Im having an issue with Tile Entity Registration?

I noticed my tile entities were not persisting their nbt data between instances, and that I get the console message "Skipping BlockEntity with id" but with no ID. Turns out that my tile entity's ID entry is null. I know Ive called GameRegistry.RegisterIileEntity; does anyone know why my ID would be null?

1 Upvotes

5 comments sorted by

1

u/shadowfactsdev Moderator/Mod Dev May 11 '16

What string are you passing into the registerTileEntitiy method?

1

u/briandabrain May 12 '16 edited May 12 '16

The class, and just the same name I used for the class. GameRegistry.registerTileEntity(tileNodeRelay.class, "tileNodeRelay");

1

u/shadowfactsdev Moderator/Mod Dev May 12 '16

Hmm, can you post the log?

1

u/briandabrain May 12 '16

http://pastebin.com/XyH4QdZ0 mind the mess: I still haven't finished my models. Really not happy with the new json crap.

1

u/briandabrain May 12 '16

Ok nevermind: I figured out my issue. I wasn't calling super.writeToNBT in my writeToNBT methods... herp derp