Turrets Tutorial: Items
You can use the following option in all items:
custom_model_data: <value>
If you are on 1.21.4+ use instead this option:
custom_model_component_data:
strings:
- "<value1>"
flags:
- "<value1>"
- "<value2>"
floats: []
colors: []
Main Items
Block Item
It's the block players will receive from the /ct give <turret> <player>
command. You can use the following variables in the lore of the item: %upgrade_level%, %min_damage%, %max_damage%, %min_heal%, %max_heal%, %speed%, %range%, %health%, %splash_radius%, %max_targets%, %accuracy%, %max_ammo%, %action_<action>_probability%, %action_<action>_duration%, %critical_chance%
You can also use %fire_rate%
which will show how many shots the turret do in 1 second.
Ammunition Item
It's the item players will receive from the /ct giveammo <turret> <player> <amount>
command. These items must be placed inside the turret ammunition inventory.
Inventory Items
Upgrade Item
This is the item the player needs to click to upgrade the turret inside the turret inventory. You can use the same variables as the ones in Block Item but adding a current
or next
before. You can also use the %money_cost%
variable and the %item_cost%
variable.
Last Upgrade Item
The same item as before but when the turret is at the max level.
Last updated