Offhand Update

Updated location for offhand in 1.21.5
This commit is contained in:
Mark Rapson 2025-04-04 16:17:49 +01:00
parent 1f861cba2b
commit 7a91712f47

View File

@ -1,5 +1,5 @@
execute as @s run data remove storage custom_item_model_data:item_model Model execute as @s run data remove storage custom_item_model_data:item_model Model
execute as @s run data modify storage custom_item_model_data:item_model Model set from entity @s Inventory[{Slot:-106b}].components.minecraft:writable_book_content.pages[0].raw execute as @s run data modify storage custom_item_model_data:item_model Model set from entity @s equipment.offhand.components.minecraft:writable_book_content.pages[0].raw
execute as @s run function custom_item_model_data:set_model with storage custom_item_model_data:item_model {} execute as @s run function custom_item_model_data:set_model with storage custom_item_model_data:item_model {}
execute as @s run scoreboard players reset @s CustomModel execute as @s run scoreboard players reset @s CustomModel