Hi everyone,
I'm new to Forge mod programming and I'm trying to write a simple mod to implement a new type of minecart.
Actually, most of the work is done: I have defined a new item (ItemUnstoppableMinecart) and a new entity (EntityUnstoppableMinecart), extended from EntityMinecartEmpty class.
I am able to place the custom entity using the item, and all the overridden methods are correcly called.
However I'm having two issues which I think are related:
- I'm not able to associate a Render class to the custom entity, which is still rendered as a vanilla one
- Carts get saved as vanilla minecarts, so when the game is restarted (single player), they become vanilla carts
I checked the map saves using NBTExplorer, basically each custom cart gets saved with "id:minecraft:minecart".
All the source code is on GitHub: https://github.com/psoftware/unstopping-minecarts
What am I missing? Can you help me?
Thank you very much