-
-
Notifications
You must be signed in to change notification settings - Fork 4
Custom textures
Vaan1310 edited this page Jan 19, 2026
·
2 revisions
This section will cover everything regarding loading items and entities, if you wanted custom block textures, then you want to check Custom Block Schematics.
Any custom item, regardless of stored data, such as Custom Model Data, can be used as loading item as long as the name and lore match the one defined in the relative cannon projectile definition.
If you want to change the custom texture of the fired projectile entity, you can use 3 approaches:
- use Throwable projectiles entities and custom model data: this will set the item type to a itemstack with said custom model data.
- use ItemDisplay entities and custom model data: the stored entity will be set to the item type to a itemstack with said custom model data.
- use the raw projectile entitity: the spawned entities has a PDC data containing
cannons:mob_type = <baseProjectileDefinition:key>, you can technically make your texturepack use that using the BaseProjectileDefinition
Note
Custom model data must be in the old format, so integer format.
According to documentation:
Integers from the old custom model data are equivalent to a single float in the CustomModelDataComponent.setFloats(java.util.List) list.