From 7a91712f47889e46c49eb4ef37e852898f44c11c Mon Sep 17 00:00:00 2001 From: Mark Rapson Date: Fri, 4 Apr 2025 16:17:49 +0100 Subject: [PATCH] Offhand Update Updated location for offhand in 1.21.5 --- data/custom_item_model_data/function/trigger.mcfunction | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/custom_item_model_data/function/trigger.mcfunction b/data/custom_item_model_data/function/trigger.mcfunction index e21c638..319be98 100644 --- a/data/custom_item_model_data/function/trigger.mcfunction +++ b/data/custom_item_model_data/function/trigger.mcfunction @@ -1,5 +1,5 @@ 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 scoreboard players reset @s CustomModel