mirror of
https://github.com/LZStealth/armor-statues.git
synced 2025-06-07 17:16:44 +01:00
fix for undo/redo and scale. Possible fix for paper issue
This commit is contained in:
parent
d7b2cd84d9
commit
3c4da99742
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,2 @@
|
||||
*.zip
|
||||
*.zip
|
||||
*.py
|
6
1_20_5/data/armor_statues/functions/book_data.mcfunction
Normal file
6
1_20_5/data/armor_statues/functions/book_data.mcfunction
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -11,6 +11,7 @@ function armor_statues:repeat/save_undo_state
|
||||
#
|
||||
data modify entity @e[type=minecraft:armor_stand,sort=nearest,limit=1] {} merge from storage armor_statues:book_storage SavedItem.components.minecraft:custom_data.RedoStates[0]
|
||||
data modify entity @e[type=minecraft:armor_stand,sort=nearest,limit=1] Pose set from storage armor_statues:book_storage SavedItem.components.minecraft:custom_data.RedoStates[0].Pose
|
||||
execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_selected] run function armor_statues:set_scale with storage armor_statues:book_storage SavedItem.components.minecraft:custom_data.RedoStates[0]
|
||||
#
|
||||
# Deletes redo state
|
||||
#
|
||||
|
@ -17,3 +17,4 @@ data modify storage armor_statues:book_storage SavedItem.components.minecraft:cu
|
||||
data modify storage armor_statues:book_storage SavedItem.components.minecraft:custom_data.RedoStates[0].Pos set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] Pos
|
||||
data modify storage armor_statues:book_storage SavedItem.components.minecraft:custom_data.RedoStates[0].Rotation set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] Rotation
|
||||
data modify storage armor_statues:book_storage SavedItem.components.minecraft:custom_data.RedoStates[0].HasVisualFire set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] HasVisualFire
|
||||
execute store result storage armor_statues:book_storage SavedItem.components.minecraft:custom_data.RedoStates[0].Scale double 0.001 run attribute @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] minecraft:generic.scale get 1000
|
||||
|
@ -17,3 +17,4 @@ data modify storage armor_statues:book_storage SavedItem.components.minecraft:cu
|
||||
data modify storage armor_statues:book_storage SavedItem.components.minecraft:custom_data.UndoStates[0].Pos set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] Pos
|
||||
data modify storage armor_statues:book_storage SavedItem.components.minecraft:custom_data.UndoStates[0].Rotation set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] Rotation
|
||||
data modify storage armor_statues:book_storage SavedItem.components.minecraft:custom_data.UndoStates[0].HasVisualFire set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] HasVisualFire
|
||||
execute store result storage armor_statues:book_storage SavedItem.components.minecraft:custom_data.UndoStates[0].Scale double 0.001 run attribute @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] minecraft:generic.scale get 1000
|
||||
|
@ -11,6 +11,7 @@ function armor_statues:repeat/save_redo_state
|
||||
#
|
||||
data modify entity @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_selected] {} merge from storage armor_statues:book_storage SavedItem.components.minecraft:custom_data.UndoStates[0]
|
||||
data modify entity @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_selected] Pose set from storage armor_statues:book_storage SavedItem.components.minecraft:custom_data.UndoStates[0].Pose
|
||||
execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_selected] run function armor_statues:set_scale with storage armor_statues:book_storage SavedItem.components.minecraft:custom_data.UndoStates[0]
|
||||
#
|
||||
# Deletes undo state state
|
||||
#
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
3180
book_master.json
Normal file
3180
book_master.json
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user