Custom Models - TheClowner/ccRides-Support GitHub Wiki
ccRides supports using custom item models for the seats of a ride, rather than a minecart.
Support is not offered for creating models or resource packs. I will only offer support on how it needs to be setup to work with ccRides!
Please Note: ccRides does not have any options to adjust the size or alignment of models, if your model is the wrong size, or in the wrong place, you'll need to adjust your model or resource pack.
To start using custom models, you'll first need to create a resource pack with some custom models in:
Creating a resource pack
These models will need to be assigned to a handheld item (eg GOLDEN_PICKAXE, EMERALD, COAL), and assigned to specific data values for that item. This means the model will not show up if someone gets a regular version of the item.
You can also assign multiple models to the same item, with different data values.
Depending on your game version, there are two different ways to assign the models to items:
For Minecraft version 1.14 and above: use
custom_model_data
For Minecraft version 1.9 to 1.13: usedamage
damage
values will not work in 1.14 and above, you can only usecustom_model_data
!
custom_model_data
(1.14 and above only!)
With Click here for a more detailed tutorial.
Example Item File (carrot_on_a_stick.json):
{
"parent": "item/handheld_rod",
"textures": {
"layer0": "items/carrot_on_a_stick"
},
"overrides":[
{"predicate": {"custom_model_data":3}, "model":"item/custom/model_3"},
{"predicate": {"custom_model_data":2}, "model":"item/custom/model_2"},
{"predicate": {"custom_model_data":1}, "model":"item/custom/model_1"}
]
}
With Durability (1.13 and older only!)
Click Here for a more detailed tutorial.
Example Item File (wood_hoe.json):
{
"parent": "item/handheld",
"textures": {
"layer0": "items/wood_hoe"
},
"overrides": [
{"predicate": {"damaged": 0, "damage": 0.03333333333333}, "model": "item/model_2"},
{"predicate": {"damaged": 0, "damage": 0.01666666666667}, "model": "item/model_1"},
{"predicate": {"damaged": 1, "damage": 0}, "model": "item/wooden_hoe"}
]
}
Adding models to a ride
To get this to show up on a ride, set the following settings with /rideadm [ridename] setting ...
CUSTOM_MODEL_ENABLED
- set this to true to make it use custom models.
CUSTOM_MODEL_MATERIAL
- the item to use.
CUSTOM_MODEL_DATA
- the custom data set in the resource pack.
And then reload the ride with /rideadm [ridename] reload
The ride will then spawn armour stands with the specified item instead of minecarts for the seats.