mirror of
https://github.com/LZStealth/armor-statues.git
synced 2025-08-10 08:35:52 +01:00
Initial commit for armor statues
This commit is contained in:
9
data/armor_statues/functions/storage_in.mcfunction
Normal file
9
data/armor_statues/functions/storage_in.mcfunction
Normal file
@@ -0,0 +1,9 @@
|
||||
#
|
||||
# Description: Copies player book from mainhand or offhand into storage
|
||||
# Called by: as_statue:trigger\copy as_statue:trigger\paste
|
||||
# Entity @s: player
|
||||
#
|
||||
# Temp storage to copy
|
||||
#
|
||||
execute if entity @s[nbt={SelectedItem:{id:"minecraft:written_book", tag:{datapack:"ArmorStatuesV2"}}}] run data modify storage customizable_armor_stands:book_storage SavedItem set from entity @s SelectedItem
|
||||
execute if entity @s[nbt={Inventory:[{id:"minecraft:written_book", Slot:-106b, tag:{datapack:"ArmorStatuesV2" }}]}] unless entity @s[nbt={SelectedItem:{id:"minecraft:written_book", tag:{datapack:"ArmorStatuesV2"}}}] run data modify storage customizable_armor_stands:book_storage SavedItem set from entity @s Inventory[{Slot:-106b}]
|
Reference in New Issue
Block a user