Started by
rileyvl123
on
Topic category: Help with Minecraft modding (Java Edition)
I’m building a theme park and a mod to make it all look better and I would like to make custom minecarts. They would have the same properties and everything as a normal minecart the only thing that changes is the model. How do I do this?
This is pretty simple, but will sound complicated. Just focus at one section at a time.
In Blockbench create your "awesome_whatevermodel_00.json", import it to MCreator as a block. Easy right! Now, while adding this model as a block ... send it to the No creative tab entry (just to keep your tabs clean and organized), zero/clear every value on the Generation tab, and save it.
-------------------------------------------------------------
Now, create a function.
This will summon a minecart with a custom tile/model, with this custom name, while using a tile from your mod_id using that block. The next line is for clearing the item from the player's main hand. Save it. REMEMBER THE NAME OF THIS FUNCTION
-------------------------------------------------------------
Next ... Create an item. The item model is the block you just added, change any other value (not really necesary). Go to Triggers >> When right clicked on block, add a procedure. Now you will create a procedure >> In that procedure add four (4) Execute command/ and type the following: (one line per execute)
Why four? It will execute if under the player"s feet is - rail or powered rail or detector rail or activator rail - if true, it will run the function.
Now save this, then save the previous item you had standing-by. You are done, now test it.
----------------------------Important---------------------------------
If your custom model is too low/high, your function must be modified:
DisplayOffset
The offset of the block displayed in the Minecart in pixels. Positive values move the block upwards, while negative values move it downwards. A value of 16 will move the block up by exactly one multiple of its height.
reference: https://mcstacker.net/1.16.php
----------------------------Important---------------------------------
This is how I did it (there are many other far better and efficient ways to do it)
In game demo - https://mcreator.net/modification/78806/custom-3d-elytraarmor
It doesn't work for me
are you sure it's a block and not an entity ?
@_SK_ it doesn't work for, i followed your tutorial exactly as told and it still doesn't work