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:
21
data/armor_statues/functions/repeat/undo.mcfunction
Normal file
21
data/armor_statues/functions/repeat/undo.mcfunction
Normal file
@@ -0,0 +1,21 @@
|
||||
#
|
||||
# Description: Undo last armor stand action
|
||||
# Called by: as_statue:repeat/undo_redo
|
||||
# Entity @s: player
|
||||
#
|
||||
# Copies current state to redo states
|
||||
#
|
||||
function armor_statues:repeat/save_redo_state
|
||||
#
|
||||
# Copies last undo state to armor stand
|
||||
#
|
||||
data modify entity @e[type=minecraft:armor_stand,sort=nearest,limit=1] {} merge from storage customizable_armor_stands:book_storage SavedItem.tag.UndoStates[0]
|
||||
data modify entity @e[type=minecraft:armor_stand,sort=nearest,limit=1] Pose set from storage customizable_armor_stands:book_storage SavedItem.tag.UndoStates[0].Pose
|
||||
#
|
||||
# Deletes undo state state
|
||||
#
|
||||
data remove storage customizable_armor_stands:book_storage SavedItem.tag.UndoStates[0]
|
||||
#
|
||||
# Modifies book data
|
||||
#
|
||||
execute as @s run function armor_statues:storage_out
|
Reference in New Issue
Block a user