#I would like to set my give items to have custom model data.
1 messages · Page 1 of 1 (latest)
okay

thats what i was seaching for
i was under the impression that i had to seach for the item being held causes the custom model data to run
.

in here its fine
here its fine aswell
yet when i go to get the item back
it doesnt have the data
Add the data when you create the item
enchant {_p} with mending 100
set custom model data of {_p} to 100
#Then, later:
give player {_p}```
ts make no sense 🙏 😭
do you mean like i make the item then get it later
bc thats not what im tryna do for this
basically, you equip the shard and it has custom data aka 1
then maybe explain what youre doing, please
then that goes in and you have it in your slot
when you run /withdrawl
it removes it from your slot and gives the item back to you with the correct name, currently i want the data to also be sent back or kind of added. since for the first /equip there is no reason for it to check for data
so i just need the data to be added when you withdrawal the item from your slot
okay so show the code for that part
the withdrawl?
theres a couple of other shards im working on aswell, but i want to do pulse first since i have its texture in the pack
command /WithdrawalShard:
trigger:
if {EquipShard::%player%.shards} is 1:
set {EquipShard::%player%.shards} to 0
give player amethyst shard named "&c&lBloodLust Shard"
message "&f&lBloodLust Shard Unequipped %{EquipShard::%player%.shards}%" to player
else if {EquipShard::%player%.shards} is 2:
set {EquipShard::%player%.shards} to 0
give player amethyst shard named "&a&lDasher Shard"
message "&f&lDasher Shard Unequipped %{EquipShard::%player%.shards}%" to player
else if {EquipShard::%player%.shards} is 3:
set {EquipShard::%player%.shards} to 0
give player amethyst shard named "&6&lVolcanic Shard"
message "&f&lVolcanic Shard Unequipped %{EquipShard::%player%.shards}%" to player
else if {EquipShard::%player%.shards} is 4:
set {EquipShard::%player%.shards} to 0
give player amethyst shard named "&7&lMind Shard"
message "&f&lMind Shard Unequipped %{EquipShard::%player%.shards}%" to player
else if {EquipShard::%player%.shards} is 5:
set {EquipShard::%player%.shards} to 0
give player amethyst shard named "&2&lTwister Shard"
message "&f&lTwister Shard Unequipped %{EquipShard::%player%.shards}%" to player
else if {EquipShard::%player%.shards} is 6:
set {EquipShard::%player%.shards} to 0
give player amethyst shard named "&3&lPulse Shard"
message "&f&lPulse Shard Unequipped %{EquipShard::%player%.shards}%" to player
else if {EquipShard::%player%.shards} is 7:
set {EquipShard::%player%.shards} to 0