1
0
mirror of https://github.com/LZStealth/armor-statues.git synced 2025-06-07 17:16:44 +01:00

1.20.4 update

Did a bunch of code cleanup
added
This commit is contained in:
MukiTanuki 2023-12-11 01:23:40 -08:00
parent b0fb665755
commit 65cd11e331
54 changed files with 5502 additions and 1 deletions

View File

@ -0,0 +1,43 @@
#
# Description: Check for players with trigger score set
# Called by: #minecraft:load
# Entity @s: none
#
schedule function armor_statues:3_second 3s
#
# Tags item frames with a book in them
#
execute if score #animate_trigger as_angle matches 1.. as @e[type=#armor_statues:item_frames,tag=!as_animatable,predicate=armor_statues:item_frame_with_book] run tag @s add as_animatable
# Untags
execute if score #animate_trigger as_angle matches 1.. as @e[type=#armor_statues:item_frames,tag=as_animatable,predicate=!armor_statues:item_frame_with_book] run tag @s remove as_animatable
#
# Turns invisible armor stands visible if they don't have any items, customNameVisible, aren't locked, are markers, or invulnerable
#
execute as @e[type=minecraft:armor_stand, tag=as_invisible, nbt={Invisible:1b}, nbt=!{Invulnerable:1b}, nbt=!{Marker:1b}, nbt=!{HandItems:[ {Count:1b} ]}, nbt=!{ArmorItems:[ {Count:1b} ]}, nbt=!{CustomNameVisible:1b}, tag=!as_locked] run function armor_statues:set_visible
#
# Unlocks tool rack armor stands if the tripwire hook is broken
#
execute as @e[type=minecraft:armor_stand, tag=as_tool_rack, nbt=!{Small:1b}] at @s unless block ~ ~1 ~ minecraft:tripwire_hook run function armor_statues:remove_tool_rack
execute as @e[type=minecraft:armor_stand, tag=as_tool_rack, nbt={Small:1b}] at @s anchored eyes unless block ^ ^ ^ minecraft:tripwire_hook run function armor_statues:remove_tool_rack
#
# Sets an armor stand to interactable if player is holding a wand
#
execute if score #wands_disabled as_angle matches 0 as @a[predicate=armor_statues:holding_wand] at @s positioned ^ ^ ^3 as @e[type=minecraft:armor_stand,distance=..3,tag=!as_locked,tag=!as_interactable,nbt=!{Marker:1b},nbt=!{Invulnerable:1b},nbt={Small:0b}] at @s run function armor_statues:interactions/setup
execute if score #wands_disabled as_angle matches 0 as @a[predicate=armor_statues:holding_wand] at @s positioned ^ ^ ^3 as @e[type=minecraft:armor_stand,distance=..3,tag=!as_locked,tag=!as_interactable,nbt=!{Marker:1b},nbt=!{Invulnerable:1b},nbt={Small:1b}] at @s run function armor_statues:interactions/setup_small
#
# Resets interactable armor stands
#
execute as @e[type=minecraft:armor_stand,tag=as_interactable] at @s unless entity @p[predicate=armor_statues:holding_wand,distance=..4] run function armor_statues:interactions/reset_armor_stand
#
# Resets stray interactable and block entities
#
execute as @e[type=#armor_statues:interactable,type=!minecraft:armor_stand,tag=as_interactable] at @s unless entity @p[predicate=armor_statues:holding_wand,distance=..8] run kill @s
#
# turns armor stands with names visible
#
execute as @e[type=minecraft:armor_stand,nbt=!{CustomNameVisible:1b}, nbt=!{Marker:1b}, nbt=!{Invulnerable:1b}] if data entity @s CustomName run data merge entity @s {CustomNameVisible:1b}
#
# re-enables triggers
#
scoreboard players enable * pointer_wand
scoreboard players enable * adjustment_wand

View File

@ -0,0 +1,27 @@
#
# Description: trigger for crafting adjustment wand
# Called by: armor_statues:second
# Entity @s: player
#
# Checks if wands are disabled
#
execute if score #wands_disabled as_angle matches 1 run function armor_statues:player_message {\
message: '{\
"text":"Wands must be enabled",\
"color":"dark_red"\
}'\
}
execute if score #wands_disabled as_angle matches 1 run scoreboard players set @s adjustment_wand 0
execute if score #wands_disabled as_angle matches 1 run return fail
# Checks if player already has a wand
execute if data entity @s Inventory[{id:"minecraft:warped_fungus_on_a_stick", tag:{wand:1} }] run title @s actionbar [{"text":"You already have an Adjustment Wand!","color": "red"}]
execute if data entity @s Inventory[{id:"minecraft:warped_fungus_on_a_stick", tag:{wand:1} }] run scoreboard players set @s adjustment_wand 0
# Checks if player has an item for wand
execute unless data entity @s[scores={adjustment_wand=1..}] Inventory[{id:"minecraft:warped_fungus_on_a_stick"}] run title @s actionbar [{"text":"Must have a ","color":"red"},{"translate":"item.minecraft.warped_fungus_on_a_stick","color":"yellow"},{"color":"red","text":" in Inventory"}]
execute unless data entity @s[scores={adjustment_wand=1..}] Inventory[{id:"minecraft:warped_fungus_on_a_stick"}] run scoreboard players set @s adjustment_wand 0
#
clear @s[scores={adjustment_wand=1..}] minecraft:warped_fungus_on_a_stick 1
loot give @s[scores={adjustment_wand=1..}] loot armor_statues:adjustment_wand
# reset trigger
scoreboard players set @s adjustment_wand 0
scoreboard players enable @s adjustment_wand

View File

@ -0,0 +1,362 @@
#
# Description: Display admin options in chat
# Called by: Player
# Entity @s: Player
#
tellraw @s \
[\
{\
"text": "Customizable Armor Stands - Admin Options",\
"color":"yellow",\
"bold":true\
}\
]
tellraw @s \
[\
{\
"text":"Particle shrine: ",\
"color":"aqua"\
},\
{\
"text":"Create",\
"color":"green",\
"clickEvent": {\
"action":"run_command",\
"value":"/function armor_statues:shrine/create"\
}\
},\
{\
"text":" / ",\
"color":"aqua"\
},\
{\
"text":"Remove",\
"color":"green",\
"clickEvent":{\
"action":"run_command",\
"value":"/function armor_statues:shrine/remove"\
}\
}\
]
execute if score #help_craftable as_angle matches 0 run tellraw @s \
[\
{\
"text":"Get book from help: ",\
"color":"aqua"\
},\
{\
"text": "Disabled",\
"color":"green", \
"clickEvent":{\
"action":"run_command", \
"value":"/function armor_statues:admin/book_from_help_toggle"\
}, \
"hoverEvent":{\
"action":"show_text", \
"contents":{\
"text":"Click to toggle", \
"color":"yellow"\
}\
}\
}\
]
execute if score #help_craftable as_angle matches 1 run tellraw @s \
[\
{\
"text":"Get book from help: ",\
"color":"aqua"\
},\
{\
"text": "Enabled",\
"color":"green", \
"clickEvent":{\
"action":"run_command", \
"value":"/function armor_statues:admin/book_from_help_toggle"\
}, \
"hoverEvent":{\
"action":"show_text", \
"contents":{\
"text":"Click to toggle", \
"color":"yellow"\
}\
}\
}\
]
execute if score #book_uncraftable as_angle matches 0 run tellraw @s \
[\
{\
"text":"Craftable book: ",\
"color":"aqua"\
},\
{\
"text": "Enabled",\
"color":"green", \
"clickEvent":{\
"action":"run_command", \
"value":"/function armor_statues:admin/craft_book_toggle"\
}, \
"hoverEvent":{\
"action":"show_text", \
"contents":{\
"text":"Click to toggle", \
"color":"yellow"\
}\
}\
}\
]
execute if score #book_uncraftable as_angle matches 1 run tellraw @s \
[\
{\
"text":"Craftable book: ",\
"color":"aqua"\
},\
{\
"text": "Disabled",\
"color":"green", \
"clickEvent":{\
"action":"run_command", \
"value":"/function armor_statues:admin/craft_book_toggle"\
}, \
"hoverEvent":{\
"action":"show_text", \
"contents":{\
"text":"Click to toggle", \
"color":"yellow"\
}\
}\
}\
]
execute if score #uuid_locking as_angle matches 0 run tellraw @s [\
{\
"text":"UUID locked Armor Stands: ",\
"color":"aqua"\
},\
{\
"text": "Disabled",\
"color":"green", \
"clickEvent":{\
"action":"run_command", \
"value":"/function armor_statues:admin/uuid_lock_toggle"\
}, \
"hoverEvent":{\
"action":"show_text", \
"contents":{\
"text":"Makes locked armor stands only unlockable by the player who locked them or creative players.\\n\\nClick to toggle", \
"color":"yellow"\
}\
}\
}\
]
execute if score #uuid_locking as_angle matches 1 run tellraw @s [\
{\
"text":"UUID locked Armor Stands: ",\
"color":"aqua"\
},\
{\
"text": "Enabled",\
"color":"green", \
"clickEvent":{\
"action":"run_command", \
"value":"/function armor_statues:admin/uuid_lock_toggle"\
}, \
"hoverEvent":{\
"action":"show_text", \
"contents":{\
"text":"Makes locked armor stands only unlockable by the player who locked them or creative players.\\n\\nClick to toggle", \
"color":"yellow"\
}\
}\
}\
]
execute if score #fixing_enabled as_angle matches 0 run tellraw @s [\
{\
"text":"Enable Item Frame Fixing: ",\
"color":"aqua"\
},\
{\
"text": "Disabled",\
"color":"green", \
"clickEvent":{\
"action":"run_command", \
"value":"/function armor_statues:admin/fixed_item_frame_toggle"\
}, \
"hoverEvent":{\
"action":"show_text", \
"contents":{\
"text":"Click to toggle", \
"color":"yellow"\
}\
}\
}\
]
execute if score #fixing_enabled as_angle matches 1 run tellraw @s [\
{\
"text":"Enable Item Frame Fixing: ",\
"color":"aqua"\
},\
{\
"text": "Enabled",\
"color":"green", \
"clickEvent":{\
"action":"run_command", \
"value":"/function armor_statues:admin/fixed_item_frame_toggle"\
}, \
"hoverEvent":{\
"action":"show_text", \
"contents":{\
"text":"Click to toggle", \
"color":"yellow"\
}\
}\
}\
]
execute if score #wands_disabled as_angle matches 0 run tellraw @s [\
{\
"text":"Enable pointer and adjustment wands: ",\
"color":"aqua"\
},\
{\
"text": "Enabled",\
"color":"green", \
"clickEvent":{\
"action":"run_command", \
"value":"/function armor_statues:admin/wands_disabled_toggle"\
}, \
"hoverEvent":{\
"action":"show_text", \
"contents":{\
"text":"Click to toggle", \
"color":"yellow"\
}\
}\
}\
]
execute if score #wands_disabled as_angle matches 1 run tellraw @s [\
{\
"text":"Enable pointer and adjustment wands: ",\
"color":"aqua"\
},\
{\
"text": "Disabled",\
"color":"green", \
"clickEvent":{\
"action":"run_command", \
"value":"/function armor_statues:admin/wands_disabled_toggle"\
}, \
"hoverEvent":{\
"action":"show_text", \
"contents":{\
"text":"Click to toggle", \
"color":"yellow"\
}\
}\
}\
]
#
tellraw @s [\
{\
"text":"Delete unused invisible stands",\
"color":"green",\
"hoverEvent":{\
"action":"show_text",\
"contents":[\
{\
"text":"Deletes any invisible armor stands in loaded chunks that are not holding or wearing any items.",\
"color":"yellow"\
}\
]\
},\
"clickEvent":{\
"action":"run_command",\
"value":"/function armor_statues:admin/unused"\
}\
}\
]
tellraw @s [\
{\
"text":"Highlight all stands",\
"color":"green",\
"hoverEvent":{\
"action":"show_text",\
"contents":[\
{\
"text":"Gives all stands within 64 blocks the glowing effect for 15 seconds",\
"color":"yellow"\
}\
]\
},\
"clickEvent":{\
"action":"run_command",\
"value":"/effect give @e[type=armor_stand,distance=..64] minecraft:glowing 15 1 true"\
}\
}\
]
#
tellraw @s [\
{\
"text":"Max Undo States: ",\
"color":"aqua",\
"hoverEvent":{\
"action":"show_text",\
"contents":[\
{\
"text":"Sets the maximum number of undo states savable to the Armor Statues book.\nSet to 0 to disable undo states.",\
"color":"yellow"\
}\
]\
},\
"clickEvent":{\
"action":"suggest_command",\
"value":"/scoreboard players set #undo_states as_angle <time>"\
}\
},\
{\
"score":{\
"name":"#undo_states",\
"objective":"as_angle"\
},\
"color":"green"\
}\
]
#
tellraw @s [\
{\
"text":"Item Frame animation time: ",\
"color":"aqua",\
"hoverEvent":{\
"action":"show_text",\
"contents":[\
{\
"text":"Enables Armor Stand animations by placing a book with a saved pose into an item frame with redstone dust on the block. Requires an Armor Stand to be 8 blocks from the item frame. Sets the number of game ticks between animation time of the item frames.\n(16 is recommended for most mid-sized servers.)\nSet to 0 to disable animations.",\
"color":"yellow"\
}\
]\
},\
"clickEvent":{\
"action":"suggest_command",\
"value":"/scoreboard players set #animate_trigger as_angle <time>"\
}\
},\
{\
"score":{\
"name":"#animate_trigger",\
"objective":"as_angle"\
},\
"color":"green"\
}\
]
#
# REDO this at some point!
#tellraw @s [{"text":"Reduce local server load","color":"green","hoverEvent":{"action":"show_text","contents":[{"text":"Sets the Marker tag on all locked armor stands within 128 blocks. This reduces the load on the server from ticking the entities but makes the stands unaffected by entity updates such as being pushed by pistons. The Marker tag can be reset for individual stands by unlocking them.","color":"yellow"}]},"clickEvent":{"action":"run_command","value":"/function armor_statues:admin/marker"}}]
tellraw @s [\
{\
"text":"--------------------------",\
"color":"yellow",\
"bold":true\
}\
]
#
# The "Reduce local server load" option has the unfortunate side effect of moving the stands' eye line to their base.
# If this puts it inside a block, the items held and worn by the stand turn black.
# Commented out for the time being whilst options are investigated.
#

View File

@ -0,0 +1,30 @@
#
# Description: Disable option to get the book directly from the help menu
# Called by: armor_statues:admin via chat link
# Entity @s: player
#
scoreboard players set #as_success as_angle 0
scoreboard players operation #as_success as_angle = #help_craftable as_angle
execute if score #as_success as_angle matches 0 run scoreboard players set #help_craftable as_angle 1
execute if score #as_success as_angle matches 1 run scoreboard players set #help_craftable as_angle 0
#
execute if score #help_craftable as_angle matches 0 run tellraw @s [\
{\
"text":"Getting the book from the help menu has been ",\
"color":"aqua"\
},\
{\
"text":"Disabled"\
}\
]
execute if score #help_craftable as_angle matches 1 run tellraw @s [\
{\
"text":"Getting the book from the help menu has been ",\
"color":"aqua"\
},\
{\
"text":"Enabled"\
}\
]
#
function armor_statues:admin

View File

@ -0,0 +1,30 @@
#
# Description: Enable option to get the book by crafting
# Called by: armor_statues:admin via chat link
# Entity @s: player
#
scoreboard players set #as_success as_angle 0
scoreboard players operation #as_success as_angle = #book_uncraftable as_angle
execute if score #as_success as_angle matches 0 run scoreboard players set #book_uncraftable as_angle 1
execute if score #as_success as_angle matches 1 run scoreboard players set #book_uncraftable as_angle 0
#
execute if score #book_uncraftable as_angle matches 0 run tellraw @s [\
{\
"text":"Getting the book via crafting has been ",\
"color":"aqua"\
},\
{\
"text":"Enabled"\
}\
]
execute if score #book_uncraftable as_angle matches 1 run tellraw @s [\
{\
"text":"Getting the book via crafting has been ",\
"color":"aqua"\
},\
{\
"text":"Disabled"\
}\
]
#
function armor_statues:admin

View File

@ -0,0 +1,30 @@
#
# Description: Enable option to get allow item frame fixing from the book
# Called by: armor_statues:admin via chat link
# Entity @s: player
#
scoreboard players set #as_success as_angle 0
scoreboard players operation #as_success as_angle = #fixing_enabled as_angle
execute if score #as_success as_angle matches 0 run scoreboard players set #fixing_enabled as_angle 1
execute if score #as_success as_angle matches 1 run scoreboard players set #fixing_enabled as_angle 0
#
execute if score #fixing_enabled as_angle matches 0 run tellraw @s [\
{\
"text":"Fixing item frame option has been ",\
"color":"aqua"\
},\
{\
"text":"Disabled"\
}\
]
execute if score #fixing_enabled as_angle matches 1 run tellraw @s [\
{\
"text":"Fixing item frame option has been ",\
"color":"aqua"\
},\
{\
"text":"Enabled"\
}\
]
#
function armor_statues:admin

View File

@ -0,0 +1,30 @@
#
# Description: Enable option to make locking match player uuids
# Called by: armor_statues:admin via chat link
# Entity @s: player
#
scoreboard players set #as_success as_angle 0
scoreboard players operation #as_success as_angle = #uuid_locking as_angle
execute if score #as_success as_angle matches 0 run scoreboard players set #uuid_locking as_angle 1
execute if score #as_success as_angle matches 1 run scoreboard players set #uuid_locking as_angle 0
#
execute if score #uuid_locking as_angle matches 0 run tellraw @s [\
{\
"text":"UUID locking has been ",\
"color":"aqua"\
},\
{\
"text":"Disabled"\
}\
]
execute if score #uuid_locking as_angle matches 1 run tellraw @s [\
{\
"text":"UUID locking has been ",\
"color":"aqua"\
},\
{\
"text":"Enabled"\
}\
]
#
function armor_statues:admin

View File

@ -0,0 +1,30 @@
#
# Description: Enable option to get the book by crafting
# Called by: armor_statues:admin via chat link
# Entity @s: player
#
scoreboard players set #as_success as_angle 0
scoreboard players operation #as_success as_angle = #wands_disabled as_angle
execute if score #as_success as_angle matches 0 run scoreboard players set #wands_disabled as_angle 1
execute if score #as_success as_angle matches 1 run scoreboard players set #wands_disabled as_angle 0
#
execute if score #wands_disabled as_angle matches 0 run tellraw @s [\
{\
"text":"Pointer and adjustment wands have been ",\
"color":"aqua"\
},\
{\
"text":"Enabled"\
}\
]
execute if score #wands_disabled as_angle matches 1 run tellraw @s [\
{\
"text":"Pointer and adjustment wands have been ",\
"color":"aqua"\
},\
{\
"text":"Disabled"\
}\
]
#
function armor_statues:admin

View File

@ -0,0 +1,8 @@
#
# Description: Replace titled book with proper command book
# Called by: advancement armor_statues:crafting
# Entity @s: Player
#
# Tags the player to replace crafting book
#
execute unless score #book_uncraftable as_angle matches 1 run tag @s add as_craft

View File

@ -0,0 +1,14 @@
#
# Description: Display help in chat
# Called by: armor_statues:tick
# Entity @s: player
#
execute if score @s as_help matches 2 if score #help_craftable as_angle matches 1 run function armor_statues:help/get_book
execute if score @s as_help matches 3 run function armor_statues:help/chat_actionbar_toggle
execute if score @s as_help matches 4 run function armor_statues:help/credits
execute if score @s as_help matches 1..3 unless score @s as_help matches 2 run function armor_statues:help/main
#
# Reset trigger score
#
scoreboard players set @s as_help 0
scoreboard players enable @s as_help

View File

@ -0,0 +1,71 @@
#
# Description: Display credits in chat
# Called by: armor_statues:help
# Entity @s: Player
#
tellraw @s [\
{\
"text":"Customizable Armor Stands - Credits",\
"color":"yellow",\
"bold":true\
}\
]
tellraw @s [\
{\
"text":"Coding and original concept: ",\
"color":"aqua"\
},\
{\
"text":"Phssthpok",\
"color":"#87325d",\
"bold":true,\
"clickEvent":{\
"action":"open_url",\
"value":"https://twitter.com/MCPhssthpok"\
}\
}\
]
tellraw @s [\
"",\
{\
"text":"Additional improvements: ",\
"color":"aqua"\
},\
{\
"text":"MSpaceDev",\
"color":"#e30000",\
"bold":true,\
"clickEvent":{\
"action":"open_url",\
"value":"https://www.youtube.com/c/MinecraftSpace"\
}\
}\
]
tellraw @s [\
{\
"text":"Development and improvements: ",\
"color":"aqua"\
},\
{\
"text":"MukiTanuki",\
"color":"#0072e5",\
"bold":true,\
"clickEvent":{\
"action":"open_url",\
"value":"https://twitter.com/MukiTanuki"\
}\
}\
]
tellraw @s [\
{\
"text":"\nThanks to many other people for help with testing and suggestions -Phssthpok",\
"color":"aqua"\
}\
]
tellraw @s [\
{\
"text":"--------------------------",\
"color":"yellow",\
"bold":true\
}\
]

View File

@ -0,0 +1,144 @@
#
# Description: Display main help options
# Called by: armor_statues:help
# Entity @s: Player
#
tellraw @s [\
{\
"text":"Customizable Armor Stands - Help",\
"color":"yellow",\
"bold":true\
},\
{\
"text":"\nGet the book by:",\
"color":"aqua",\
"bold":false\
}\
]
execute if score #help_craftable as_angle matches 1 run tellraw @s [\
{\
"text":" - Clicking ",\
"color":"aqua"\
},\
{\
"text":"here",\
"color":"green",\
"clickEvent":{\
"action":"run_command",\
"value":"/trigger as_help set 2"\
}\
}\
]
execute if score #as_shrine_x as_help matches ..0 run tellraw @s [\
{\
"text":" - Going to the shrine at ",\
"color":"aqua"\
},\
{\
"score":{\
"name":"#as_shrine_x",\
"objective":"as_help"\
},\
"color":"aqua"\
},\
{\
"text":",",\
"color":"aqua"\
},\
{\
"score":{\
"name":"#as_shrine_z",\
"objective":"as_help"\
},\
"color":"aqua"\
}\
]
execute if score #as_shrine_x as_help matches 1.. run tellraw @s [\
{\
"text":" - Going to the shrine at ",\
"color":"aqua"\
},\
{\
"score":{\
"name":"#as_shrine_x",\
"objective":"as_help"\
},\
"color":"aqua"\
},\
{\
"text":",",\
"color":"aqua"\
},\
{\
"score":{\
"name":"#as_shrine_z",\
"objective":"as_help"\
},\
"color":"aqua"\
}\
]
execute if score #book_uncraftable as_angle matches 0 run tellraw @s [\
{\
"text":" - Crafting a written book titled \"Statues\"",\
"color":"aqua"\
}\
]
execute if entity @s[tag=as_chat] run tellraw @s [\
{\
"text":"Send notifications to: ",\
"color":"aqua"\
},\
{\
"text":"Chat",\
"color":"green",\
"clickEvent":{\
"action":"run_command",\
"value":"/trigger as_help set 3"\
},\
"hoverEvent":{\
"action":"show_text", \
"contents":{\
"text":"Click to toggle between Chat and Actionbar", \
"color":"yellow"\
}\
}\
}\
]
execute if entity @s[tag=!as_chat] run tellraw @s [\
{\
"text":"Send notifications to: ",\
"color":"aqua"\
},\
{\
"text":"Actionbar",\
"color":"green",\
"clickEvent":{\
"action":"run_command",\
"value":"/trigger as_help set 3"\
}, \
"hoverEvent":{\
"action":"show_text", \
"contents":{\
"text":"Click to toggle between Chat and Actionbar", \
"color":"yellow"\
}\
}\
}\
]
tellraw @s [\
{\
"text":"Credits",\
"color":"green",\
"clickEvent":{\
"action":"run_command",\
"value":"/trigger as_help set 4"\
}\
}\
]
tellraw @s [\
{\
"text":"--------------------------",\
"color":"yellow",\
"bold":true\
}\
]

View File

@ -0,0 +1,42 @@
#
# Description: Apply changes to nearest item frame according to the player's if_invisible score
# Called by: armor_statues:second
# Entity @s: player
#
# Tag the player and an item frame 1 block in front of their eyes
#
tag @s add as_selected
execute anchored eyes positioned ^ ^ ^1 as @e[type=#armor_statues:item_frames,distance=..1,tag=!as_locked,sort=nearest,limit=1,nbt=!{Invulnerable:1b},nbt={Item:{Count:1b}}] unless entity @s[tag=!if_fixed,nbt={Fixed:1b}] run tag @s add as_selected
#
# Copy the trigger score to the selected item frame
#
scoreboard players operation @e[type=#armor_statues:item_frames,tag=as_selected] if_invisible = @s if_invisible
#
# Makes item frame 1 block in front of you invisible if it has an item
#
execute if entity @s[scores={if_invisible=1}] as @e[type=#armor_statues:item_frames,tag=as_selected,nbt=!{Invisible:1b}] run function armor_statues:item_frames/invisible
#
# Item frame fixing
#
# Creative
execute if entity @s[scores={if_invisible=2..3},gamemode=creative] as @e[type=#armor_statues:item_frames,tag=as_selected] run function armor_statues:item_frames/fixed
# Enabled
execute if score #fixing_enabled as_angle matches 1 if entity @s[scores={if_invisible=2..3},gamemode=survival] as @e[type=#armor_statues:item_frames,tag=as_selected] run function armor_statues:item_frames/fixed
# Disabled
execute if score #fixing_enabled as_angle matches 0 if entity @s[scores={if_invisible=2..3},gamemode=survival] as @p[tag=as_selected] run function armor_statues:player_message {\
message: '{\
"text":"Must be enabled from admin menu",\
"color":"dark_red"\
}'\
}
#
# Reset item frame's trigger score and remove selected tag from player and item frame
#
scoreboard players reset @e[type=#armor_statues:item_frames,tag=as_selected] if_invisible
tag @s remove as_selected
tag @e[type=#armor_statues:item_frames,tag=as_selected] remove as_selected
#
# Reset player's trigger score and re-enable
#
scoreboard players set @s if_invisible 0
scoreboard players enable @s if_invisible

View File

@ -0,0 +1,28 @@
#
# Description: turns item frame invisible
# Called by: armor_statues:if_trigger
# Entity @s: #item frame
#
# Makes item frame fixed
#
execute unless entity @s[tag=if_fixed] as @p[tag=as_selected,scores={if_invisible=2}] run function armor_statues:player_message {\
message: '{\
"text": "Item frame fixed",\
"color": "dark_green"\
}'\
}
#
execute if entity @p[tag=as_selected,scores={if_invisible=2}] unless entity @s[tag=if_fixed] run data merge entity @s {Fixed:1b}
execute if entity @p[tag=as_selected,scores={if_invisible=2}] unless entity @s[tag=if_fixed] run tag @s add if_fixed
#
# Unfixes item frame
#
execute if entity @s[tag=if_fixed] as @p[tag=as_selected,scores={if_invisible=3}] run function armor_statues:player_message {\
message: '{\
"text": "Item frame no longer fixed",\
"color": "dark_green"\
}'\
}
#
execute if entity @p[tag=as_selected,scores={if_invisible=3}] if entity @s[tag=if_fixed] run data merge entity @s {Fixed:0b}
execute if entity @p[tag=as_selected,scores={if_invisible=3}] if entity @s[tag=if_fixed] run tag @s remove if_fixed

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,22 @@
#
# Description: Locks armor stand
# Called by: armor_statues:trigger/lock
# Entity @s: armor stand
#
execute as @p[tag=as_selected] run function armor_statues:player_message {\
message: '{\
"text": "Armor stand locked",\
"color": "dark_green"\
}'\
}
effect give @s minecraft:glowing 1
data merge entity @s {DisabledSlots:4144959}
tag @s add as_locked
#
# add Player UUID lock
#
execute store result score @s as_lock_uuid1 run data get entity @p[tag=as_selected] UUID[0]
execute store result score @s as_lock_uuid2 run data get entity @p[tag=as_selected] UUID[1]
execute store result score @s as_lock_uuid3 run data get entity @p[tag=as_selected] UUID[2]
execute store result score @s as_lock_uuid4 run data get entity @p[tag=as_selected] UUID[3]
tag @s add as_uuid_locked

View File

@ -0,0 +1,24 @@
#
# Description: Unlocks locked armor stand
# Called by: armor_statues:trigger/lock
# Entity @s: nearest locked armor stand
#
execute as @p[tag=as_selected] run function armor_statues:player_message {\
message: '{\
"text": "Armor stand unlocked",\
"color": "dark_green"\
}'\
}
execute if entity @p[tag=as_selected] run effect give @s minecraft:glowing 1
data merge entity @s {DisabledSlots:0}
tag @s remove as_locked
# removes tag for tool rack if present
tag @s[tag=as_tool_rack] remove as_tool_rack
#
# add Player UUID lock
#
scoreboard players reset @s as_lock_uuid1
scoreboard players reset @s as_lock_uuid2
scoreboard players reset @s as_lock_uuid3
scoreboard players reset @s as_lock_uuid4
tag @s remove as_uuid_locked

View File

@ -0,0 +1,19 @@
#
# Description: Checks UUID of player against the UUID of the armor stand and player
# Called by: armor_statues:trigger/lock
# Entity @s: nearest locked armor stand
#
execute store result score @p[tag=as_selected] as_lock_uuid1 run data get entity @p[tag=as_selected] UUID[0]
execute store result score @p[tag=as_selected] as_lock_uuid2 run data get entity @p[tag=as_selected] UUID[1]
execute store result score @p[tag=as_selected] as_lock_uuid3 run data get entity @p[tag=as_selected] UUID[2]
execute store result score @p[tag=as_selected] as_lock_uuid4 run data get entity @p[tag=as_selected] UUID[3]
#
scoreboard players set #as_success as_help 0
execute store success score #as_success as_help if score @p[tag=as_selected] as_lock_uuid1 = @s as_lock_uuid1 if score @p[tag=as_selected] as_lock_uuid2 = @s as_lock_uuid2 if score @p[tag=as_selected] as_lock_uuid3 = @s as_lock_uuid3 if score @p[tag=as_selected] as_lock_uuid4 = @s as_lock_uuid4 run function armor_statues:locking/unlock
#
execute if score #as_success as_help matches 0 as @p[tag=as_selected] run function armor_statues:player_message {\
message: '{\
"text": "Can\'t modify armor stands locked by a different player",\
"color": "dark_red"\
}'\
}

View File

@ -0,0 +1,17 @@
#
# Description: outputs messages to player via title or tellraw depending on .
# Called by:
# Entity @s: player
# Parameters:
# message (str): Output message for
#
$execute as @s[tag=!as_chat] run title @s actionbar [\
$(message)\
]
$execute as @s[tag=as_chat] run tellraw @s [\
{\
"text":"<Stick_God> ",\
"color":"dark_green"\
},\
$(message)\
]

View File

@ -0,0 +1,27 @@
#
# Description: trigger for crafting pointer wand
# Called by: armor_statues:second
# Entity @s: player
#
# Checks if wands are disabled
#
execute if score #wands_disabled as_angle matches 1 run function armor_statues:player_message {\
message: '{\
"text":"Wands must be enabled",\
"color":"dark_red"\
}'\
}
execute if score #wands_disabled as_angle matches 1 run scoreboard players set @s pointer_wand 0
execute if score #wands_disabled as_angle matches 1 run return fail
# Checks if player already has a wand
execute if data entity @s Inventory[{id:"minecraft:stick", tag:{wand:1} }] run title @s actionbar [{"text":"You already have a Pointer Wand!","color": "red"}]
execute if data entity @s Inventory[{id:"minecraft:stick", tag:{wand:1} }] run scoreboard players set @s pointer_wand 0
# Checks if player has an item for wand
execute unless data entity @s[scores={pointer_wand=1..}] Inventory[{id:"minecraft:stick"}] run title @s actionbar [{"text":"Must have a ","color":"red"},{"translate":"item.minecraft.stick","color":"yellow"},{"color":"red","text":" in Inventory"}]
execute unless data entity @s[scores={pointer_wand=1..}] Inventory[{id:"minecraft:stick"}] run scoreboard players set @s pointer_wand 0
#
clear @s[scores={pointer_wand=1..}] minecraft:stick 1
loot give @s[scores={pointer_wand=1..}] loot armor_statues:pointer_wand
# reset trigger
scoreboard players set @s pointer_wand 0
scoreboard players enable @s pointer_wand

View File

@ -0,0 +1,21 @@
#
# Description: Randomizes appendage rotation
# Called by: armor_statues:trigger/random_pose
# Entity @s: temp armor stand
#
# Sets random angle type
scoreboard players set #random_type as_angle 0
execute if predicate armor_statues:random_chance_10 run scoreboard players set #random_type as_angle 1
execute if score #random_type as_angle matches 1 if predicate armor_statues:random_chance_30 run scoreboard players set #random_type as_angle 2
# small angle #random_type=0
execute if score #random_type as_angle matches 0 store result storage armor_statues:pose_storage Pose.Body[0] float 0.001 run random value -15000..15000
execute if score #random_type as_angle matches 0 store result storage armor_statues:pose_storage Pose.Body[1] float 0.001 run random value -15000..15000
execute if score #random_type as_angle matches 0 store result storage armor_statues:pose_storage Pose.Body[2] float 0.001 run random value -15000..15000
# med angle #random_type=1
execute if score #random_type as_angle matches 1 store result storage armor_statues:pose_storage Pose.Body[0] float 0.001 run random value -30000..30000
execute if score #random_type as_angle matches 1 store result storage armor_statues:pose_storage Pose.Body[1] float 0.001 run random value -30000..30000
execute if score #random_type as_angle matches 1 store result storage armor_statues:pose_storage Pose.Body[2] float 0.001 run random value -30000..30000
# extreme angle #random_type=2
execute if score #random_type as_angle matches 2 store result storage armor_statues:pose_storage Pose.Body[0] float 0.001 run random value -180000..180000
execute if score #random_type as_angle matches 2 store result storage armor_statues:pose_storage Pose.Body[1] float 0.001 run random value -180000..180000
execute if score #random_type as_angle matches 2 store result storage armor_statues:pose_storage Pose.Body[2] float 0.001 run random value -180000..180000

View File

@ -0,0 +1,21 @@
#
# Description: Randomizes appendage rotation
# Called by: armor_statues:trigger/random_pose
# Entity @s: temp armor stand
#
# Sets random angle type
scoreboard players set #random_type as_angle 0
execute if predicate armor_statues:random_chance_20 run scoreboard players set #random_type as_angle 1
execute if score #random_type as_angle matches 1 if predicate armor_statues:random_chance_40 run scoreboard players set #random_type as_angle 2
# small angle #random_type=0
execute if score #random_type as_angle matches 0 store result storage armor_statues:pose_storage Pose.Head[0] float 0.001 run random value -30000..30000
execute if score #random_type as_angle matches 0 store result storage armor_statues:pose_storage Pose.Head[1] float 0.001 run random value -30000..30000
execute if score #random_type as_angle matches 0 store result storage armor_statues:pose_storage Pose.Head[2] float 0.001 run random value -30000..30000
# med angle #random_type=1
execute if score #random_type as_angle matches 1 store result storage armor_statues:pose_storage Pose.Head[0] float 0.001 run random value -60000..60000
execute if score #random_type as_angle matches 1 store result storage armor_statues:pose_storage Pose.Head[1] float 0.001 run random value -60000..60000
execute if score #random_type as_angle matches 1 store result storage armor_statues:pose_storage Pose.Head[2] float 0.001 run random value -60000..60000
# extreme angle #random_type=2
execute if score #random_type as_angle matches 2 store result storage armor_statues:pose_storage Pose.Head[0] float 0.001 run random value -180000..180000
execute if score #random_type as_angle matches 2 store result storage armor_statues:pose_storage Pose.Head[1] float 0.001 run random value -180000..180000
execute if score #random_type as_angle matches 2 store result storage armor_statues:pose_storage Pose.Head[2] float 0.001 run random value -180000..180000

View File

@ -0,0 +1,8 @@
#
# Description: Randomizes appendage rotation
# Called by: armor_statues:trigger/random_pose
# Entity @s: temp armor stand
#
execute store result storage armor_statues:pose_storage Pose.LeftArm[0] float 0.001 run random value -180000..180000
execute store result storage armor_statues:pose_storage Pose.LeftArm[1] float 0.001 run random value -180000..180000
execute store result storage armor_statues:pose_storage Pose.LeftArm[2] float 0.001 run random value -180000..180000

View File

@ -0,0 +1,45 @@
#
# Description: Randomizes appendage rotation
# Called by: armor_statues:trigger/random_pose
# Entity @s: temp armor stand
#
# Sets angle type
scoreboard players set #random_type as_angle 0
execute if predicate armor_statues:random_chance_30 run scoreboard players set #random_type as_angle 1
execute if score #random_type as_angle matches 1 if predicate armor_statues:random_chance_50 run scoreboard players set #random_type as_angle 2
# small angle #random_type=0
execute if score #random_type as_angle matches 0 store result storage armor_statues:pose_storage Pose.LeftLeg[0] float 0.001 run random value -45000..45000
execute if score #random_type as_angle matches 0 store result storage armor_statues:pose_storage Pose.LeftLeg[1] float 0.001 run random value -45000..45000
execute if score #random_type as_angle matches 0 store result storage armor_statues:pose_storage Pose.LeftLeg[2] float 0.001 run random value -45000..45000
# med angle #random_type=1
execute if score #random_type as_angle matches 1 store result storage armor_statues:pose_storage Pose.LeftLeg[0] float 0.001 run random value -90000..90000
execute if score #random_type as_angle matches 1 store result storage armor_statues:pose_storage Pose.LeftLeg[1] float 0.001 run random value -90000..90000
execute if score #random_type as_angle matches 1 store result storage armor_statues:pose_storage Pose.LeftLeg[2] float 0.001 run random value -90000..90000
# extreme angle #random_type=2
execute if score #random_type as_angle matches 2 store result storage armor_statues:pose_storage Pose.LeftLeg[0] float 0.001 run random value -180000..180000
execute if score #random_type as_angle matches 2 store result storage armor_statues:pose_storage Pose.LeftLeg[1] float 0.001 run random value -180000..180000
execute if score #random_type as_angle matches 2 store result storage armor_statues:pose_storage Pose.LeftLeg[2] float 0.001 run random value -180000..180000
# crossing reduction
scoreboard players set #no_crossing as_angle 0
execute if predicate armor_statues:random_chance_85 run scoreboard players set #no_crossing as_angle 1
# x
# y
execute if score #no_crossing as_angle matches 1 \
store result score #angle as_angle run \
data get storage armor_statues:pose_storage Pose.LeftLeg[1]
execute if score #no_crossing as_angle matches 1 \
if score #angle as_angle matches 10000..170000 run \
scoreboard players operation #angle as_angle -= #var180000 as_angle
execute if score #no_crossing as_angle matches 1 \
store result storage armor_statues:pose_storage Pose.LeftLeg[1] float 0.001 run \
scoreboard players get #angle as_angle
# z
execute if score #no_crossing as_angle matches 1 \
store result score #angle as_angle run \
data get storage armor_statues:pose_storage Pose.LeftLeg[2]
execute if score #no_crossing as_angle matches 1 \
if score #angle as_angle matches 10000..170000 run \
scoreboard players operation #angle as_angle -= #var180000 as_angle
execute if score #no_crossing as_angle matches 1 \
store result storage armor_statues:pose_storage Pose.LeftLeg[2] float 0.001 run \
scoreboard players get #angle as_angle

View File

@ -0,0 +1,8 @@
#
# Description: Randomizes appendage rotation
# Called by: armor_statues:trigger/random_pose
# Entity @s: temp armor stand
#
execute store result storage armor_statues:pose_storage Pose.RightArm[0] float 0.001 run random value -180000..180000
execute store result storage armor_statues:pose_storage Pose.RightArm[1] float 0.001 run random value -180000..180000
execute store result storage armor_statues:pose_storage Pose.RightArm[2] float 0.001 run random value -180000..180000

View File

@ -0,0 +1,45 @@
#
# Description: Randomizes appendage rotation
# Called by: armor_statues:trigger/random_pose
# Entity @s: temp armor stand
#
# Sets angle type
scoreboard players set #random_type as_angle 0
execute if predicate armor_statues:random_chance_30 run scoreboard players set #random_type as_angle 1
execute if score #random_type as_angle matches 1 if predicate armor_statues:random_chance_50 run scoreboard players set #random_type as_angle 2
# small angle #random_type=0
execute if score #random_type as_angle matches 0 store result storage armor_statues:pose_storage Pose.RightLeg[0] float 0.001 run random value -45000..45000
execute if score #random_type as_angle matches 0 store result storage armor_statues:pose_storage Pose.RightLeg[1] float 0.001 run random value -45000..45000
execute if score #random_type as_angle matches 0 store result storage armor_statues:pose_storage Pose.RightLeg[2] float 0.001 run random value -45000..45000
# med angle #random_type=1
execute if score #random_type as_angle matches 1 store result storage armor_statues:pose_storage Pose.RightLeg[0] float 0.001 run random value -90000..90000
execute if score #random_type as_angle matches 1 store result storage armor_statues:pose_storage Pose.RightLeg[1] float 0.001 run random value -90000..90000
execute if score #random_type as_angle matches 1 store result storage armor_statues:pose_storage Pose.RightLeg[2] float 0.001 run random value -90000..90000
# extreme angle #random_type=2
execute if score #random_type as_angle matches 2 store result storage armor_statues:pose_storage Pose.RightLeg[0] float 0.001 run random value -180000..180000
execute if score #random_type as_angle matches 2 store result storage armor_statues:pose_storage Pose.RightLeg[1] float 0.001 run random value -180000..180000
execute if score #random_type as_angle matches 2 store result storage armor_statues:pose_storage Pose.RightLeg[2] float 0.001 run random value -180000..180000
# crossing reduction
scoreboard players set #no_crossing as_angle 0
execute if predicate armor_statues:random_chance_85 run scoreboard players set #no_crossing as_angle 1
# x
# y
execute if score #no_crossing as_angle matches 1 \
store result score #angle as_angle run \
data get storage armor_statues:pose_storage Pose.RightLeg[1]
execute if score #no_crossing as_angle matches 1 \
if score #angle as_angle matches 10000..170000 run \
scoreboard players operation #angle as_angle -= #var180000 as_angle
execute if score #no_crossing as_angle matches 1 \
store result storage armor_statues:pose_storage Pose.RightLeg[1] float 0.001 run \
scoreboard players get #angle as_angle
# z
execute if score #no_crossing as_angle matches 1 \
store result score #angle as_angle run \
data get storage armor_statues:pose_storage Pose.RightLeg[2]
execute if score #no_crossing as_angle matches 1 \
if score #angle as_angle matches 10000..170000 run \
scoreboard players operation #angle as_angle -= #var180000 as_angle
execute if score #no_crossing as_angle matches 1 \
store result storage armor_statues:pose_storage Pose.RightLeg[2] float 0.001 run \
scoreboard players get #angle as_angle

View 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 undo states
#
function armor_statues:repeat/save_undo_state
#
# Copies last redo state to armor stand
#
data modify entity @e[type=minecraft:armor_stand,sort=nearest,limit=1] {} merge from storage armor_statues:book_storage SavedItem.tag.RedoStates[0]
data modify entity @e[type=minecraft:armor_stand,sort=nearest,limit=1] Pose set from storage armor_statues:book_storage SavedItem.tag.RedoStates[0].Pose
#
# Deletes redo state
#
data remove storage armor_statues:book_storage SavedItem.tag.RedoStates[0]
#
# Modifies book data
#
execute as @s run function armor_statues:storage_out

View File

@ -0,0 +1,14 @@
#
# Description: Copies last function to book
# Called by: as_statue:trigger
# Entity @s: player
#
execute as @s run function armor_statues:storage_in
#
execute store result storage armor_statues:book_storage SavedItem.tag.Repeat int 1 run scoreboard players get @p[tag=as_selected] as_trigger
#
# Undo states
#
execute unless score @s as_trigger matches 1000..1004 unless score @s as_trigger matches 161..162 unless score @s as_trigger matches 120..123 unless score @s as_trigger matches 155 if entity @e[type=armor_stand,tag=as_selected] if score #undo_states as_angle matches 1.. run function armor_statues:repeat/save_state
#
execute as @s run function armor_statues:storage_out

View File

@ -0,0 +1,19 @@
#
# Description: Copies last state for redoing
# Called by: as_statue:repeat/undo
# Entity @s: player
#
# Copies data to redo
#
data modify storage armor_statues:book_storage SavedItem.tag.RedoStates prepend value {HasVisualFire:0b}
#
data modify storage armor_statues:book_storage SavedItem.tag.RedoStates[0].Pose set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] Pose
data modify storage armor_statues:book_storage SavedItem.tag.RedoStates[0].NoBasePlate set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] NoBasePlate
data modify storage armor_statues:book_storage SavedItem.tag.RedoStates[0].ShowArms set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] ShowArms
data modify storage armor_statues:book_storage SavedItem.tag.RedoStates[0].Small set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] Small
data modify storage armor_statues:book_storage SavedItem.tag.RedoStates[0].Invisible set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] Invisible
#data modify storage armor_statues:book_storage SavedItem.tag.RedoStates[0].CustomNameVisible set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] CustomNameVisible
data modify storage armor_statues:book_storage SavedItem.tag.RedoStates[0].NoGravity set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] NoGravity
data modify storage armor_statues:book_storage SavedItem.tag.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.tag.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.tag.RedoStates[0].HasVisualFire set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] HasVisualFire

View File

@ -0,0 +1,30 @@
#
# Description: Copies last state for undoing
# Called by: as_statue:repeat/save
# Entity @s: player
#
# Checks if UUID of armor stand matches that of the book
#
#scoreboard players set #as_success as_angle 0
#execute store success score #as_success as_angle run data modify storage armor_statues:book_storage SavedItem.tag.StatesUUID set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] UUID
#execute if score #as_success as_angle matches 1 run data remove storage armor_statues:book_storage SavedItem.tag.UndoStates
#data remove storage armor_statues:book_storage SavedItem.tag.RedoStates
# checks if uuid matches armor stand
scoreboard players set #as_success as_angle 0
data remove storage armor_statues:uuid_check UUID
data modify storage armor_statues:uuid_check UUID set from storage armor_statues:book_storage SavedItem.tag.StatesUUID
execute store result score #as_success as_angle \
as @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] run \
function armor_statues:uuid_check with storage armor_statues:uuid_check {}
#
execute if score #as_success as_angle matches 0 run data modify storage armor_statues:book_storage SavedItem.tag.UndoStates set value []
execute if score #as_success as_angle matches 0 run data modify storage armor_statues:book_storage SavedItem.tag.StatesUUID set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] UUID
data modify storage armor_statues:book_storage SavedItem.tag.RedoStates set value []
#
# Counts undo states and makes sure they're less than the maximum undo states
#
execute store result score #as_temp as_angle run data get storage armor_statues:book_storage SavedItem.tag.UndoStates
execute if score #as_temp as_angle >= #undo_states as_angle run data remove storage armor_statues:book_storage SavedItem.tag.UndoStates[-1]
#
function armor_statues:repeat/save_undo_state

View File

@ -0,0 +1,19 @@
#
# Description: Copies last state for undoing
# Called by: as_statue:repeat/save
# Entity @s: player
#
# Saves state for undoing
#
data modify storage armor_statues:book_storage SavedItem.tag.UndoStates prepend value {HasVisualFire:0b}
#
data modify storage armor_statues:book_storage SavedItem.tag.UndoStates[0].Pose set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] Pose
data modify storage armor_statues:book_storage SavedItem.tag.UndoStates[0].NoBasePlate set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] NoBasePlate
data modify storage armor_statues:book_storage SavedItem.tag.UndoStates[0].ShowArms set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] ShowArms
data modify storage armor_statues:book_storage SavedItem.tag.UndoStates[0].Small set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] Small
data modify storage armor_statues:book_storage SavedItem.tag.UndoStates[0].Invisible set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] Invisible
#data modify storage armor_statues:book_storage SavedItem.tag.UndoStates[0].CustomNameVisible set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] CustomNameVisible
data modify storage armor_statues:book_storage SavedItem.tag.UndoStates[0].NoGravity set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] NoGravity
data modify storage armor_statues:book_storage SavedItem.tag.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.tag.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.tag.UndoStates[0].HasVisualFire set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] HasVisualFire

View 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,tag=as_selected] {} merge from storage armor_statues:book_storage SavedItem.tag.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.tag.UndoStates[0].Pose
#
# Deletes undo state state
#
data remove storage armor_statues:book_storage SavedItem.tag.UndoStates[0]
#
# Modifies book data
#
execute as @s run function armor_statues:storage_out

View File

@ -0,0 +1,52 @@
#
# Description: Checks if armor stand is undoable/redoable
# Called by: as_statue:trigger
# Entity @s: player
#
execute as @s run function armor_statues:storage_in
#
# Checks if UUID of armor stand matches that of the book
#
# checks if uuid matches armor stand
scoreboard players set #as_success as_angle 0
data remove storage armor_statues:uuid_check UUID
data modify storage armor_statues:uuid_check UUID set from storage armor_statues:book_storage SavedItem.tag.StatesUUID
execute store result score #as_success as_angle \
as @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] run \
function armor_statues:uuid_check with storage armor_statues:uuid_check {}
#
execute if score #as_success as_angle matches 0 as @s[tag=as_selected] run function armor_statues:player_message {\
message: '{\
"text":"Can\'t undo/redo state on current Armor Stand",\
"color":"dark_red"\
}'\
}
execute if score #as_success as_angle matches 0 run return 0
#
# Undo
#
execute as @s[scores={as_trigger=1200}] \
unless data storage armor_statues:book_storage SavedItem.tag.UndoStates[] run \
function armor_statues:player_message {\
message: '{\
"text":"No states to undo",\
"color":"dark_red"\
}'\
}
execute as @s[scores={as_trigger=1200}] \
if data storage armor_statues:book_storage SavedItem.tag.UndoStates[] run \
function armor_statues:repeat/undo
#
# Redo
#
execute as @s[scores={as_trigger=1201}] \
unless data storage armor_statues:book_storage SavedItem.tag.RedoStates[] run \
function armor_statues:player_message {\
message: '{\
"text":"No states to redo",\
"color":"dark_red"\
}'\
}
execute as @s[scores={as_trigger=1201}] \
if data storage armor_statues:book_storage SavedItem.tag.RedoStates[] run \
function armor_statues:repeat/redo

View File

@ -0,0 +1,15 @@
#
# Description: Applys the last repeated trigger score to players score
# Called by: armor_statues:second
# Entity @s: player
#
execute as @s run function armor_statues:storage_in
#
# Copies score from book to as_trigger
#
execute store result score @s as_trigger run data get storage armor_statues:book_storage SavedItem.tag.Repeat
#
# Reset player's trigger score and re-enable
#
scoreboard players set @s as_repeat 0
scoreboard players enable @s as_repeat

View File

@ -0,0 +1,15 @@
#
# Description: Seals armor stand
# Called by: armor_statues:trigger/lock
# Entity @s: player - mod
#
execute if entity @e[type=armor_stand,distance=..3,tag=!as_sealed,sort=nearest,limit=1] run function armor_statues:player_message {\
message: '{\
"text":"Armor stand sealed",\
"color":"dark_green"\
}'\
}
execute as @e[type=armor_stand,distance=..3,tag=!as_sealed,sort=nearest,limit=1] run effect give @s minecraft:glowing 1
execute as @e[type=armor_stand,distance=..3,tag=!as_sealed,sort=nearest,limit=1] run data merge entity @s {Invulnerable:1b,DisabledSlots:4144959}
execute as @e[type=armor_stand,distance=..3,tag=!as_sealed,sort=nearest,limit=1] run tag @s add as_locked
execute as @e[type=armor_stand,distance=..3,tag=!as_sealed,sort=nearest,limit=1] run tag @s add as_sealed

View File

@ -0,0 +1,15 @@
#
# Description: Unseals sealed armor stand
# Called by: armor_statues:trigger/lock
# Entity @s: player - mod
#
execute if entity @e[type=armor_stand,distance=..3,tag=as_sealed,sort=nearest,limit=1] run function armor_statues:player_message {\
message: '{\
"text":"Armor stand unsealed",\
"color":"dark_green"\
}'\
}
execute as @e[type=armor_stand,distance=..3,tag=as_sealed,sort=nearest,limit=1] run effect give @s minecraft:glowing 1
execute as @e[type=armor_stand,distance=..3,tag=as_sealed,sort=nearest,limit=1] run data merge entity @s {Invulnerable:0b,DisabledSlots:0}
execute as @e[type=armor_stand,distance=..3,tag=as_sealed,sort=nearest,limit=1] run tag @s remove as_locked
execute as @e[type=armor_stand,distance=..3,tag=as_sealed,sort=nearest,limit=1] run tag @s remove as_sealed

View File

@ -0,0 +1,44 @@
#
# Description: Check for players with trigger score set
# Called by: #minecraft:tick
# Entity @s: none
#
schedule function armor_statues:second 1s
#
# Repeat trigger
#
execute as @a[scores={as_repeat=1..}] at @s run function armor_statues:repeat_trigger
#
# Armor stand trigger
#
execute as @a[scores={as_trigger=1..}] at @s run function armor_statues:trigger
#
# Item Frame trigger
#
execute as @a[scores={if_invisible=1..}] at @s run function armor_statues:if_trigger
#
# wand triggers
#
execute as @a[scores={pointer_wand=1..}] at @s run function armor_statues:pointer_wand_trigger
execute as @a[scores={adjustment_wand=1..}] at @s run function armor_statues:adjustment_wand_trigger
#
# Makes empty invisible item frames visible
#
execute as @e[type=#armor_statues:item_frames,tag=if_invisible,nbt=!{Item:{Count:1b}}] run function armor_statues:item_frames/visible
#
# Check for players at the particle shrine
#
execute as @e[tag=as_shrine] at @s run function armor_statues:shrine/main
#
# resets crafting advancement
#
execute if score #book_uncraftable as_angle matches 0 as @a[advancements={armor_statues:crafting=true}] run advancement revoke @s only armor_statues:crafting
# resets interaction advancements
execute as @a[advancements={armor_statues:attack_interaction=true}] run advancement revoke @s only armor_statues:attack_interaction
execute as @a[advancements={armor_statues:use_interaction=true}] run advancement revoke @s only armor_statues:use_interaction
# resets wand interaction
execute as @a[scores={as_wand_used=1..},predicate=armor_statues:holding_adjustment, predicate=armor_statues:is_sneaking] at @s run function armor_statues:adjustment_wand
execute as @a[scores={as_wand_used=1..}] run scoreboard players reset @s as_wand_used
# give wands
execute as @a[nbt={Inventory: [{id: "minecraft:stick", tag: { display: { Name: '{"text":"Statues"}' } } }] }] run function armor_statues:give_pointer_wand
execute as @a[nbt={Inventory: [{id: "minecraft:warped_fungus_on_a_stick", tag: { display: { Name: '{"text":"Statues"}' } } }] }] run function armor_statues:give_adjustment_wand

View 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 armor_statues: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 armor_statues:book_storage SavedItem set from entity @s Inventory[{Slot:-106b}]

View File

@ -0,0 +1,2 @@
tellraw @a {"selector":"@s"}
return 1

View File

@ -0,0 +1,122 @@
#
# Description: Apply changes to nearest armor stand according to the player's as_trigger score
# Called by: armor_statues:second
# Entity @s: player
#
# Tag the player and the nearest armor stand within three blocks
#
tag @s add as_selected
tag @e[type=armor_stand,distance=..3,tag=!as_locked,sort=nearest,limit=1,nbt=!{Marker:1b},nbt=!{Invulnerable:1b}] add as_selected
#
# Copy the trigger score to the selected armor stand
#
scoreboard players operation @e[type=armor_stand,tag=as_selected] as_trigger = @s as_trigger
#
# Save for repeat
#
execute unless score @s as_trigger matches 999 unless score @s as_trigger matches 1200..1201 as @s[predicate=armor_statues:book] run function armor_statues:repeat/save
#
# Undo/redo
#
execute as @s[scores={as_trigger=1200..1201},predicate=armor_statues:book] if entity @e[type=armor_stand,tag=as_selected] run function armor_statues:repeat/undo_redo
#
# Give glowing effect for three seconds if checking target
#
execute if entity @s[scores={as_trigger=999}] as @e[type=armor_stand,tag=as_selected] run effect give @s minecraft:glowing 3
#
# armor stand settings
#
execute if entity @s[scores={as_trigger=1..14}] as @e[type=armor_stand,tag=as_selected] run function armor_statues:trigger/settings
#
# Nudge position
#
execute if entity @s[scores={as_trigger=40..51}] as @e[type=armor_stand,tag=as_selected] run function armor_statues:trigger/position
execute if entity @s[scores={as_trigger=101..112}] as @e[type=armor_stand,tag=as_selected] run function armor_statues:trigger/position
execute if entity @s[scores={as_trigger=1100..1129}] as @e[type=armor_stand,tag=as_selected] at @s run function armor_statues:trigger/position_relative
#
# Adjust rotation
#
execute if entity @s[scores={as_trigger=52..57}] as @e[type=armor_stand,tag=as_selected] run function armor_statues:trigger/rotation
execute if entity @s[scores={as_trigger=124..125}] as @e[type=armor_stand,tag=as_selected] at @s run function armor_statues:trigger/facing
#
# Pointing
#
execute if entity @s[scores={as_trigger=1160..1171}] as @e[type=armor_stand,tag=as_selected,nbt={Small:0b}] at @s run function armor_statues:trigger/pointing
execute if entity @s[scores={as_trigger=1160..1171}] as @e[type=armor_stand,tag=as_selected,nbt={Small:1b}] at @s run function armor_statues:trigger/pointing_small
#
# Change angle step size
#
execute if entity @s[scores={as_trigger=120}] run scoreboard players set @s as_angle 45
execute if entity @s[scores={as_trigger=121}] run scoreboard players set @s as_angle 15
execute if entity @s[scores={as_trigger=122}] run scoreboard players set @s as_angle 5
execute if entity @s[scores={as_trigger=123}] run scoreboard players set @s as_angle 1
execute if entity @s[scores={as_trigger=120..123}] run function armor_statues:player_message {\
message: '{\
"text":"Angle step set to ",\
"color":"dark_green"\
},\
{\
"score":{\
"name":"@s",\
"objective":"as_angle"\
},\
"color":"dark_green"\
},\
{\
"text":"\\u00b0",\
"color":"dark_green"\
}'\
}
#
# Pose presets
#
execute if entity @s[scores={as_trigger=20..39}] as @e[type=armor_stand,tag=as_selected] run function armor_statues:trigger/presets
execute if entity @s[scores={as_trigger=141..142}] as @e[type=armor_stand,tag=as_selected] run function armor_statues:trigger/presets
execute if entity @s[scores={as_trigger=1150}] as @e[type=armor_stand,tag=as_selected] at @s run function armor_statues:trigger/random_pose
#
# Adjust pose
#
execute if entity @s[scores={as_trigger=60..95}] as @e[type=armor_stand,tag=as_selected] run function armor_statues:trigger/adjust
#
# Mirror and flip
#
execute if entity @s[scores={as_trigger=131..134}] as @e[type=armor_stand,tag=as_selected] run function armor_statues:trigger/mirror
execute if entity @s[scores={as_trigger=135}] as @e[type=armor_stand,tag=as_selected] run function armor_statues:trigger/flip
#
# Auto alignment
#
# non-small armor stands
execute if entity @s[scores={as_trigger=151..154}] as @e[type=armor_stand,tag=as_selected,nbt={Small:0b}] run function armor_statues:trigger/align
execute if entity @s[scores={as_trigger=155..156}] as @e[type=armor_stand,tag=as_selected,nbt={Small:0b}] run function armor_statues:trigger/rack
# small armor stands
execute if entity @s[scores={as_trigger=151..154}] as @e[type=armor_stand,tag=as_selected,nbt={Small:1b}] run function armor_statues:trigger/align_small
execute if entity @s[scores={as_trigger=155..156}] as @e[type=armor_stand,tag=as_selected,nbt={Small:1b}] run function armor_statues:trigger/rack_small
#
# Exchange slots
#
execute if entity @s[scores={as_trigger=161..162}] as @e[type=armor_stand,tag=as_selected] run function armor_statues:trigger/slots
#
# Copy and paste
#
execute if entity @s[scores={as_trigger=1004},predicate=armor_statues:book] as @e[type=armor_stand,tag=as_selected] run function armor_statues:trigger/copy
execute if entity @s[scores={as_trigger=1005},predicate=armor_statues:savedpose] unless entity @s[predicate=armor_statues:bothhands, predicate=!armor_statues:savedpose_mainhand] as @e[type=armor_stand,tag=as_selected] run function armor_statues:trigger/paste
#
# Lock and seal
#
execute if entity @s[scores={as_trigger=1000..1003}] run function armor_statues:trigger/lock
#
# Records the last editor of the armor stand
#
execute unless entity @s[scores={as_trigger=999}] unless entity @s[scores={as_trigger=999}] as @e[type=armor_stand,tag=as_selected] run function armor_statues:trigger/last_edit
#
# Reset armor stand's trigger score and remove selected tag from player and armor stand
#
scoreboard players reset @e[type=armor_stand,tag=as_selected] as_trigger
tag @s remove as_selected
tag @e[type=armor_stand,tag=as_selected] remove as_selected
#
# Reset player's trigger score and re-enable
#
scoreboard players set @s as_trigger 0
scoreboard players enable @s as_trigger

View File

@ -0,0 +1,25 @@
#
# Description: Copies selected armor stand settings and pose to the book
# Called by: as_statue:trigger
# Entity @s: armor stand
#
execute as @p[tag=as_selected] run function armor_statues:storage_in
#
data modify storage armor_statues:book_storage SavedItem.tag.SavedPose set value {Pose: {RightArm: [0f, 0f, 0f], LeftLeg: [0f, 0f, 0f], Head: [0f, 0f, 0f], LeftArm: [0f, 0f, 0f], RightLeg: [0f, 0f, 0f], Body: [0f, 0f, 0f]}, NoBasePlate:0b, ShowArms:0b, Small:0b, Invisible:0b, HasVisualFire:0b}
#
data modify storage armor_statues:book_storage SavedItem.tag.SavedPose.Pose merge from entity @s Pose
data modify storage armor_statues:book_storage SavedItem.tag.SavedPose.NoBasePlate set from entity @s NoBasePlate
data modify storage armor_statues:book_storage SavedItem.tag.SavedPose.ShowArms set from entity @s ShowArms
data modify storage armor_statues:book_storage SavedItem.tag.SavedPose.Small set from entity @s Small
data modify storage armor_statues:book_storage SavedItem.tag.SavedPose.Invisible set from entity @s Invisible
data modify storage armor_statues:book_storage SavedItem.tag.SavedPose.HasVisualFire set from entity @s HasVisualFire
#
execute as @p[tag=as_selected] run function armor_statues:storage_out
#
effect give @s minecraft:glowing 1
execute as @p[tag=as_selected] run function armor_statues:player_message {\
message: '{\
"text":"Pose and settings copied to the book",\
"color":"dark_green"\
}'\
}

View File

@ -0,0 +1,23 @@
#
# Description: Apply or remove as_sealed and/or as_locked tags
# Called by: armor_statues:trigger
# Entity @s: Player
#
# Locking prevents the book from being used to modify the stand and disables the equipment slots to prevent accidental interaction
#
execute if entity @s[scores={as_trigger=1000}] as @e[type=armor_stand,tag=as_selected] run function armor_statues:locking/lock
#
# Unlocking
#
# creative player
execute if entity @s[scores={as_trigger=1001},gamemode=creative] as @e[type=armor_stand,distance=..3,tag=as_locked,tag=!as_sealed,sort=nearest,limit=1,nbt=!{Marker:1b},nbt=!{Invulnerable:1b}] run function armor_statues:locking/unlock
# UUID lock disabled
execute if score #uuid_locking as_angle matches 0 if entity @s[scores={as_trigger=1001},gamemode=survival] as @e[type=armor_stand,distance=..3,tag=as_locked,tag=!as_sealed,sort=nearest,limit=1,nbt=!{Marker:1b},nbt=!{Invulnerable:1b}] run function armor_statues:locking/unlock
# UUID lock enabled
execute if score #uuid_locking as_angle matches 1 if entity @s[scores={as_trigger=1001},gamemode=survival] as @e[type=armor_stand,distance=..3,tag=as_locked,tag=!as_sealed,sort=nearest,limit=1,nbt=!{Marker:1b},nbt=!{Invulnerable:1b}] run function armor_statues:locking/lock_check
#
# Sealing can only be used in creative mode and makes the armor stand invulnerable as well as locking it
#
execute if entity @s[scores={as_trigger=1002},gamemode=creative] if entity @e[type=armor_stand,distance=..3,tag=!as_sealed,sort=nearest,limit=1] run function armor_statues:sealing/seal
#
execute if entity @s[scores={as_trigger=1003},gamemode=creative] if entity @e[type=armor_stand,distance=..3,tag=as_sealed,sort=nearest,limit=1] run function armor_statues:sealing/seal

View File

@ -0,0 +1,20 @@
#
# Description: Paste armor stand settings and pose from book
# Called by: as_statue:trigger
# Entity @s: armor stand
#
execute as @p[tag=as_selected] run function armor_statues:storage_in
#
data modify entity @s {} merge from storage armor_statues:book_storage SavedItem.tag.SavedPose
data modify entity @s Pose set from storage armor_statues:book_storage SavedItem.tag.SavedPose.Pose
#
execute as @p[tag=as_selected] run function armor_statues:player_message {\
message: '{\
"text":"Settings and pose pasted from the book",\
"color":"dark_green"\
}'\
}
#
# Tag the armor stand as modified
#
tag @s add as_modified

View File

@ -0,0 +1,89 @@
#
# Description: Points an appendage at the player
# Called by: armor_statues:trigger
# Entity @s: armor stand
#
# Summons temp armor stand
#
# Head
execute if score @s as_trigger matches 1160 rotated ~ 0 run summon minecraft:armor_stand ^ ^ ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
execute if score @s as_trigger matches 1166 rotated ~ 0 run summon minecraft:armor_stand ^ ^ ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
# Body
execute if score @s as_trigger matches 1161 rotated ~ 0 run summon minecraft:armor_stand ^ ^ ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
execute if score @s as_trigger matches 1167 rotated ~ 0 run summon minecraft:armor_stand ^ ^ ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
# Right Arm
execute if score @s as_trigger matches 1162 rotated ~ 0 run summon minecraft:armor_stand ^-0.34375 ^-0.1875 ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
execute if score @s as_trigger matches 1168 rotated ~ 0 run summon minecraft:armor_stand ^-0.34375 ^-0.1875 ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
# Left Arm
execute if score @s as_trigger matches 1163 rotated ~ 0 run summon minecraft:armor_stand ^0.34375 ^-0.1875 ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
execute if score @s as_trigger matches 1169 rotated ~ 0 run summon minecraft:armor_stand ^0.34375 ^-0.1875 ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
# Right Leg
execute if score @s as_trigger matches 1164 rotated ~ 0 run summon minecraft:armor_stand ^-0.125 ^-0.875 ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
execute if score @s as_trigger matches 1170 rotated ~ 0 run summon minecraft:armor_stand ^-0.125 ^-0.875 ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
# Left Leg
execute if score @s as_trigger matches 1165 rotated ~ 0 run summon minecraft:armor_stand ^0.125 ^-0.875 ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
execute if score @s as_trigger matches 1171 rotated ~ 0 run summon minecraft:armor_stand ^0.125 ^-0.875 ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
#
execute if score @s as_trigger matches 1160..1165 as @e[type=minecraft:armor_stand,limit=1,tag=as_temp_armor_stand] at @s positioned ~ ~1.625 ~ run tp @s ~ ~ ~ facing entity @p[tag=as_selected] eyes
execute if score @s as_trigger matches 1166..1171 as @e[type=minecraft:armor_stand,limit=1,tag=as_temp_armor_stand] at @s positioned ~ ~1.625 ~ run tp @s ~ ~ ~ facing entity @p[tag=as_selected] feet
#
execute store result score #temp_as_x as_angle run data get entity @e[type=minecraft:armor_stand,limit=1,tag=as_temp_armor_stand] Rotation[0] 1000
execute store result score #temp_as_z as_angle run data get entity @e[type=minecraft:armor_stand,limit=1,tag=as_temp_armor_stand] Rotation[1] 1000
execute store result score #selected_as_x as_angle run data get entity @s Rotation[0] 1000
execute store result score #selected_as_z as_angle run data get entity @s Rotation[1] 1000
scoreboard players operation #temp_as_x as_angle -= #selected_as_x as_angle
# Appendage offset
execute if score @s as_trigger matches 1162..1165 run scoreboard players operation #temp_as_z as_angle -= #var90000 as_angle
execute if score @s as_trigger matches 1168..1171 run scoreboard players operation #temp_as_z as_angle -= #var90000 as_angle
# Head rotation offset (UNUSED)
#execute if score @s as_trigger matches 1160 run scoreboard players operation #temp_as_z as_angle += #var180000 as_angle
#execute if score @s as_trigger matches 1166 run scoreboard players operation #temp_as_z as_angle += #var180000 as_angle
#
# Mirror rotation so arms and legs rotate facing the right
#
execute if score @s as_trigger matches 1162..1165 if score #temp_as_x as_angle matches 180000.. run scoreboard players operation #temp_as_x as_angle -= #var360000 as_angle
execute if score @s as_trigger matches 1162..1165 if score #temp_as_x as_angle matches ..-180000 run scoreboard players operation #temp_as_x as_angle += #var360000 as_angle
execute if score @s as_trigger matches 1162..1165 if score #temp_as_x as_angle matches 90000.. run scoreboard players operation #temp_as_z as_angle *= #var-1 as_angle
execute if score @s as_trigger matches 1162..1165 if score #temp_as_x as_angle matches ..-90000 run scoreboard players operation #temp_as_z as_angle *= #var-1 as_angle
execute if score @s as_trigger matches 1162..1165 if score #temp_as_x as_angle matches 90000.. run scoreboard players operation #temp_as_x as_angle -= #var180000 as_angle
execute if score @s as_trigger matches 1162..1165 if score #temp_as_x as_angle matches ..-90000 run scoreboard players operation #temp_as_x as_angle += #var180000 as_angle
#
execute if score @s as_trigger matches 1168..1171 if score #temp_as_x as_angle matches 180000.. run scoreboard players operation #temp_as_x as_angle -= #var360000 as_angle
execute if score @s as_trigger matches 1168..1171 if score #temp_as_x as_angle matches ..-180000 run scoreboard players operation #temp_as_x as_angle += #var360000 as_angle
execute if score @s as_trigger matches 1168..1171 if score #temp_as_x as_angle matches 90000.. run scoreboard players operation #temp_as_z as_angle *= #var-1 as_angle
execute if score @s as_trigger matches 1168..1171 if score #temp_as_x as_angle matches ..-90000 run scoreboard players operation #temp_as_z as_angle *= #var-1 as_angle
execute if score @s as_trigger matches 1168..1171 if score #temp_as_x as_angle matches 90000.. run scoreboard players operation #temp_as_x as_angle -= #var180000 as_angle
execute if score @s as_trigger matches 1168..1171 if score #temp_as_x as_angle matches ..-90000 run scoreboard players operation #temp_as_x as_angle += #var180000 as_angle
# unused
#scoreboard players operation #temp_as_x as_angle *= #var-1 as_angle
#scoreboard players operation #temp_as_z as_angle *= #var-1 as_angle
#
data modify storage armor_statues:appendage appendage set value [0f,0f,0f]
execute store result storage armor_statues:appendage appendage[1] float 0.001 run scoreboard players get #temp_as_x as_angle
execute store result storage armor_statues:appendage appendage[0] float 0.001 run scoreboard players get #temp_as_z as_angle
# Head
execute if score @s as_trigger matches 1160 run data modify entity @s Pose.Head set from storage armor_statues:appendage appendage
execute if score @s as_trigger matches 1166 run data modify entity @s Pose.Head set from storage armor_statues:appendage appendage
# Body
execute if score @s as_trigger matches 1161 run data modify entity @s Pose.Body set from storage armor_statues:appendage appendage
execute if score @s as_trigger matches 1167 run data modify entity @s Pose.Body set from storage armor_statues:appendage appendage
# Right Arm
execute if score @s as_trigger matches 1162 run data modify entity @s Pose.RightArm set from storage armor_statues:appendage appendage
execute if score @s as_trigger matches 1168 run data modify entity @s Pose.RightArm set from storage armor_statues:appendage appendage
# Left Arm
execute if score @s as_trigger matches 1163 run data modify entity @s Pose.LeftArm set from storage armor_statues:appendage appendage
execute if score @s as_trigger matches 1169 run data modify entity @s Pose.LeftArm set from storage armor_statues:appendage appendage
# Right Leg
execute if score @s as_trigger matches 1164 run data modify entity @s Pose.RightLeg set from storage armor_statues:appendage appendage
execute if score @s as_trigger matches 1170 run data modify entity @s Pose.RightLeg set from storage armor_statues:appendage appendage
# Left Leg
execute if score @s as_trigger matches 1165 run data modify entity @s Pose.LeftLeg set from storage armor_statues:appendage appendage
execute if score @s as_trigger matches 1171 run data modify entity @s Pose.LeftLeg set from storage armor_statues:appendage appendage
#
# Kills temp armor stand
#
kill @e[type=armor_stand,tag=as_temp_armor_stand]
#
# Tag the armor stand as modified
#
tag @s add as_modified

View File

@ -0,0 +1,89 @@
#
# Description: Points an appendage at the player for small armor stands
# Called by: armor_statues:trigger
# Entity @s: armor stand
#
# Summons temp armor stand
#
# Head
execute if score @s as_trigger matches 1160 rotated ~ 0 run summon minecraft:armor_stand ^ ^ ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
execute if score @s as_trigger matches 1166 rotated ~ 0 run summon minecraft:armor_stand ^ ^ ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
# Body
execute if score @s as_trigger matches 1161 rotated ~ 0 run summon minecraft:armor_stand ^ ^ ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
execute if score @s as_trigger matches 1167 rotated ~ 0 run summon minecraft:armor_stand ^ ^ ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
# Right Arm
execute if score @s as_trigger matches 1162 rotated ~ 0 run summon minecraft:armor_stand ^-0.171875 ^-0.28125 ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
execute if score @s as_trigger matches 1168 rotated ~ 0 run summon minecraft:armor_stand ^-0.171875 ^-0.28125 ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
# Left Arm
execute if score @s as_trigger matches 1163 rotated ~ 0 run summon minecraft:armor_stand ^0.171875 ^-0.28125 ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
execute if score @s as_trigger matches 1169 rotated ~ 0 run summon minecraft:armor_stand ^0.171875 ^-0.28125 ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
# Right Leg
execute if score @s as_trigger matches 1164 rotated ~ 0 run summon minecraft:armor_stand ^-0.0625 ^-0.625 ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
execute if score @s as_trigger matches 1170 rotated ~ 0 run summon minecraft:armor_stand ^-0.0625 ^-0.625 ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
# Left Leg
execute if score @s as_trigger matches 1165 rotated ~ 0 run summon minecraft:armor_stand ^0.0625 ^-0.625 ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
execute if score @s as_trigger matches 1171 rotated ~ 0 run summon minecraft:armor_stand ^0.0625 ^-0.625 ^ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
#
execute if score @s as_trigger matches 1160..1165 as @e[type=minecraft:armor_stand,limit=1,tag=as_temp_armor_stand] at @s positioned ~ ~1 ~ run tp @s ~ ~ ~ facing entity @p[tag=as_selected] eyes
execute if score @s as_trigger matches 1166..1171 as @e[type=minecraft:armor_stand,limit=1,tag=as_temp_armor_stand] at @s positioned ~ ~1 ~ run tp @s ~ ~ ~ facing entity @p[tag=as_selected] feet
#
execute store result score #temp_as_x as_angle run data get entity @e[type=minecraft:armor_stand,limit=1,tag=as_temp_armor_stand] Rotation[0] 1000
execute store result score #temp_as_z as_angle run data get entity @e[type=minecraft:armor_stand,limit=1,tag=as_temp_armor_stand] Rotation[1] 1000
execute store result score #selected_as_x as_angle run data get entity @s Rotation[0] 1000
execute store result score #selected_as_z as_angle run data get entity @s Rotation[1] 1000
scoreboard players operation #temp_as_x as_angle -= #selected_as_x as_angle
# Appendage offset
execute if score @s as_trigger matches 1162..1165 run scoreboard players operation #temp_as_z as_angle -= #var90000 as_angle
execute if score @s as_trigger matches 1168..1171 run scoreboard players operation #temp_as_z as_angle -= #var90000 as_angle
# Head rotation offset (UNUSED)
#execute if score @s as_trigger matches 1160 run scoreboard players operation #temp_as_z as_angle += #var180000 as_angle
#execute if score @s as_trigger matches 1166 run scoreboard players operation #temp_as_z as_angle += #var180000 as_angle
#
# Mirror rotation so arms and legs rotate facing the right
#
execute if score @s as_trigger matches 1162..1165 if score #temp_as_x as_angle matches 180000.. run scoreboard players operation #temp_as_x as_angle -= #var360000 as_angle
execute if score @s as_trigger matches 1162..1165 if score #temp_as_x as_angle matches ..-180000 run scoreboard players operation #temp_as_x as_angle += #var360000 as_angle
execute if score @s as_trigger matches 1162..1165 if score #temp_as_x as_angle matches 90000.. run scoreboard players operation #temp_as_z as_angle *= #var-1 as_angle
execute if score @s as_trigger matches 1162..1165 if score #temp_as_x as_angle matches ..-90000 run scoreboard players operation #temp_as_z as_angle *= #var-1 as_angle
execute if score @s as_trigger matches 1162..1165 if score #temp_as_x as_angle matches 90000.. run scoreboard players operation #temp_as_x as_angle -= #var180000 as_angle
execute if score @s as_trigger matches 1162..1165 if score #temp_as_x as_angle matches ..-90000 run scoreboard players operation #temp_as_x as_angle += #var180000 as_angle
#
execute if score @s as_trigger matches 1168..1171 if score #temp_as_x as_angle matches 180000.. run scoreboard players operation #temp_as_x as_angle -= #var360000 as_angle
execute if score @s as_trigger matches 1168..1171 if score #temp_as_x as_angle matches ..-180000 run scoreboard players operation #temp_as_x as_angle += #var360000 as_angle
execute if score @s as_trigger matches 1168..1171 if score #temp_as_x as_angle matches 90000.. run scoreboard players operation #temp_as_z as_angle *= #var-1 as_angle
execute if score @s as_trigger matches 1168..1171 if score #temp_as_x as_angle matches ..-90000 run scoreboard players operation #temp_as_z as_angle *= #var-1 as_angle
execute if score @s as_trigger matches 1168..1171 if score #temp_as_x as_angle matches 90000.. run scoreboard players operation #temp_as_x as_angle -= #var180000 as_angle
execute if score @s as_trigger matches 1168..1171 if score #temp_as_x as_angle matches ..-90000 run scoreboard players operation #temp_as_x as_angle += #var180000 as_angle
# unused
#scoreboard players operation #temp_as_x as_angle *= #var-1 as_angle
#scoreboard players operation #temp_as_z as_angle *= #var-1 as_angle
#
data modify storage armor_statues:appendage appendage set value [0f,0f,0f]
execute store result storage armor_statues:appendage appendage[1] float 0.001 run scoreboard players get #temp_as_x as_angle
execute store result storage armor_statues:appendage appendage[0] float 0.001 run scoreboard players get #temp_as_z as_angle
# Head
execute if score @s as_trigger matches 1160 run data modify entity @s Pose.Head set from storage armor_statues:appendage appendage
execute if score @s as_trigger matches 1166 run data modify entity @s Pose.Head set from storage armor_statues:appendage appendage
# Body
execute if score @s as_trigger matches 1161 run data modify entity @s Pose.Body set from storage armor_statues:appendage appendage
execute if score @s as_trigger matches 1167 run data modify entity @s Pose.Body set from storage armor_statues:appendage appendage
# Right Arm
execute if score @s as_trigger matches 1162 run data modify entity @s Pose.RightArm set from storage armor_statues:appendage appendage
execute if score @s as_trigger matches 1168 run data modify entity @s Pose.RightArm set from storage armor_statues:appendage appendage
# Left Arm
execute if score @s as_trigger matches 1163 run data modify entity @s Pose.LeftArm set from storage armor_statues:appendage appendage
execute if score @s as_trigger matches 1169 run data modify entity @s Pose.LeftArm set from storage armor_statues:appendage appendage
# Right Leg
execute if score @s as_trigger matches 1164 run data modify entity @s Pose.RightLeg set from storage armor_statues:appendage appendage
execute if score @s as_trigger matches 1170 run data modify entity @s Pose.RightLeg set from storage armor_statues:appendage appendage
# Left Leg
execute if score @s as_trigger matches 1165 run data modify entity @s Pose.LeftLeg set from storage armor_statues:appendage appendage
execute if score @s as_trigger matches 1171 run data modify entity @s Pose.LeftLeg set from storage armor_statues:appendage appendage
#
# Kills temp armor stand
#
kill @e[type=armor_stand,tag=as_temp_armor_stand]
#
# Tag the armor stand as modified
#
tag @s add as_modified

View File

@ -0,0 +1,63 @@
#
# Description: Align stand with tripwire hook to make a tool rack
# Called by: armor_statues:trigger
# Entity @s: armor stand
#
# Turn off gravity for armor stand
#
data merge entity @s {NoGravity:1b}
#
# Check for an tripwire hook in the blocks above the stand and, if found, move the stand into position below the hook and tag it
#
execute at @s align xyz positioned ~0.5 ~ ~0.5 if block ~ ~1 ~ minecraft:tripwire_hook run tp @s ~ ~ ~
execute at @s if block ~ ~1 ~ minecraft:tripwire_hook run tag @s add as_rack
execute if entity @s[tag=!as_rack] at @s align xyz positioned ~0.5 ~1 ~0.5 if block ~ ~1 ~ minecraft:tripwire_hook run tp @s ~ ~ ~
execute if entity @s[tag=!as_rack] at @s if block ~ ~1 ~ minecraft:tripwire_hook run tag @s add as_rack
execute if entity @s[tag=!as_rack] at @s align xyz positioned ~0.5 ~2 ~0.5 if block ~ ~1 ~ minecraft:tripwire_hook run tp @s ~ ~ ~
execute if entity @s[tag=!as_rack] at @s if block ~ ~1 ~ minecraft:tripwire_hook run tag @s add as_rack
#
# If there is a tripwire hook above the armor stand, rotate the stand to match it's orientation
#
execute at @s if block ~ ~1 ~ minecraft:tripwire_hook[facing=north] run data merge entity @s {Rotation:[180.0f,0.0f]}
execute at @s if block ~ ~1 ~ minecraft:tripwire_hook[facing=east] run data merge entity @s {Rotation:[-90.0f,0.0f]}
execute at @s if block ~ ~1 ~ minecraft:tripwire_hook[facing=south] run data merge entity @s {Rotation:[0.0f,0.0f]}
execute at @s if block ~ ~1 ~ minecraft:tripwire_hook[facing=west] run data merge entity @s {Rotation:[90.0f,0.0f]}
#
# If armor stand is not tagged, display failure message
#
execute if entity @s[tag=!as_rack] as @p[tag=as_selected] run function armor_statues:player_message {\
message: '{\
"text":"Tripwire hook not found",\
"color":"dark_red"\
}'\
}
#
# Otherwise, adjust the armor stand pose and settings, disabling all slots but the main hand, and move it into place
#
execute if entity @s[tag=as_rack,scores={as_trigger=155}] run data merge entity @s {ShowArms:1b,Invisible:1b,Pose:{Head:[0.0f,0.001f,0.0f],Body:[0.0f,0.001f,0.0f],RightArm:[-100.0f,90.0f,180.0f],LeftArm:[0.0f,0.0f,0.0f],RightLeg:[0.0f,0.0f,0.0f],LeftLeg:[0.0f,0.0f,0.0f]},DisabledSlots:4079166}
execute if entity @s[tag=as_rack,scores={as_trigger=155}] at @s run tp @s ^-0.17 ^0.24 ^-0.05
#
# Tag the armor stand as modified
#
execute if entity @s[tag=as_rack] run tag @s add as_modified
#
# Also, mark as locked
#
execute if entity @s[tag=as_rack] run tag @s add as_locked
#
# add Player UUID lock
#
execute if entity @s[tag=as_rack] run execute store result score @s as_lock_uuid1 run data get entity @p[tag=as_selected] UUID[0]
execute if entity @s[tag=as_rack] run execute store result score @s as_lock_uuid2 run data get entity @p[tag=as_selected] UUID[1]
execute if entity @s[tag=as_rack] run execute store result score @s as_lock_uuid3 run data get entity @p[tag=as_selected] UUID[2]
execute if entity @s[tag=as_rack] run execute store result score @s as_lock_uuid4 run data get entity @p[tag=as_selected] UUID[3]
execute if entity @s[tag=as_rack] run tag @s add as_uuid_locked
#
# add tool rack tag
#
execute if entity @s[tag=as_rack] run tag @s add as_tool_rack
execute if entity @s[tag=as_rack] run tag @s add as_invisible
#
# Finally, remove the as_rack tag
#
execute if entity @s[tag=as_rack] run tag @s remove as_rack

View File

@ -0,0 +1,63 @@
#
# Description: Align stand with tripwire hook to make a tool rack for small armor stands
# Called by: armor_statues:trigger
# Entity @s: armor stand
#
# Turn off gravity for armor stand
#
data merge entity @s {NoGravity:1b}
#
# Check for an tripwire hook in the blocks above the stand and, if found, move the stand into position below the hook and tag it
#
execute at @s align xyz positioned ~0.5 ~ ~0.5 if block ~ ~1 ~ minecraft:tripwire_hook run tp @s ~ ~ ~
execute at @s if block ~ ~1 ~ minecraft:tripwire_hook run tag @s add as_rack
execute if entity @s[tag=!as_rack] at @s align xyz positioned ~0.5 ~1 ~0.5 if block ~ ~1 ~ minecraft:tripwire_hook run tp @s ~ ~ ~
execute if entity @s[tag=!as_rack] at @s if block ~ ~1 ~ minecraft:tripwire_hook run tag @s add as_rack
execute if entity @s[tag=!as_rack] at @s align xyz positioned ~0.5 ~2 ~0.5 if block ~ ~1 ~ minecraft:tripwire_hook run tp @s ~ ~ ~
execute if entity @s[tag=!as_rack] at @s if block ~ ~1 ~ minecraft:tripwire_hook run tag @s add as_rack
#
# If there is a tripwire hook above the armor stand, rotate the stand to match it's orientation
#
execute at @s if block ~ ~1 ~ minecraft:tripwire_hook[facing=north] run data merge entity @s {Rotation:[180.0f,0.0f]}
execute at @s if block ~ ~1 ~ minecraft:tripwire_hook[facing=east] run data merge entity @s {Rotation:[-90.0f,0.0f]}
execute at @s if block ~ ~1 ~ minecraft:tripwire_hook[facing=south] run data merge entity @s {Rotation:[0.0f,0.0f]}
execute at @s if block ~ ~1 ~ minecraft:tripwire_hook[facing=west] run data merge entity @s {Rotation:[90.0f,0.0f]}
#
# If armor stand is not tagged, display failure message
#
execute if entity @s[tag=!as_rack] as @p[tag=as_selected] run function armor_statues:player_message {\
message: '{\
"text":"Tripwire hook not found",\
"color":"dark_red"\
}'\
}
#
# Otherwise, adjust the armor stand pose and settings, disabling all slots but the main hand, and move it into place
#
execute if entity @s[tag=as_rack,scores={as_trigger=155}] run data merge entity @s {ShowArms:1b,Invisible:1b,Pose:{Head:[0.0f,0.001f,0.0f],Body:[0.0f,0.001f,0.0f],RightArm:[-100.0f,90.0f,180.0f],LeftArm:[0.0f,0.0f,0.0f],RightLeg:[0.0f,0.0f,0.0f],LeftLeg:[0.0f,0.0f,0.0f]},DisabledSlots:4079166}
execute if entity @s[tag=as_rack,scores={as_trigger=155}] at @s run tp @s ^-0.085 ^0.87 ^-0.05
#
# Tag the armor stand as modified
#
execute if entity @s[tag=as_rack] run tag @s add as_modified
#
# Also, mark as locked
#
execute if entity @s[tag=as_rack] run tag @s add as_locked
#
# add Player UUID lock
#
execute if entity @s[tag=as_rack] run execute store result score @s as_lock_uuid1 run data get entity @p[tag=as_selected] UUID[0]
execute if entity @s[tag=as_rack] run execute store result score @s as_lock_uuid2 run data get entity @p[tag=as_selected] UUID[1]
execute if entity @s[tag=as_rack] run execute store result score @s as_lock_uuid3 run data get entity @p[tag=as_selected] UUID[2]
execute if entity @s[tag=as_rack] run execute store result score @s as_lock_uuid4 run data get entity @p[tag=as_selected] UUID[3]
execute if entity @s[tag=as_rack] run tag @s add as_uuid_locked
#
# add tool rack tag
#
execute if entity @s[tag=as_rack] run tag @s add as_tool_rack
execute if entity @s[tag=as_rack] run tag @s add as_invisible
#
# Finally, remove the as_rack tag
#
execute if entity @s[tag=as_rack] run tag @s remove as_rack

View File

@ -0,0 +1,28 @@
#
# Description: Randomizes armor stand pose
# Called by: armor_statues:trigger
# Entity @s: armor stand
#
data modify storage armor_statues:pose_storage Pose set value {Head:[0.0f,0.001f,0.0f], Body:[0.0f,0.001f,0.0f], LeftArm:[-10.0f,0.001f,-10.0f], RightArm:[-15.0f,0.001f,10.0f], LeftLeg:[-1.0f,0.001f,-1.0f], RightLeg:[1.0f,0.001f,1.0f]}
#
# Generate randomizers
#
function armor_statues:randomizer/head
function armor_statues:randomizer/body
function armor_statues:randomizer/left_arm
function armor_statues:randomizer/right_arm
function armor_statues:randomizer/left_leg
function armor_statues:randomizer/right_leg
#
#
# Sets random pose
#
data modify entity @s Pose set from storage armor_statues:pose_storage Pose
#
# Kills temp armor stand
#
#kill @e[type=armor_stand,tag=as_temp_armor_stand]
#
# Tag the armor stand as modified
#
tag @s add as_modified

View File

@ -0,0 +1,40 @@
#
# Description: Change the armor stand's basic settings
# Called by: armor_statues:trigger
# Entity @s: armor stand
#
execute if entity @s[scores={as_trigger=1}] run data merge entity @s {NoBasePlate:0b}
execute if entity @s[scores={as_trigger=2}] run data merge entity @s {NoBasePlate:1b}
execute if entity @s[scores={as_trigger=3}] run data merge entity @s {ShowArms:1b}
execute if entity @s[scores={as_trigger=4}] run data merge entity @s {ShowArms:0b}
execute if entity @s[scores={as_trigger=5}] run data merge entity @s {Small:1b}
execute if entity @s[scores={as_trigger=6}] run data merge entity @s {Small:0b}
execute if entity @s[scores={as_trigger=7}] run data merge entity @s {NoGravity:0b}
execute if entity @s[scores={as_trigger=8}] run data merge entity @s {NoGravity:1b}
execute if entity @s[scores={as_trigger=9}] run data merge entity @s {Invisible:0b}
execute if entity @s[scores={as_trigger=9}] run tag @s remove as_invisible
execute if entity @s[scores={as_trigger=10}] run data merge entity @s {Invisible:1b}
execute if entity @s[scores={as_trigger=10}] run tag @s add as_invisible
#execute if entity @s[scores={as_trigger=11}] run data merge entity @s {CustomNameVisible:1b}
#execute if entity @s[scores={as_trigger=12}] run data merge entity @s {CustomNameVisible:0b}
execute if entity @s[scores={as_trigger=13}] run data merge entity @s {HasVisualFire:1b}
execute if entity @s[scores={as_trigger=14}] run data merge entity @s {HasVisualFire:0b}
#
# Tag the armor stand as modified
#
tag @s add as_modified
#
# Report changes to gravity setting as it is not visible
#
execute if entity @s[scores={as_trigger=7}] as @p[tag=as_selected] run function armor_statues:player_message {\
message: '{\
"text":"Gravity is turned on",\
"color":"dark_green"\
}'\
}
execute if entity @s[scores={as_trigger=8}] as @p[tag=as_selected] run function armor_statues:player_message {\
message: '{\
"text":"Gravity is turned off",\
"color":"dark_green"\
}'\
}

View File

@ -0,0 +1,22 @@
#
# Description: Exchange items between equipment slots
# Called by: armor_statues:trigger
# Entity @s: armor stand
#
# Creates temporary storage
#
#data modify storage armor_statues:slot_storage {} set value {Slots:[{}, {}]}
#
# Copy item from main hand to temporary storage
#
data modify storage armor_statues:slot_storage Slot set from entity @s HandItems[0]
#
# Copy item from off hand or head to main hand
#
execute if entity @s[scores={as_trigger=161}] run data modify entity @s HandItems[0] set from entity @s HandItems[1]
execute if entity @s[scores={as_trigger=162}] run data modify entity @s HandItems[0] set from entity @s ArmorItems[3]
#
# Copy item from temporary storage to off hand or head
#
execute if entity @s[scores={as_trigger=161}] run data modify entity @s HandItems[1] set from storage armor_statues:slot_storage Slot
execute if entity @s[scores={as_trigger=162}] run data modify entity @s ArmorItems[3] set from storage armor_statues:slot_storage Slot

View File

@ -0,0 +1,21 @@
[
{
"function": "minecraft:copy_nbt",
"source": {
"type": "storage",
"source": "armor_statues:book_storage"
},
"ops": [
{
"source": "SavedItem.tag",
"target": "{}",
"op": "merge"
},
{
"source": "SavedItem.tag.SavedPose",
"target": "SavedPose",
"op": "replace"
}
]
}
]

View File

@ -0,0 +1,31 @@
{
"type": "minecraft:loot",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:written_book",
"functions": [
{
"function": "minecraft:copy_nbt",
"source": {
"type": "storage",
"source": "armor_statues:book_data"
},
"ops": [
{
"source": "tag",
"target": "{}",
"op": "merge"
}
]
}
]
}
]
}
]
}

View File

@ -0,0 +1,529 @@
{
"type": "minecraft:loot",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:written_book",
"functions": [
{
"function": "minecraft:set_nbt",
"tag": "{
title:\"Statues V2.10\",
author:\"Stick God\",
datapack:\"ArmorStatuesV2\",
CustomModelData:10,
pages:[
'[
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"Statues V2.10\",\"color\":\"dark_blue\"},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"\\\\u24be\",\"color\":\"dark_purple\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"This book allows you to apply basic settings to an armor stand. Clicking the coloured links will adjust the closest armor stand within three blocks.\",\"color\":\"yellow\"}]}},
{\"text\":\"\\\\n \",\"color\":\"white\"},
{\"text\":\"\\\\u293a\",\"bold\":true,\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1200\"},\"hoverEvent\":{\"action\":\"show_text\",\"contents\":{\"text\":\"Undo\",\"color\":\"yellow\"}}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"\\\\u27f2\",\"bold\":true,\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_repeat set 1\"},\"hoverEvent\":{\"action\":\"show_text\",\"contents\":{\"text\":\"Repeat\",\"color\":\"yellow\"}}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"\\\\u293b\",\"bold\":true,\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1201\"},\"hoverEvent\":{\"action\":\"show_text\",\"contents\":{\"text\":\"Redo\",\"color\":\"yellow\"}}},
{\"text\":\"\\\\n Table of Contents\",\"color\":\"black\"},
{\"text\":\"\\\\n\",\"color\":\"white\"},
{\"text\":\"\\\\nStyles\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"change_page\",\"value\":2}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"Auto Align\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"change_page\",\"value\":7}},
{\"text\":\"\\\\nNudge\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"change_page\",\"value\":3}},
{\"text\":\" ..\",\"color\":\"white\"},
{\"text\":\"Swap Slots\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"change_page\",\"value\":7}},
{\"text\":\"\\\\nRotation\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"change_page\",\"value\":4}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"Mirror/Flip\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"change_page\",\"value\":8}},
{\"text\":\"\\\\nPointing\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"change_page\",\"value\":4}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"Utilities\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"change_page\",\"value\":8}},
{\"text\":\"\\\\nPresets\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"change_page\",\"value\":5}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"Item Frames\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"change_page\",\"value\":9}},
{\"text\":\"\\\\n\",\"color\":\"white\"},
{\"text\":\"Pose Adjust\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"change_page\",\"value\":6}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"Credits\",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"change_page\",\"value\":10}},
{\"text\":\"\\\\n\",\"color\":\"white\"},
{\"text\":\"\\\\n\",\"color\":\"white\"},
{\"text\":\"\\\\n \",\"color\":\"white\"},
{\"text\":\"Check Target\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 999\"}}
]',
'[
\"\",
{\"text\":\"\\\\u00ab\",\"color\":\"light_purple\",\"clickEvent\":{\"action\":\"change_page\",\"value\":1}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"Style Settings\",\"color\":\"dark_blue\"},
{\"text\":\"\\\\n\\\\nShow Base Plate:\",\"color\":\"black\"},
{\"text\":\"\\\\n \",\"color\":\"white\"},
{\"text\":\"Yes\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1\"}},
{\"text\":\" / \",\"color\":\"black\"},
{\"text\":\"No\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 2\"}},
{\"text\":\"\\\\nShow Arms:\",\"color\":\"black\"},
{\"text\":\"\\\\n \",\"color\":\"white\"},
{\"text\":\"Yes\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 3\"}},
{\"text\":\" / \",\"color\":\"black\"},
{\"text\":\"No\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 4\"}},
{\"text\":\"\\\\nSmall Stand:\",\"color\":\"black\"},
{\"text\":\"\\\\n \",\"color\":\"white\"},
{\"text\":\"Yes\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 5\"}},
{\"text\":\" / \",\"color\":\"black\"},
{\"text\":\"No\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 6\"}},
{\"text\":\"\\\\nApply Gravity:\",\"color\":\"black\"},
{\"text\":\"\\\\n \",\"color\":\"white\"},
{\"text\":\"Yes\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 7\"}},
{\"text\":\" / \",\"color\":\"black\"},
{\"text\":\"No\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 8\"}},
{\"text\":\"\\\\nStand Visible:\",\"color\":\"black\"},
{\"text\":\"\\\\n \",\"color\":\"white\"},
{\"text\":\"Yes\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 9\"}},
{\"text\":\" / \",\"color\":\"black\"},
{\"text\":\"No\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 10\"}},
{\"text\":\"\\\\nHas Visual Fire:\",\"color\":\"black\"},
{\"text\":\"\\\\n \",\"color\":\"white\"},
{\"text\":\"Yes\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 13\"}},
{\"text\":\" / \",\"color\":\"black\"},
{\"text\":\"No\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 14\"}}
]',
'[
\"\",
{\"text\":\"\\\\u00ab\",\"color\":\"light_purple\",\"clickEvent\":{\"action\":\"change_page\",\"value\":1}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"Nudge Position\",\"color\":\"dark_blue\"},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"\\\\u24be\",\"color\":\"dark_purple\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Turn gravity off before nudging the Y-position.\\\\n\\\\nRelative Aligned nudging moves the armor stand relative to the player\\'s position and aligned to the block grid. (X=Left/Right, Z=Away/Towards)\\\\n\\\\nRelative Aligned nudging moves the armor stand relative to the player\\'s exact position. (X=Left/Right, Y=Above/Below, Z=Away/Towards)\\\\n\\\\nNudges are in 16ths of a block to align with the pixels of the block textures.\",\"color\":\"yellow\"}]}},
{\"text\":\"\\\\n\\\\nX: \",\"color\":\"black\"},
{\"text\":\"-8\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 40\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"-3\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 101\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"-1\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 102\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+1\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 103\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+3\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 104\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+8\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 43\"}},
{\"text\":\"\\\\nY: \",\"color\":\"black\"},
{\"text\":\"-8\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 44\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"-3\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 105\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"-1\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 106\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+1\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 107\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+3\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 108\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+8\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 47\"}},
{\"text\":\"\\\\nZ: \",\"color\":\"black\"},
{\"text\":\"-8\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 48\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"-3\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 109\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"-1\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 110\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+1\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 111\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+3\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 112\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+8\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 51\"}},
{\"text\":\"\\\\n\\\\n Relative Aligned \",\"color\":\"black\"},
{\"text\":\"\\\\nX: \",\"color\":\"black\"},
{\"text\":\"-8\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1100\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"-3\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1101\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"-1\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1102\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+1\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1103\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+3\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1104\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+8\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1105\"}},
{\"text\":\"\\\\nZ: \",\"color\":\"black\"},
{\"text\":\"-8\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1106\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"-3\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1107\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"-1\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1108\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+1\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1109\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+3\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1110\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+8\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1111\"}},
{\"text\":\"\\\\n \",\"color\":\"white\"},
{\"text\":\"\\\\n Relative Exact \",\"color\":\"black\"},
{\"text\":\"\\\\nX: \",\"color\":\"black\"},
{\"text\":\"-8\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1112\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"-3\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1113\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"-1\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1114\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+1\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1115\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+3\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1116\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+8\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1117\"}},
{\"text\":\"\\\\nY: \",\"color\":\"black\"},
{\"text\":\"-8\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1118\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"-3\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1119\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"-1\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1120\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+1\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1121\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+3\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1122\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+8\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1123\"}},
{\"text\":\"\\\\nZ: \",\"color\":\"black\"},
{\"text\":\"-8\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1124\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"-3\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1125\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"-1\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1126\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+1\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1127\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+3\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1128\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"+8\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1129\"}},
\"\"
]',
'[
\"\",
{\"text\":\"\\\\u00ab\",\"color\":\"light_purple\",\"clickEvent\":{\"action\":\"change_page\",\"value\":1}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"Adjust Rotation\",\"color\":\"dark_blue\"},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"\\\\u24be\",\"color\":\"dark_purple\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"The angle step (default 15\\\\u00b0) is used for both the stand rotation and the pose adjustments.\\\\n\\\\nToward and Away turn the armor stand to face toward or away from you.\",\"color\":\"yellow\"}]}},
{\"text\":\"\\\\n\\\\n \",\"color\":\"white\"},
{\"text\":\"<<\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 56\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"45\\\\u00b0\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 120\"}},
{\"text\":\" \",\"color\":\"black\"},
{\"text\":\"15\\\\u00b0\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 121\"}},
{\"text\":\" \",\"color\":\"black\"},
{\"text\":\"5\\\\u00b0\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 122\"}},
{\"text\":\" \",\"color\":\"black\"},
{\"text\":\"1\\\\u00b0\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 123\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\">>\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 57\"}},
{\"text\":\"\\\\n\\\\n \",\"color\":\"white\"},
{\"text\":\"Toward\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 124\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"Away\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 125\"}},
{\"text\":\"\\\\n\\\\n \",\"color\":\"white\"},
{\"text\":\"Pointing\",\"color\":\"dark_blue\"},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"\\\\u24be\",\"color\":\"dark_purple\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Points selected appendage at head or feet.\",\"color\":\"yellow\"}]}},
{\"text\":\"\\\\nGet Pointer Wand\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger pointer_wand\"}},
{\"text\":\"\\\\n\",\"color\":\"white\"},
{\"text\":\"Head:\",\"color\":\"black\"},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"Head\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1160\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"Feet\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1166\"}},
{\"text\":\"\\\\n\",\"color\":\"white\"},
{\"text\":\"Body:\",\"color\":\"black\"},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"Head\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1161\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"Feet\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1167\"}},
{\"text\":\"\\\\n\",\"color\":\"white\"},
{\"text\":\"R.Arm:\",\"color\":\"black\"},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"Head\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1162\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"Feet\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1168\"}},
{\"text\":\"\\\\n\",\"color\":\"white\"},
{\"text\":\"L.Arm:\",\"color\":\"black\"},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"Head\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1163\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"Feet\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1169\"}},
{\"text\":\"\\\\n\",\"color\":\"white\"},
{\"text\":\"R.Leg:\",\"color\":\"black\"},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"Head\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1164\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"Feet\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1170\"}},
{\"text\":\"\\\\n\",\"color\":\"white\"},
{\"text\":\"L.Leg:\",\"color\":\"black\"},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"Head\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1165\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"Feet\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1171\"}}
]',
'[
\"\",
{\"text\":\"\\\\u00ab\",\"color\":\"light_purple\",\"clickEvent\":{\"action\":\"change_page\",\"value\":1}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"Pose Presets\",\"color\":\"dark_blue\"},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"\\\\u24be\",\"color\":\"dark_purple\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"The Death pose is for a figure lying down and requires a separate armor stand for the legs.\\\\n\\\\nRandomized creates a completely unique randomized custom pose.\\\\n\\\\nThe Block and Item presets are designed to hold blocks and items in line with the world grid.\",\"color\":\"yellow\"}]}},
{\"text\":\"\\\\n\\\\nAttention\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 20\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"Confident\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 30\"}},
{\"text\":\"\\\\nWalking\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 21\"}},
{\"text\":\" ..\",\"color\":\"white\"},
{\"text\":\"Salute\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 31\"}},
{\"text\":\"\\\\nRunning\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 22\"}},
{\"text\":\" ..\",\"color\":\"white\"},
{\"text\":\"Death\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 32\"}},
{\"text\":\"\\\\nPointing\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 23\"}},
{\"text\":\" ..\",\"color\":\"white\"},
{\"text\":\"Facepalm\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 33\"}},
{\"text\":\"\\\\nBlocking\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 24\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"Lazing\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 34\"}},
{\"text\":\"\\\\nLungeing\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 25\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"Confused\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 35\"}},
{\"text\":\"\\\\nWinning\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 26\"}},
{\"text\":\" ..\",\"color\":\"white\"},
{\"text\":\"Formal\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 36\"}},
{\"text\":\"\\\\nSitting\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 27\"}},
{\"text\":\" ..\",\"color\":\"white\"},
{\"text\":\"Sad\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 37\"}},
{\"text\":\"\\\\nArabesque\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 28\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"Joyous\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 38\"}},
{\"text\":\"\\\\nCupid\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 29\"},\"underlined\":true},
{\"text\":\" \",\"color\":\"dark_green\",\"underlined\":true},
{\"text\":\"Stargazing\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 39\"},\"underlined\":true},
{\"text\":\"\\\\n\",\"color\":\"white\"},
{\"text\":\"Randomized\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1150\"}},
{\"text\":\"\\\\nBlock\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 141\"}},
{\"text\":\" ..\",\"color\":\"white\"},
{\"text\":\"Item\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 142\"}}
]',
'[
\"\",
{\"text\":\"\\\\u00ab\",\"color\":\"light_purple\",\"clickEvent\":{\"action\":\"change_page\",\"value\":1}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"Pose Adjustment\",\"color\":\"dark_blue\"},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"\\\\u24be\",\"color\":\"dark_purple\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"The angle step set for adjusting the stand rotation is also used for the pose adjustments.\",\"color\":\"yellow\"}]}},
{\"text\":\"\\\\nGet Adjustment Wand\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger adjustment_wand\"}},
{\"text\":\"\\\\n .\",\"color\":\"white\"},
{\"text\":\"X\",\"color\":\"black\"},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"Y\",\"color\":\"black\"},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"Z\",\"color\":\"black\"},
{\"text\":\"\\\\nHead\",\"color\":\"black\"},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"-\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 60\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"+\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 61\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"-\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 62\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"+\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 63\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"-\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 64\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"+\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 65\"}},
{\"text\":\"\\\\n\\\\nBody\",\"color\":\"black\"},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"-\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 67\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"+\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 66\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"-\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 68\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"+\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 69\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"-\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 70\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"+\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 71\"}},
{\"text\":\"\\\\n\\\\nR.Arm\",\"color\":\"black\"},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"-\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 72\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"+\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 73\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"-\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 74\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"+\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 75\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"-\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 77\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"+\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 76\"}},
{\"text\":\"\\\\n\\\\nL.Arm\",\"color\":\"black\"},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"-\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 78\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"+\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 79\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"-\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 81\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"+\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 80\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"-\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 82\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"+\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 83\"}},
{\"text\":\"\\\\n\\\\nR.Leg\",\"color\":\"black\"},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"-\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 84\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"+\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 85\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"-\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 87\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"+\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 86\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"-\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 89\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"+\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 88\"}},
{\"text\":\"\\\\n\\\\nL.Leg\",\"color\":\"black\"},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"-\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 90\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"+\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 91\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"-\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 92\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"+\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 93\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"-\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 94\"}},
{\"text\":\" .\",\"color\":\"white\"},
{\"text\":\"+\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 95\"}}
]',
'[
\"\",
{\"text\":\"\\\\u00ab\",\"color\":\"light_purple\",\"clickEvent\":{\"action\":\"change_page\",\"value\":1}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"Auto Alignment\",\"color\":\"dark_blue\"},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"\\\\u24be\",\"color\":\"dark_purple\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Pose and position an armor stand to align a held block or item with an adjacent block.\",\"color\":\"yellow\"}]}},
{\"text\":\"\\\\n\\\\n\",\"color\":\"white\"},
{\"text\":\"Block on surface\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 151\"},\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Align an armor stand placed on a surface so that a block held by it appears on the surface.\",\"color\":\"yellow\"}]}},
{\"text\":\"\\\\n\\\\n\",\"color\":\"white\"},
{\"text\":\"Item on surface\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 152\"},\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Align an armor stand placed on a surface so that an item held by it appears upright on the surface.\",\"color\":\"yellow\"}]}},
{\"text\":\"\\\\n\",\"color\":\"white\"},
{\"text\":\"Item flat on surface\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 153\"},\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Align an armor stand placed on a surface so that a non-tool item held by it appears flat on the surface.\",\"color\":\"yellow\"}]}},
{\"text\":\"\\\\n\",\"color\":\"white\"},
{\"text\":\"Tool flat on surface\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 154\"},\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Align an armor stand placed on a surface so that a tool held by it appears flat on the surface.\",\"color\":\"yellow\"}]}},
{\"text\":\"\\\\n\\\\n\",\"color\":\"white\"},
{\"text\":\"Tool rack\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 155\"},\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Align an armor stand with a tripwire hook on the wall above it so that a tool held by it appears to be hanging up.\\\\n\\\\nAlso locks the armor stand and disables all slots except the mainhand.\",\"color\":\"yellow\"}]}},
{\"text\":\"\\\\n\\\\n \",\"color\":\"white\"},
{\"text\":\"Swap Slots\",\"color\":\"dark_blue\"},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"\\\\u24be\",\"color\":\"dark_purple\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Swap items between equipment slots\",\"color\":\"yellow\"}]}},
{\"text\":\"\\\\n\\\\n.\",\"color\":\"white\"},
{\"text\":\"Mainhand \",\"color\":\"black\"},
{\"text\":\"<->\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 161\"}},
{\"text\":\" Offhand\",\"color\":\"black\"},
{\"text\":\"\\\\n \",\"color\":\"white\"},
{\"text\":\"Mainhand \",\"color\":\"black\"},
{\"text\":\"<->\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 162\"}},
{\"text\":\" Head\",\"color\":\"black\"}
]',
'[
\"\",
{\"text\":\"\\\\u00ab\",\"color\":\"light_purple\",\"clickEvent\":{\"action\":\"change_page\",\"value\":1}},
{\"text\":\".\",\"color\":\"white\"},
{\"text\":\"Pose Mirror & Flip\",\"color\":\"dark_blue\"},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"\\\\u24be\",\"color\":\"dark_purple\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Mirroring copies the arm or leg pose from left to right or vice versa. Flipping reverses the armor stand\\'s pose entirely.\",\"color\":\"yellow\"}]}},
{\"text\":\"\\\\n\\\\n \",\"color\":\"white\"},
{\"text\":\"Mirror Arms\",\"color\":\"black\"},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"L>R\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 131\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"R>L\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 132\"}},
{\"text\":\"\\\\n \",\"color\":\"white\"},
{\"text\":\"Legs\",\"color\":\"black\"},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"L>R\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 133\"}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"R>L\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 134\"}},
{\"text\":\"\\\\n\\\\n .\",\"color\":\"white\"},
{\"text\":\"<-Flip->\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 135\"}},
{\"text\":\"\\\\n\\\\n \",\"color\":\"white\"},
{\"text\":\"Utilities\",\"color\":\"dark_blue\"},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"\\\\u24be\",\"color\":\"dark_purple\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Copying an armor stand stores it\\'s settings and pose in the book and these can then be pasted into another armor stand. The book must be the selected item in your mainhand or offhand for this to work.\\\\n\\\\nLocking an armor stand prevents it from being changed using the book and disables interaction with the equipment slots.\\\\n\\\\nSealing an armor stand, which is only available in creative mode, does the same and in addition makes it invulnerable\",\"color\":\"yellow\"}]}},
{\"text\":\"\\\\n\\\\n .\",\"color\":\"white\"},
{\"text\":\"Copy\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1004\"}},
{\"text\":\" / \",\"color\":\"black\"},
{\"text\":\"Paste\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1005\"}},
{\"text\":\"\\\\n\\\\n \",\"color\":\"white\"},
{\"text\":\"Lock\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1000\"}},
{\"text\":\" / \",\"color\":\"black\"},
{\"text\":\"Unlock\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 1001\"}},
{\"text\":\"\\\\n\\\\n \",\"color\":\"white\"},
{\"text\":\"Seal\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/function armor_statues:sealing/seal\"}},
{\"text\":\" / \",\"color\":\"black\"},
{\"text\":\"Unseal\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/function armor_statues:sealing/unseal\"}}
]',
'[
\"\",
{\"text\":\"\\\\u00ab\",\"color\":\"light_purple\",\"clickEvent\":{\"action\":\"change_page\",\"value\":1}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"Item Frames\",\"color\":\"dark_blue\"},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"\\\\u24be\",\"color\":\"dark_purple\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"To make an item frame invisible it must be one block in front of the players eyes and have an item in the frame.\\\\nAlternatively you can also enter:\\\\n/trigger if_invisible\\\\nTo make the item frame visible remove its item.\\\\n\\\\nMust be in creative to make item frame Fixed, or have it enabled from the admin menu.\",\"color\":\"yellow\"}]}},
{\"text\":\"\\\\n\\\\n\",\"color\":\"white\"},
{\"text\":\"Invisible item frame\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger if_invisible set 1\"}},
{\"text\":\"\\\\n\\\\n\",\"color\":\"white\"},
{\"text\":\"Fixed Item Frame:\",\"color\":\"black\"},
{\"text\":\"\\\\n \",\"color\":\"white\"},
{\"text\":\"Yes\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger if_invisible set 2\"}},
{\"text\":\" / \",\"color\":\"black\"},
{\"text\":\"No\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger if_invisible set 3\"}},
{\"text\":\"\",\"color\":\"white\"}
]',
'[
\"\",
{\"text\":\"\\\\u00ab\",\"color\":\"light_purple\",\"clickEvent\":{\"action\":\"change_page\",\"value\":1}},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"Credits\",\"color\":\"dark_blue\"},
{\"text\":\" \",\"color\":\"white\"},
{\"text\":\"\\\\u24be\",\"color\":\"dark_purple\",\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[{\"text\":\"Click on names for links.\",\"color\":\"yellow\"}]}},
{\"text\":\"\\\\n\\\\n Original concept by\",\"color\":\"black\"},
{\"text\":\"\\\\n \",\"color\":\"white\"},
{\"text\":\"Phssthpok\",\"color\":\"#87325d\",\"bold\":true,\"clickEvent\":{\"action\":\"open_url\",\"value\":\"https://twitter.com/MCPhssthpok\"}},
{\"text\":\"\\\\n\\\\n \",\"color\":\"white\"},
{\"text\":\"Additional\",\"color\":\"black\"},
{\"text\":\"\\\\n \",\"color\":\"white\"},
{\"text\":\"improvements by\",\"color\":\"black\"},
{\"text\":\"\\\\n \",\"color\":\"white\"},
{\"text\":\"MSpaceDev\",\"color\":\"#e30000\",\"bold\":true,\"clickEvent\":{\"action\":\"open_url\",\"value\":\"https://www.youtube.com/c/MinecraftSpace\"}},
{\"text\":\"\\\\n\\\\n \",\"color\":\"white\"},
{\"text\":\"Development and\",\"color\":\"black\"},
{\"text\":\"\\\\n \",\"color\":\"white\"},
{\"text\":\"improvements by\",\"color\":\"black\"},
{\"text\":\"\\\\n \",\"color\":\"white\"},
{\"text\":\"MukiTanuki\",\"color\":\"#0072e5\",\"bold\":true,\"clickEvent\":{\"action\":\"open_url\",\"value\":\"https://twitter.com/MukiTanuki\"}}
]'
]
}"
}
]
}
]
}
]
}

View File

@ -3,8 +3,19 @@
"pack_format": 18,
"supported_formats": {
"min_inclusive": 18,
"max_inclusive": 18
"max_inclusive": 26
},
"description": [{"text":"Armor Statues","color":"gold"},{"text":"\n","color":"yellow"}]
},
"overlays": {
"entries": [
{
"directory": "1_20_3",
"formats": {
"min_inclusive": 19,
"max_inclusive": 9999999
}
}
]
}
}