mirror of
https://github.com/LZStealth/armor-statues.git
synced 2025-06-07 05:06:45 +01:00
Initial commit for armor statues
This commit is contained in:
parent
490890cd34
commit
dafdb83c30
35
README.md
35
README.md
@ -1,2 +1,33 @@
|
||||
# armor-statues
|
||||
A datapack that makes use of a book with clickable links to modify the settings and pose of armor stands
|
||||
# Armor Statues
|
||||
A datapack that allows you to modify the settings and pose of armor stands using a book with clickable links.
|
||||
|
||||
### Everything you should know about this pack
|
||||
|
||||
1. This datapack uses a book of clickable links to modify the settings and pose of armour stands.
|
||||
2. Once the datapack is installed, use "/trigger as_help" to see how to obtain the book.
|
||||
(By default this is by clicking a link in the help text but this can be changed in the admin settings.)
|
||||
3. Admin settings are available using "/function as:admin" command and include:
|
||||
- Creating and removing a particle shrine for obtaining the book.
|
||||
- Enabling and disabling a crafting method for obtaining the book.
|
||||
- Enabling and disabling the link in the help text for obtaining the book.
|
||||
- Removing unused armour stands; ones that are invisible and do not hold or wear any items.
|
||||
4. The help text will be amended to show the selected method(s) of obtaining the book
|
||||
5. The help text also includes options to have notification messages in either the action bar or in chat.
|
||||
|
||||
### Release Notes
|
||||
#### v2.9.0 BETA 3
|
||||
- Added Admin Menu features accessed with /function armor_statues:admin
|
||||
- Added 'Max Undo States': Sets the maximum number of times the armor statues book can Undo actions. Defaults to 10.
|
||||
- Added 'Item Frame animation time': Sets the amount of time that item frames can be detected and animate armor stands. (16 is recommended) Defaults to 0.
|
||||
- Saved books now label if they have a saved pose in their Lore. You can name a saved pose by first naming the Armor Stand.
|
||||
|
||||
- Added a new 'states' system to Armor stand books. These can be found on the first page and include Repeat, Undo, and Redo.
|
||||
1. Repeat - allows you to perform the same action multiple times.
|
||||
2. Undo/Redo - allows you to revert multiple actions. The number of times that actions can be undone is based on the Max Undo States. This resets every time a different armor stand is edited.
|
||||
|
||||
|
||||
- Added Item Frame Animators.
|
||||
1. Disabled by default.
|
||||
2. Allows players to place books(with a saved pose) into item frames to animate armor stands. You can animate them by placing redstone dust in the space with the item frame, then powering it.
|
||||
3. Animates the nearest armor stand within 8 blocks.
|
||||
4. Animations won't play unless there's a player within 35 blocks of the item frame.
|
||||
|
18
data/armor_statues/advancements/armor_statues.json
Normal file
18
data/armor_statues/advancements/armor_statues.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"item": "minecraft:armor_stand"
|
||||
},
|
||||
"title": " Armor Statues ",
|
||||
"frame": "challenge",
|
||||
"description": ["",{"text":"Adds a unique book that allows you to alter the properties of armor stands in survival. ","color":"gold"},{"text":"Datapack by: ","color":"green"},{"text":"Phssthpok, MSpaceDev, and MukiTanuki\n","color":"aqua"},{"text":"Enter","color":"green"},{"text":" ","color":"gold"},{"text":"/trigger as_help","color":"yellow"},{"text":" for details.\n","color":"gold"},{"text":"Enter","color":"green"},{"text":" ","color":"gold"},{"text":"/function armor_statues:admin","color":"yellow"},{"text":" and use auto-complete to set config options.","color":"gold"}],
|
||||
"background": "minecraft:textures/block/black_concrete.png",
|
||||
"show_toast": false,
|
||||
"announce_to_chat": false
|
||||
},
|
||||
"criteria": {
|
||||
"tick": {
|
||||
"trigger": "minecraft:tick"
|
||||
}
|
||||
}
|
||||
}
|
39
data/armor_statues/advancements/crafting.json
Normal file
39
data/armor_statues/advancements/crafting.json
Normal file
@ -0,0 +1,39 @@
|
||||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"item": "minecraft:armor_stand"
|
||||
},
|
||||
"title": {
|
||||
"text":"craft_book"
|
||||
},
|
||||
"description": {
|
||||
"text":""
|
||||
},
|
||||
"frame": "task",
|
||||
"show_toast": false,
|
||||
"announce_to_chat": false,
|
||||
"hidden": false
|
||||
},
|
||||
"parent": "armor_statues:root",
|
||||
"criteria": {
|
||||
"craft_book": {
|
||||
"trigger": "minecraft:inventory_changed",
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"item": "minecraft:written_book",
|
||||
"nbt": "{title:\"Statues\"}"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"requirements": [
|
||||
[
|
||||
"craft_book"
|
||||
]
|
||||
],
|
||||
"rewards": {
|
||||
"function": "armor_statues:craft_book"
|
||||
}
|
||||
}
|
31
data/armor_statues/advancements/enable.json
Normal file
31
data/armor_statues/advancements/enable.json
Normal file
@ -0,0 +1,31 @@
|
||||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"item": "minecraft:armor_stand"
|
||||
},
|
||||
"title": {
|
||||
"text":"enable_as_trigger"
|
||||
},
|
||||
"description": {
|
||||
"text":""
|
||||
},
|
||||
"frame": "task",
|
||||
"show_toast": false,
|
||||
"announce_to_chat": false,
|
||||
"hidden": false
|
||||
},
|
||||
"parent": "armor_statues:root",
|
||||
"criteria": {
|
||||
"tick": {
|
||||
"trigger": "minecraft:tick"
|
||||
}
|
||||
},
|
||||
"requirements": [
|
||||
[
|
||||
"tick"
|
||||
]
|
||||
],
|
||||
"rewards": {
|
||||
"function": "armor_statues:enable"
|
||||
}
|
||||
}
|
12
data/armor_statues/advancements/root.json
Normal file
12
data/armor_statues/advancements/root.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"criteria": {
|
||||
"impossible": {
|
||||
"trigger": "minecraft:impossible"
|
||||
}
|
||||
},
|
||||
"requirements": [
|
||||
[
|
||||
"impossible"
|
||||
]
|
||||
]
|
||||
}
|
12
data/armor_statues/functions/3_second.mcfunction
Normal file
12
data/armor_statues/functions/3_second.mcfunction
Normal file
@ -0,0 +1,12 @@
|
||||
#
|
||||
# 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=item_frame,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=item_frame,tag=as_animatable,predicate=!armor_statues:item_frame_with_book] run tag @s remove as_animatable
|
26
data/armor_statues/functions/admin.mcfunction
Normal file
26
data/armor_statues/functions/admin.mcfunction
Normal file
@ -0,0 +1,26 @@
|
||||
#
|
||||
# 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"}}]
|
||||
tellraw @s [{"text":"Get book from help: ","color":"aqua"},{"storage":"customizable_armor_stands:settings", "nbt":"as_admin.book_help", "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"}}}]
|
||||
tellraw @s [{"text":"Craftable book: ","color":"aqua"},{"storage":"customizable_armor_stands:settings", "nbt":"as_admin.book_craft", "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"}}}]
|
||||
tellraw @s [{"text":"UUID locked Armor Stands: ","color":"aqua"},{"storage":"customizable_armor_stands:settings", "nbt":"as_admin.uuid_lock", "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"}}}]
|
||||
tellraw @s [{"text":"Enable Item Frame Fixing: ","color":"aqua"},{"storage":"customizable_armor_stands:settings", "nbt":"as_admin.fixed_item_frame", "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"}}}]
|
||||
#
|
||||
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"}]
|
||||
#
|
||||
#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.
|
||||
#
|
@ -0,0 +1,11 @@
|
||||
#
|
||||
# Description: Disable option to get the book directly from the help menu
|
||||
# Called by: armor_statues:admin via chat link
|
||||
# Entity @s: player
|
||||
#
|
||||
execute store success score #as_success as_help run data modify storage customizable_armor_stands:settings as_admin.book_help set value "Disabled"
|
||||
execute unless score #as_success as_help matches 1 run data modify storage customizable_armor_stands:settings as_admin.book_help set value "Enabled"
|
||||
#
|
||||
tellraw @s [{"text":"Getting the book from the help menu has been ","color":"aqua"},{"storage":"customizable_armor_stands:settings", "nbt":"as_admin.book_help"}]
|
||||
#
|
||||
function armor_statues:admin
|
@ -0,0 +1,11 @@
|
||||
#
|
||||
# Description: Enable option to get the book by crafting
|
||||
# Called by: armor_statues:admin via chat link
|
||||
# Entity @s: player
|
||||
#
|
||||
execute store success score #as_success as_help run data modify storage customizable_armor_stands:settings as_admin.book_craft set value "Disabled"
|
||||
execute unless score #as_success as_help matches 1 run data modify storage customizable_armor_stands:settings as_admin.book_craft set value "Enabled"
|
||||
#
|
||||
tellraw @s [{"text":"Getting the book via crafting has been ","color":"aqua"},{"storage":"customizable_armor_stands:settings", "nbt":"as_admin.book_craft"}]
|
||||
#
|
||||
function armor_statues:admin
|
@ -0,0 +1,11 @@
|
||||
#
|
||||
# Description: Enable option to get allow item frame fixing from the book
|
||||
# Called by: armor_statues:admin via chat link
|
||||
# Entity @s: player
|
||||
#
|
||||
execute store success score #as_success as_help run data modify storage customizable_armor_stands:settings as_admin.fixed_item_frame set value "Disabled"
|
||||
execute unless score #as_success as_help matches 1 run data modify storage customizable_armor_stands:settings as_admin.fixed_item_frame set value "Enabled"
|
||||
#
|
||||
tellraw @s [{"text":"Fixing item frame option has been ","color":"aqua"},{"storage":"customizable_armor_stands:settings", "nbt":"as_admin.fixed_item_frame"}]
|
||||
#
|
||||
function armor_statues:admin
|
24
data/armor_statues/functions/admin/marker.mcfunction
Normal file
24
data/armor_statues/functions/admin/marker.mcfunction
Normal file
@ -0,0 +1,24 @@
|
||||
#
|
||||
# This function is currently not used - see armor_statues:admin for details
|
||||
#
|
||||
|
||||
#
|
||||
# Description: Sets the Marker tag on all locked armor stands within 128 blocks
|
||||
# Called by: armor_statues:admin via chat clickEvent
|
||||
# Entity @s: Player
|
||||
#
|
||||
# Note: DisabledSlots tag is checked to exclude armor stands in tool racks
|
||||
#
|
||||
# Store number of affected stands for reporting
|
||||
#
|
||||
execute store result score @s as_pose run execute if entity @e[type=armor_stand,distance=..128,tag=as_locked,nbt=!{Marker:1b},nbt=!{DisabledSlots:4079166}]
|
||||
#
|
||||
# Set Marker tag on affected stands
|
||||
#
|
||||
execute as @e[type=armor_stand,distance=..128,tag=as_locked,nbt=!{Marker:1b},nbt=!{DisabledSlots:4079166}] run data merge entity @s {Marker:1b}
|
||||
#
|
||||
# Report number affected
|
||||
#
|
||||
tellraw @p [{"text":"Marker set on ","color":"aqua"},{"score":{"name":"@s","objective":"as_pose"},"color":"aqua"},{"text":" armor stands","color":"aqua"}]
|
||||
#
|
||||
scoreboard players reset @s as_pose
|
20
data/armor_statues/functions/admin/unused.mcfunction
Normal file
20
data/armor_statues/functions/admin/unused.mcfunction
Normal file
@ -0,0 +1,20 @@
|
||||
#
|
||||
# Description: Removes all unused armor stands in loaded chunks
|
||||
# Called by: armor_statues:admin via chat clickEvent
|
||||
# Entity @s: Player
|
||||
#
|
||||
# Note: "Unused" stands are invisible, are not holding or wearing items, and are not part of a tool rack
|
||||
#
|
||||
# Store number of affected stands for reporting
|
||||
#
|
||||
execute store result score @s as_pose run execute if entity @e[type=armor_stand,nbt={Invisible:1b},nbt=!{HandItems:[{Count:1b}]},nbt=!{ArmorItems:[{Count:1b}]},nbt=!{DisabledSlots:4079166},nbt=!{Invulnerable:1b},nbt=!{Marker:1b}]
|
||||
#
|
||||
# Kill affected stands
|
||||
#
|
||||
execute as @e[type=armor_stand,nbt={Invisible:1b},nbt=!{HandItems:[{Count:1b}]},nbt=!{ArmorItems:[{Count:1b}]},nbt=!{DisabledSlots:4079166},nbt=!{Invulnerable:1b},nbt=!{Marker:1b}] run kill @s
|
||||
#
|
||||
# Report number affected
|
||||
#
|
||||
tellraw @p [{"score":{"name":"@s","objective":"as_pose"},"color":"aqua"},{"text":" unused armor stands deleted","color":"aqua"}]
|
||||
#
|
||||
scoreboard players reset @s as_pose
|
@ -0,0 +1,11 @@
|
||||
#
|
||||
# Description: Enable option to make locking match player uuids
|
||||
# Called by: armor_statues:admin via chat link
|
||||
# Entity @s: player
|
||||
#
|
||||
execute store success score #as_success as_help run data modify storage customizable_armor_stands:settings as_admin.uuid_lock set value "Disabled"
|
||||
execute unless score #as_success as_help matches 1 run data modify storage customizable_armor_stands:settings as_admin.uuid_lock set value "Enabled"
|
||||
#
|
||||
tellraw @s [{"text":"UUID locking has been ","color":"aqua"},{"storage":"customizable_armor_stands:settings", "nbt":"as_admin.uuid_lock"}]
|
||||
#
|
||||
function armor_statues:admin
|
8
data/armor_statues/functions/animate.mcfunction
Normal file
8
data/armor_statues/functions/animate.mcfunction
Normal file
@ -0,0 +1,8 @@
|
||||
#
|
||||
# Description: Animate armor stands based off of item frames
|
||||
# Called by: armor_statues:tick
|
||||
# Entity @s: None
|
||||
#
|
||||
tag @s add as_powered
|
||||
data modify entity @e[type=minecraft:armor_stand,distance=..8,tag=!as_locked,sort=nearest,limit=1,nbt=!{Marker:1b},nbt=!{Invulnerable:1b}] {} merge from entity @s Item.tag.SavedPose
|
||||
data modify entity @e[type=minecraft:armor_stand,distance=..8,tag=!as_locked,sort=nearest,limit=1,nbt=!{Marker:1b},nbt=!{Invulnerable:1b}] Pose set from entity @s Item.tag.SavedPose.Pose
|
8
data/armor_statues/functions/animate_time.mcfunction
Normal file
8
data/armor_statues/functions/animate_time.mcfunction
Normal file
@ -0,0 +1,8 @@
|
||||
#
|
||||
# Description: Animate armor stands based off of item frames
|
||||
# Called by: armor_statues:tick
|
||||
# Entity @s: None
|
||||
#
|
||||
execute as @e[type=minecraft:item_frame,tag=as_animatable,tag=!as_powered] at @s if entity @p[distance=..35] if block ~ ~ ~ minecraft:redstone_wire unless block ~ ~ ~ minecraft:redstone_wire[power=0] run function armor_statues:animate
|
||||
execute as @e[type=minecraft:item_frame,tag=as_animatable,tag=as_powered] at @s if block ~ ~ ~ minecraft:redstone_wire[power=0] run tag @s remove as_powered
|
||||
scoreboard players set #animate_time as_angle 0
|
16
data/armor_statues/functions/bugfix.mcfunction
Normal file
16
data/armor_statues/functions/bugfix.mcfunction
Normal file
@ -0,0 +1,16 @@
|
||||
#
|
||||
# Description: This is a temporary (?) workaround for bug MC-80975
|
||||
# Called by: armor_statues:trigger
|
||||
# Entity @s: armor_stand
|
||||
#
|
||||
# Pose data is not stored for parts of the armor stand that are in the "default" positions. This causes the execute store entity
|
||||
# and data get entity commands to fail.
|
||||
#
|
||||
# This function checks for the presence of each parts' pose data and updates it with tweaked default values if not present
|
||||
#
|
||||
execute unless data entity @s Pose.Head run data merge entity @s {Pose:{Head:[0.0f,0.001f,0.0f]}}
|
||||
execute unless data entity @s Pose.Body run data merge entity @s {Pose:{Body:[0.0f,0.001f,0.0f]}}
|
||||
execute unless data entity @s Pose.LeftArm run data merge entity @s {Pose:{LeftArm:[-10.0f,0.001f,-10.0f]}}
|
||||
execute unless data entity @s Pose.RightArm run data merge entity @s {Pose:{RightArm:[-15.0f,0.001f,10.0f]}}
|
||||
execute unless data entity @s Pose.LeftLeg run data merge entity @s {Pose:{LeftLeg:[-1.0f,0.001f,-1.0f]}}
|
||||
execute unless data entity @s Pose.RightLeg run data merge entity @s {Pose:{RightLeg:[1.0f,0.001f,1.0f]}}
|
8
data/armor_statues/functions/craft_book.mcfunction
Normal file
8
data/armor_statues/functions/craft_book.mcfunction
Normal 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 if data storage customizable_armor_stands:settings as_admin{book_craft:"Enabled"} run tag @s add as_craft
|
39
data/armor_statues/functions/enable.mcfunction
Normal file
39
data/armor_statues/functions/enable.mcfunction
Normal file
@ -0,0 +1,39 @@
|
||||
#
|
||||
# Description: Enable system for the player and issue control book
|
||||
# Called by: command block
|
||||
# Entity @s: player
|
||||
#
|
||||
# Trigger values in use are: 1-12 Style settings
|
||||
# 20-39 Pose presets
|
||||
# 40-51 Nudge position
|
||||
# 52-57 Adjust rotation
|
||||
# 60-95 Pose adjustment
|
||||
# 101-112 Nudge position
|
||||
# 120-123 Angle step
|
||||
# 124-125 Face towards or away
|
||||
# 131-135 Pose mirror and flip
|
||||
# 141-142 Pose presets
|
||||
# 151-155 Auto alignment
|
||||
# 161-162 Exchange Slots
|
||||
# 999 Check target
|
||||
# 1000-1003 Lock and seal
|
||||
# 1004-1005 Copy and paste
|
||||
# 1100-1129 Nuge position relative
|
||||
# 1150 Random pose
|
||||
# 1160-1171 Pointing
|
||||
# 1200-1201 Undo/Redo
|
||||
#
|
||||
# Set trigger score for player to zero and enable
|
||||
#
|
||||
scoreboard players set @s as_trigger 0
|
||||
scoreboard players enable @s as_trigger
|
||||
scoreboard players set @s as_help 0
|
||||
scoreboard players enable @s as_help
|
||||
scoreboard players set @s if_invisible 0
|
||||
scoreboard players enable @s if_invisible
|
||||
scoreboard players set @s as_repeat 0
|
||||
scoreboard players enable @s as_repeat
|
||||
#
|
||||
# Set angle step for rotation and pose adjustment to default 15 degrees
|
||||
#
|
||||
scoreboard players set @s as_angle 15
|
25
data/armor_statues/functions/give.mcfunction
Normal file
25
data/armor_statues/functions/give.mcfunction
Normal file
@ -0,0 +1,25 @@
|
||||
#
|
||||
# Description: Issue control book
|
||||
# Called by: command block
|
||||
# Entity @s: player
|
||||
#
|
||||
# Trigger values in use are: 1-12 Style settings
|
||||
# 20-39 Pose presets
|
||||
# 40-51 Nudge position
|
||||
# 52-57 Adjust rotation
|
||||
# 60-95 Pose adjustment
|
||||
# 101-112 Nudge position
|
||||
# 120-123 Angle step
|
||||
# 124-125 Face towards or away
|
||||
# 131-135 Pose mirror and flip
|
||||
# 141-142 Pose presets
|
||||
# 151-155 Auto alignment
|
||||
# 161-162 Exchange Slots
|
||||
# 999 Check target
|
||||
# 1000-1003 Lock and seal
|
||||
# 1004-1005 Copy and paste
|
||||
#
|
||||
# Give control book
|
||||
#
|
||||
loot give @s loot armor_statues:book
|
||||
|
14
data/armor_statues/functions/help.mcfunction
Normal file
14
data/armor_statues/functions/help.mcfunction
Normal 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 data storage customizable_armor_stands:settings as_admin{book_help:"Enabled"} 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
|
@ -0,0 +1,11 @@
|
||||
#
|
||||
# Description: Send notifications to chat
|
||||
# Called by: armor_statues:help
|
||||
# Entity @s: Player
|
||||
#
|
||||
execute store success score #as_success as_help run tag @s add as_chat
|
||||
execute unless score #as_success as_help matches 1 run tag @s remove as_chat
|
||||
|
||||
#
|
||||
execute if entity @s[tag=as_chat] run tellraw @s [{"text":"Notifications will be directed to chat","color":"aqua"}]
|
||||
execute if entity @s[tag=!as_chat] run tellraw @s [{"text":"Notifications will be directed to the action bar","color":"aqua"}]
|
11
data/armor_statues/functions/help/credits.mcfunction
Normal file
11
data/armor_statues/functions/help/credits.mcfunction
Normal file
@ -0,0 +1,11 @@
|
||||
#
|
||||
# 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"}]
|
6
data/armor_statues/functions/help/get_book.mcfunction
Normal file
6
data/armor_statues/functions/help/get_book.mcfunction
Normal file
@ -0,0 +1,6 @@
|
||||
#
|
||||
# Description: Get book via chat link
|
||||
# Called by: armor_statues:help
|
||||
# Entity @s: Player
|
||||
#
|
||||
function armor_statues:give
|
14
data/armor_statues/functions/help/main.mcfunction
Normal file
14
data/armor_statues/functions/help/main.mcfunction
Normal file
@ -0,0 +1,14 @@
|
||||
#
|
||||
# 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 data storage customizable_armor_stands:settings as_admin{book_help:"Enabled"} 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 data storage customizable_armor_stands:settings as_admin{book_craft:"Enabled"} 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"}]
|
38
data/armor_statues/functions/if_trigger.mcfunction
Normal file
38
data/armor_statues/functions/if_trigger.mcfunction
Normal file
@ -0,0 +1,38 @@
|
||||
#
|
||||
# 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=item_frame,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=item_frame,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=item_frame,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=item_frame,tag=as_selected] run function armor_statues:item_frames/fixed
|
||||
# Enabled
|
||||
execute if data storage customizable_armor_stands:settings as_admin{fixed_item_frame:"Enabled"} if entity @s[scores={if_invisible=2..3},gamemode=survival] as @e[type=item_frame,tag=as_selected] run function armor_statues:item_frames/fixed
|
||||
# Disabled
|
||||
execute if data storage customizable_armor_stands:settings as_admin{fixed_item_frame:"Disabled"} if entity @s[scores={if_invisible=2..3},gamemode=survival] if entity @p[tag=as_selected,predicate=!armor_statues:mainhand_potion,predicate=!armor_statues:offhand_potion] run title @a[tag=as_selected,tag=!as_chat] actionbar [{"text":"Must be enabled from admin menu","color":"dark_red"}]
|
||||
execute if data storage customizable_armor_stands:settings as_admin{fixed_item_frame:"Disabled"} if entity @s[scores={if_invisible=2..3},gamemode=survival] if entity @p[tag=as_selected,predicate=!armor_statues:mainhand_potion,predicate=!armor_statues:offhand_potion] run tellraw @a[tag=as_selected,tag=as_chat] [{"text":"<Stick_God> ","color":"dark_green"},{"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=item_frame,tag=as_selected] if_invisible
|
||||
tag @s remove as_selected
|
||||
tag @e[type=item_frame,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
|
20
data/armor_statues/functions/item_frames/fixed.mcfunction
Normal file
20
data/armor_statues/functions/item_frames/fixed.mcfunction
Normal file
@ -0,0 +1,20 @@
|
||||
#
|
||||
# Description: turns item frame invisible
|
||||
# Called by: armor_statues:if_trigger
|
||||
# Entity @s: item frame
|
||||
#
|
||||
# Makes item frame fixed
|
||||
#
|
||||
execute if entity @p[tag=as_selected,scores={if_invisible=2}] unless entity @s[tag=if_fixed] run title @a[tag=as_selected,tag=!as_chat] actionbar [{"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 tellraw @a[tag=as_selected,tag=as_chat] [{"text":"<Stick_God> ","color":"dark_green"},{"text":"Item frame fixed","color":"dark_red"}]
|
||||
#
|
||||
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 @p[tag=as_selected,scores={if_invisible=3}] if entity @s[tag=if_fixed] run title @a[tag=as_selected,tag=!as_chat] actionbar [{"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 tellraw @a[tag=as_selected,tag=as_chat] [{"text":"<Stick_God> ","color":"dark_green"},{"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
|
@ -0,0 +1,9 @@
|
||||
#
|
||||
# Description: turns item frame invisible if successful
|
||||
# Called by: armor_statues:if_trigger
|
||||
# Entity @s: item frame
|
||||
#
|
||||
# Makes item frame invisible
|
||||
#
|
||||
data merge entity @s {Invisible:1b}
|
||||
tag @s add if_invisible
|
@ -0,0 +1,14 @@
|
||||
#
|
||||
# Description: turns item frame invisible
|
||||
# Called by: armor_statues:if_trigger
|
||||
# Entity @s: item frame
|
||||
#
|
||||
#
|
||||
# If no potion in hand, display failure message
|
||||
#
|
||||
execute if entity @p[tag=as_selected,predicate=!armor_statues:mainhand_potion,predicate=!armor_statues:offhand_potion] run title @a[tag=as_selected,tag=!as_chat] actionbar [{"text":"Requires invisibility potion in Mainhand or Offhand","color":"dark_red"}]
|
||||
execute if entity @p[tag=as_selected,predicate=!armor_statues:mainhand_potion,predicate=!armor_statues:offhand_potion] run tellraw @a[tag=as_selected,tag=as_chat] [{"text":"<Stick_God> ","color":"dark_green"},{"text":"Requires invisibility potion in Mainhand or Offhand","color":"dark_red"}]
|
||||
#
|
||||
# If player has a potion in hand, successfully trigger
|
||||
#
|
||||
execute unless entity @p[tag=as_selected,predicate=!armor_statues:mainhand_potion,predicate=!armor_statues:offhand_potion] run function armor_statues:item_frames/invisible_success
|
@ -0,0 +1,7 @@
|
||||
#
|
||||
# Description: turns empty item frames visible
|
||||
# Called by: armor_statues:as_second
|
||||
# Entity @s: invisible item frame
|
||||
#
|
||||
execute as @s run data merge entity @s {Invisible:0b}
|
||||
execute as @s run tag @s remove if_invisible
|
48
data/armor_statues/functions/load.mcfunction
Normal file
48
data/armor_statues/functions/load.mcfunction
Normal file
@ -0,0 +1,48 @@
|
||||
#
|
||||
# Description: Create scoreboards
|
||||
# Called by: #main:init
|
||||
# Entity @s: None
|
||||
#
|
||||
# Create scoreboards
|
||||
#
|
||||
scoreboard objectives add as_trigger trigger
|
||||
scoreboard objectives add as_pose dummy
|
||||
scoreboard objectives add as_angle dummy
|
||||
scoreboard objectives add as_help trigger
|
||||
scoreboard objectives add if_invisible trigger
|
||||
scoreboard objectives add as_repeat trigger
|
||||
scoreboard objectives add as_edited_uuid1 dummy
|
||||
scoreboard objectives add as_edited_uuid2 dummy
|
||||
scoreboard objectives add as_edited_uuid3 dummy
|
||||
scoreboard objectives add as_edited_uuid4 dummy
|
||||
scoreboard objectives add as_lock_uuid1 dummy
|
||||
scoreboard objectives add as_lock_uuid2 dummy
|
||||
scoreboard objectives add as_lock_uuid3 dummy
|
||||
scoreboard objectives add as_lock_uuid4 dummy
|
||||
#
|
||||
# Resets triggers on reload
|
||||
#
|
||||
scoreboard players enable * as_trigger
|
||||
scoreboard players enable * as_help
|
||||
scoreboard players enable * if_invisible
|
||||
scoreboard players enable * as_repeat
|
||||
#
|
||||
# Variables
|
||||
#
|
||||
scoreboard players set #var15000 as_angle 15000
|
||||
scoreboard players set #var45000 as_angle 45000
|
||||
scoreboard players set #var30000 as_angle 30000
|
||||
scoreboard players set #var60000 as_angle 60000
|
||||
scoreboard players set #var90000 as_angle 90000
|
||||
scoreboard players set #var180000 as_angle 180000
|
||||
scoreboard players set #var360000 as_angle 360000
|
||||
scoreboard players set #var-1 as_angle -1
|
||||
#
|
||||
# Sets storage settings
|
||||
#
|
||||
execute unless data storage customizable_armor_stands:settings as_admin.book_craft run data modify storage customizable_armor_stands:settings as_admin.book_craft set value "Enabled"
|
||||
execute unless data storage customizable_armor_stands:settings as_admin.book_help run data modify storage customizable_armor_stands:settings as_admin.book_help set value "Disabled"
|
||||
execute unless data storage customizable_armor_stands:settings as_admin.fixed_item_frame run data modify storage customizable_armor_stands:settings as_admin.fixed_item_frame set value "Disabled"
|
||||
execute unless data storage customizable_armor_stands:settings as_admin.uuid_lock run data modify storage customizable_armor_stands:settings as_admin.uuid_lock set value "Disabled"
|
||||
execute unless score #undo_states as_angle matches 0.. run scoreboard players set #undo_states as_angle 10
|
||||
execute unless score #animate_trigger as_angle matches 0.. run scoreboard players set #animate_trigger as_angle 0
|
18
data/armor_statues/functions/locking/lock.mcfunction
Normal file
18
data/armor_statues/functions/locking/lock.mcfunction
Normal file
@ -0,0 +1,18 @@
|
||||
#
|
||||
# Description: Locks armor stand
|
||||
# Called by: armor_statues:trigger/lock
|
||||
# Entity @s: armor stand
|
||||
#
|
||||
execute as @p[tag=as_selected,tag=!as_chat] run title @s actionbar {"text":"Armor stand locked","color":"dark_green"}
|
||||
execute as @p[tag=as_selected,tag=as_chat] run tellraw @s {"text":"<Stick_God> 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
|
@ -0,0 +1,7 @@
|
||||
#
|
||||
# Description: Checks if armor stand has old or new lock
|
||||
# Called by: armor_statues:trigger/trigger/lock
|
||||
# Entity @s: Player
|
||||
#
|
||||
execute if entity @s[tag=as_locked,tag=as_uuid_locked] run function armor_statues:locking/uuid_check
|
||||
execute if entity @s[tag=as_locked,tag=!as_uuid_locked] run function armor_statues:locking/unlock
|
18
data/armor_statues/functions/locking/unlock.mcfunction
Normal file
18
data/armor_statues/functions/locking/unlock.mcfunction
Normal file
@ -0,0 +1,18 @@
|
||||
#
|
||||
# Description: Unlocks locked armor stand
|
||||
# Called by: armor_statues:trigger/lock
|
||||
# Entity @s: nearest locked armor stand
|
||||
#
|
||||
execute as @p[tag=as_selected,tag=!as_chat] run title @s actionbar {"text":"Armor stand unlocked","color":"dark_green"}
|
||||
execute as @p[tag=as_selected,tag=as_chat] run tellraw @s {"text":"<Stick_God> Armor stand unlocked","color":"dark_green"}
|
||||
effect give @s minecraft:glowing 1
|
||||
data merge entity @s {DisabledSlots:0}
|
||||
tag @s remove as_locked
|
||||
#
|
||||
# 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
|
15
data/armor_statues/functions/locking/uuid_check.mcfunction
Normal file
15
data/armor_statues/functions/locking/uuid_check.mcfunction
Normal file
@ -0,0 +1,15 @@
|
||||
#
|
||||
# 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,tag=!as_chat] run title @s actionbar {"text":"Can't modify armor stands locked by a different player","color":"dark_red"}
|
||||
execute if score #as_success as_help matches 0 as @p[tag=as_selected,tag=as_chat] run tellraw @s [{"text":"<Stick_God> ","color":"dark_green"},{"text":"Can't modify armor stands locked by a different player","color":"dark_red"}]
|
12
data/armor_statues/functions/randomizer/body.mcfunction
Normal file
12
data/armor_statues/functions/randomizer/body.mcfunction
Normal file
@ -0,0 +1,12 @@
|
||||
#
|
||||
# Description: Randomizes appendage rotation
|
||||
# Called by: armor_statues:trigger/random_pose
|
||||
# Entity @s: temp armor stand
|
||||
#
|
||||
execute store result score #x_angle as_angle run data get entity @s ArmorItems[3].tag.AttributeModifiers[{ "Name":"body_x" }].Amount 1000
|
||||
execute store result score #y_angle as_angle run data get entity @s ArmorItems[3].tag.AttributeModifiers[{ "Name":"body_y" }].Amount 1000
|
||||
execute store result score #z_angle as_angle run data get entity @s ArmorItems[3].tag.AttributeModifiers[{ "Name":"body_z" }].Amount 1000
|
||||
function armor_statues:randomizer/body_angle
|
||||
execute store result storage customizable_armor_stands:pose_storage Pose.Body[0] float 0.001 run scoreboard players get #x_angle as_angle
|
||||
execute store result storage customizable_armor_stands:pose_storage Pose.Body[1] float 0.001 run scoreboard players get #y_angle as_angle
|
||||
execute store result storage customizable_armor_stands:pose_storage Pose.Body[2] float 0.001 run scoreboard players get #z_angle as_angle
|
@ -0,0 +1,31 @@
|
||||
#
|
||||
# Description: adjusts probability
|
||||
# Called by: armor_statues:randomizer/body
|
||||
# Entity @s: temp armor stand
|
||||
#
|
||||
scoreboard players set #x_negative as_angle 0
|
||||
scoreboard players set #y_negative as_angle 0
|
||||
scoreboard players set #z_negative as_angle 0
|
||||
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
|
||||
# negative modulo
|
||||
execute if score #random_type as_angle matches 0..1 if score #x_angle as_angle matches ..-1 run scoreboard players set #x_negative as_angle 1
|
||||
execute if score #random_type as_angle matches 0..1 if score #y_angle as_angle matches ..-1 run scoreboard players set #y_negative as_angle 1
|
||||
execute if score #random_type as_angle matches 0..1 if score #z_angle as_angle matches ..-1 run scoreboard players set #z_negative as_angle 1
|
||||
execute if score #x_negative as_angle matches 1 run scoreboard players operation #x_angle as_angle *= #var-1 as_angle
|
||||
execute if score #y_negative as_angle matches 1 run scoreboard players operation #y_angle as_angle *= #var-1 as_angle
|
||||
execute if score #z_negative as_angle matches 1 run scoreboard players operation #z_angle as_angle *= #var-1 as_angle
|
||||
# small angle #random_type=0
|
||||
execute if score #random_type as_angle matches 0 run scoreboard players operation #x_angle as_angle %= #var15000 as_angle
|
||||
execute if score #random_type as_angle matches 0 run scoreboard players operation #y_angle as_angle %= #var15000 as_angle
|
||||
execute if score #random_type as_angle matches 0 run scoreboard players operation #z_angle as_angle %= #var15000 as_angle
|
||||
# med angle #random_type=1
|
||||
execute if score #random_type as_angle matches 1 run scoreboard players operation #x_angle as_angle %= #var30000 as_angle
|
||||
execute if score #random_type as_angle matches 1 run scoreboard players operation #y_angle as_angle %= #var30000 as_angle
|
||||
execute if score #random_type as_angle matches 1 run scoreboard players operation #z_angle as_angle %= #var30000 as_angle
|
||||
# extreme angle #random_type=2 (no modulo)
|
||||
# reversed negative
|
||||
execute if score #x_negative as_angle matches 1 run scoreboard players operation #x_angle as_angle *= #var-1 as_angle
|
||||
execute if score #y_negative as_angle matches 1 run scoreboard players operation #y_angle as_angle *= #var-1 as_angle
|
||||
execute if score #z_negative as_angle matches 1 run scoreboard players operation #z_angle as_angle *= #var-1 as_angle
|
12
data/armor_statues/functions/randomizer/head.mcfunction
Normal file
12
data/armor_statues/functions/randomizer/head.mcfunction
Normal file
@ -0,0 +1,12 @@
|
||||
#
|
||||
# Description: Randomizes appendage rotation
|
||||
# Called by: armor_statues:trigger/random_pose
|
||||
# Entity @s: temp armor stand
|
||||
#
|
||||
execute store result score #x_angle as_angle run data get entity @s ArmorItems[3].tag.AttributeModifiers[{ "Name":"head_x" }].Amount 1000
|
||||
execute store result score #y_angle as_angle run data get entity @s ArmorItems[3].tag.AttributeModifiers[{ "Name":"head_y" }].Amount 1000
|
||||
execute store result score #z_angle as_angle run data get entity @s ArmorItems[3].tag.AttributeModifiers[{ "Name":"head_z" }].Amount 1000
|
||||
function armor_statues:randomizer/head_angle
|
||||
execute store result storage customizable_armor_stands:pose_storage Pose.Head[0] float 0.001 run scoreboard players get #x_angle as_angle
|
||||
execute store result storage customizable_armor_stands:pose_storage Pose.Head[1] float 0.001 run scoreboard players get #y_angle as_angle
|
||||
execute store result storage customizable_armor_stands:pose_storage Pose.Head[2] float 0.001 run scoreboard players get #z_angle as_angle
|
@ -0,0 +1,31 @@
|
||||
#
|
||||
# Description: adjusts probability
|
||||
# Called by: armor_statues:randomizer/head
|
||||
# Entity @s: temp armor stand
|
||||
#
|
||||
scoreboard players set #x_negative as_angle 0
|
||||
scoreboard players set #y_negative as_angle 0
|
||||
scoreboard players set #z_negative as_angle 0
|
||||
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
|
||||
# negative modulo
|
||||
execute if score #random_type as_angle matches 0..1 if score #x_angle as_angle matches ..-1 run scoreboard players set #x_negative as_angle 1
|
||||
execute if score #random_type as_angle matches 0..1 if score #y_angle as_angle matches ..-1 run scoreboard players set #y_negative as_angle 1
|
||||
execute if score #random_type as_angle matches 0..1 if score #z_angle as_angle matches ..-1 run scoreboard players set #z_negative as_angle 1
|
||||
execute if score #x_negative as_angle matches 1 run scoreboard players operation #x_angle as_angle *= #var-1 as_angle
|
||||
execute if score #y_negative as_angle matches 1 run scoreboard players operation #y_angle as_angle *= #var-1 as_angle
|
||||
execute if score #z_negative as_angle matches 1 run scoreboard players operation #z_angle as_angle *= #var-1 as_angle
|
||||
# small angle #random_type=0
|
||||
execute if score #random_type as_angle matches 0 run scoreboard players operation #x_angle as_angle %= #var30000 as_angle
|
||||
execute if score #random_type as_angle matches 0 run scoreboard players operation #y_angle as_angle %= #var30000 as_angle
|
||||
execute if score #random_type as_angle matches 0 run scoreboard players operation #z_angle as_angle %= #var30000 as_angle
|
||||
# med angle #random_type=1
|
||||
execute if score #random_type as_angle matches 1 run scoreboard players operation #x_angle as_angle %= #var60000 as_angle
|
||||
execute if score #random_type as_angle matches 1 run scoreboard players operation #y_angle as_angle %= #var60000 as_angle
|
||||
execute if score #random_type as_angle matches 1 run scoreboard players operation #z_angle as_angle %= #var60000 as_angle
|
||||
# extreme angle #random_type=2 (no modulo)
|
||||
# reversed negative
|
||||
execute if score #x_negative as_angle matches 1 run scoreboard players operation #x_angle as_angle *= #var-1 as_angle
|
||||
execute if score #y_negative as_angle matches 1 run scoreboard players operation #y_angle as_angle *= #var-1 as_angle
|
||||
execute if score #z_negative as_angle matches 1 run scoreboard players operation #z_angle as_angle *= #var-1 as_angle
|
@ -0,0 +1,8 @@
|
||||
#
|
||||
# Description: Randomizes appendage rotation
|
||||
# Called by: armor_statues:trigger/random_pose
|
||||
# Entity @s: temp armor stand
|
||||
#
|
||||
execute store result storage customizable_armor_stands:pose_storage Pose.LeftArm[0] float 0.001 run data get entity @s ArmorItems[3].tag.AttributeModifiers[{ "Name":"left_arm_x" }].Amount 1000
|
||||
execute store result storage customizable_armor_stands:pose_storage Pose.LeftArm[1] float 0.001 run data get entity @s ArmorItems[3].tag.AttributeModifiers[{ "Name":"left_arm_y" }].Amount 1000
|
||||
execute store result storage customizable_armor_stands:pose_storage Pose.LeftArm[2] float 0.001 run data get entity @s ArmorItems[3].tag.AttributeModifiers[{ "Name":"left_arm_z" }].Amount 1000
|
12
data/armor_statues/functions/randomizer/left_leg.mcfunction
Normal file
12
data/armor_statues/functions/randomizer/left_leg.mcfunction
Normal file
@ -0,0 +1,12 @@
|
||||
#
|
||||
# Description: Randomizes appendage rotation
|
||||
# Called by: armor_statues:trigger/random_pose
|
||||
# Entity @s: temp armor stand
|
||||
#
|
||||
execute store result score #x_angle as_angle run data get entity @s ArmorItems[3].tag.AttributeModifiers[{ "Name":"left_leg_x" }].Amount 1000
|
||||
execute store result score #y_angle as_angle run data get entity @s ArmorItems[3].tag.AttributeModifiers[{ "Name":"left_leg_y" }].Amount 1000
|
||||
execute store result score #z_angle as_angle run data get entity @s ArmorItems[3].tag.AttributeModifiers[{ "Name":"left_leg_z" }].Amount 1000
|
||||
function armor_statues:randomizer/left_leg_angle
|
||||
execute store result storage customizable_armor_stands:pose_storage Pose.LeftLeg[0] float 0.001 run scoreboard players get #x_angle as_angle
|
||||
execute store result storage customizable_armor_stands:pose_storage Pose.LeftLeg[1] float 0.001 run scoreboard players get #y_angle as_angle
|
||||
execute store result storage customizable_armor_stands:pose_storage Pose.LeftLeg[2] float 0.001 run scoreboard players get #z_angle as_angle
|
@ -0,0 +1,37 @@
|
||||
#
|
||||
# Description: adjusts probability
|
||||
# Called by: armor_statues:randomizer/left_leg
|
||||
# Entity @s: temp armor stand
|
||||
#
|
||||
scoreboard players set #x_negative as_angle 0
|
||||
scoreboard players set #y_negative as_angle 0
|
||||
scoreboard players set #z_negative as_angle 0
|
||||
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
|
||||
# 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
|
||||
#execute if score #no_crossing as_angle matches 1 if score #x_angle as_angle matches 10000..170000 run scoreboard players operation #x_angle as_angle -= #var180000 as_angle
|
||||
execute if score #no_crossing as_angle matches 1 if score #y_angle as_angle matches 10000..170000 run scoreboard players operation #y_angle as_angle -= #var180000 as_angle
|
||||
execute if score #no_crossing as_angle matches 1 if score #z_angle as_angle matches 10000..170000 run scoreboard players operation #z_angle as_angle -= #var180000 as_angle
|
||||
# negative modulo
|
||||
execute if score #random_type as_angle matches 0..1 if score #x_angle as_angle matches ..-1 run scoreboard players set #x_negative as_angle 1
|
||||
execute if score #random_type as_angle matches 0..1 if score #y_angle as_angle matches ..-1 run scoreboard players set #y_negative as_angle 1
|
||||
execute if score #random_type as_angle matches 0..1 if score #z_angle as_angle matches ..-1 run scoreboard players set #z_negative as_angle 1
|
||||
execute if score #x_negative as_angle matches 1 run scoreboard players operation #x_angle as_angle *= #var-1 as_angle
|
||||
execute if score #y_negative as_angle matches 1 run scoreboard players operation #y_angle as_angle *= #var-1 as_angle
|
||||
execute if score #z_negative as_angle matches 1 run scoreboard players operation #z_angle as_angle *= #var-1 as_angle
|
||||
# small angle #random_type=0
|
||||
execute if score #random_type as_angle matches 0 run scoreboard players operation #x_angle as_angle %= #var45000 as_angle
|
||||
execute if score #random_type as_angle matches 0 run scoreboard players operation #y_angle as_angle %= #var45000 as_angle
|
||||
execute if score #random_type as_angle matches 0 run scoreboard players operation #z_angle as_angle %= #var45000 as_angle
|
||||
# med angle #random_type=1
|
||||
execute if score #random_type as_angle matches 1 run scoreboard players operation #x_angle as_angle %= #var90000 as_angle
|
||||
execute if score #random_type as_angle matches 1 run scoreboard players operation #y_angle as_angle %= #var90000 as_angle
|
||||
execute if score #random_type as_angle matches 1 run scoreboard players operation #z_angle as_angle %= #var90000 as_angle
|
||||
# extreme angle #random_type=2 (no modulo)
|
||||
# reversed negative
|
||||
execute if score #x_negative as_angle matches 1 run scoreboard players operation #x_angle as_angle *= #var-1 as_angle
|
||||
execute if score #y_negative as_angle matches 1 run scoreboard players operation #y_angle as_angle *= #var-1 as_angle
|
||||
execute if score #z_negative as_angle matches 1 run scoreboard players operation #z_angle as_angle *= #var-1 as_angle
|
@ -0,0 +1,8 @@
|
||||
#
|
||||
# Description: Randomizes appendage rotation
|
||||
# Called by: armor_statues:trigger/random_pose
|
||||
# Entity @s: temp armor stand
|
||||
#
|
||||
execute store result storage customizable_armor_stands:pose_storage Pose.RightArm[0] float 0.001 run data get entity @s ArmorItems[3].tag.AttributeModifiers[{ "Name":"right_arm_x" }].Amount 1000
|
||||
execute store result storage customizable_armor_stands:pose_storage Pose.RightArm[1] float 0.001 run data get entity @s ArmorItems[3].tag.AttributeModifiers[{ "Name":"right_arm_y" }].Amount 1000
|
||||
execute store result storage customizable_armor_stands:pose_storage Pose.RightArm[2] float 0.001 run data get entity @s ArmorItems[3].tag.AttributeModifiers[{ "Name":"right_arm_z" }].Amount 1000
|
12
data/armor_statues/functions/randomizer/right_leg.mcfunction
Normal file
12
data/armor_statues/functions/randomizer/right_leg.mcfunction
Normal file
@ -0,0 +1,12 @@
|
||||
#
|
||||
# Description: Randomizes appendage rotation
|
||||
# Called by: armor_statues:trigger/random_pose
|
||||
# Entity @s: temp armor stand
|
||||
#
|
||||
execute store result score #x_angle as_angle run data get entity @s ArmorItems[3].tag.AttributeModifiers[{ "Name":"right_leg_x" }].Amount 1000
|
||||
execute store result score #y_angle as_angle run data get entity @s ArmorItems[3].tag.AttributeModifiers[{ "Name":"right_leg_y" }].Amount 1000
|
||||
execute store result score #z_angle as_angle run data get entity @s ArmorItems[3].tag.AttributeModifiers[{ "Name":"right_leg_z" }].Amount 1000
|
||||
function armor_statues:randomizer/right_leg_angle
|
||||
execute store result storage customizable_armor_stands:pose_storage Pose.RightLeg[0] float 0.001 run scoreboard players get #x_angle as_angle
|
||||
execute store result storage customizable_armor_stands:pose_storage Pose.RightLeg[1] float 0.001 run scoreboard players get #y_angle as_angle
|
||||
execute store result storage customizable_armor_stands:pose_storage Pose.RightLeg[2] float 0.001 run scoreboard players get #z_angle as_angle
|
@ -0,0 +1,37 @@
|
||||
#
|
||||
# Description: adjusts probability
|
||||
# Called by: armor_statues:randomizer/right_leg
|
||||
# Entity @s: temp armor stand
|
||||
#
|
||||
scoreboard players set #x_negative as_angle 0
|
||||
scoreboard players set #y_negative as_angle 0
|
||||
scoreboard players set #z_negative as_angle 0
|
||||
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
|
||||
# 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
|
||||
#execute if score #no_crossing as_angle matches 1 if score #x_angle as_angle matches -170000..-10000 run scoreboard players operation #x_angle as_angle += #var180000 as_angle
|
||||
execute if score #no_crossing as_angle matches 1 if score #y_angle as_angle matches -170000..-10000 run scoreboard players operation #y_angle as_angle += #var180000 as_angle
|
||||
execute if score #no_crossing as_angle matches 1 if score #z_angle as_angle matches -170000..-10000 run scoreboard players operation #z_angle as_angle += #var180000 as_angle
|
||||
# negative modulo
|
||||
execute if score #random_type as_angle matches 0..1 if score #x_angle as_angle matches ..-1 run scoreboard players set #x_negative as_angle 1
|
||||
execute if score #random_type as_angle matches 0..1 if score #y_angle as_angle matches ..-1 run scoreboard players set #y_negative as_angle 1
|
||||
execute if score #random_type as_angle matches 0..1 if score #z_angle as_angle matches ..-1 run scoreboard players set #z_negative as_angle 1
|
||||
execute if score #x_negative as_angle matches 1 run scoreboard players operation #x_angle as_angle *= #var-1 as_angle
|
||||
execute if score #y_negative as_angle matches 1 run scoreboard players operation #y_angle as_angle *= #var-1 as_angle
|
||||
execute if score #z_negative as_angle matches 1 run scoreboard players operation #z_angle as_angle *= #var-1 as_angle
|
||||
# small angle #random_type=0
|
||||
execute if score #random_type as_angle matches 0 run scoreboard players operation #x_angle as_angle %= #var45000 as_angle
|
||||
execute if score #random_type as_angle matches 0 run scoreboard players operation #y_angle as_angle %= #var45000 as_angle
|
||||
execute if score #random_type as_angle matches 0 run scoreboard players operation #z_angle as_angle %= #var45000 as_angle
|
||||
# med angle #random_type=1
|
||||
execute if score #random_type as_angle matches 1 run scoreboard players operation #x_angle as_angle %= #var90000 as_angle
|
||||
execute if score #random_type as_angle matches 1 run scoreboard players operation #y_angle as_angle %= #var90000 as_angle
|
||||
execute if score #random_type as_angle matches 1 run scoreboard players operation #z_angle as_angle %= #var90000 as_angle
|
||||
# extreme angle #random_type=2 (no modulo)
|
||||
# reversed negative
|
||||
execute if score #x_negative as_angle matches 1 run scoreboard players operation #x_angle as_angle *= #var-1 as_angle
|
||||
execute if score #y_negative as_angle matches 1 run scoreboard players operation #y_angle as_angle *= #var-1 as_angle
|
||||
execute if score #z_negative as_angle matches 1 run scoreboard players operation #z_angle as_angle *= #var-1 as_angle
|
@ -0,0 +1,19 @@
|
||||
#
|
||||
# Description: Nudge postion of armor stand relative to player and aligned to the world grid
|
||||
# Called by: armor_statues:trigger/position_relative
|
||||
# Entity @s: armor stand
|
||||
#
|
||||
# X/Left/Right
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1100}] run tp @s ^-0.5 ^ ^
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1101}] run tp @s ^-0.1875 ^ ^
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1102}] run tp @s ^-0.0625 ^ ^
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1103}] run tp @s ^0.0625 ^ ^
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1104}] run tp @s ^0.1875 ^ ^
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1105}] run tp @s ^0.5 ^ ^
|
||||
# Z/Forward/backward
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1106}] run tp @s ^ ^ ^-0.5
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1107}] run tp @s ^ ^ ^-0.1875
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1108}] run tp @s ^ ^ ^-0.0625
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1109}] run tp @s ^ ^ ^0.0625
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1110}] run tp @s ^ ^ ^0.1875
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1111}] run tp @s ^ ^ ^0.5
|
@ -0,0 +1,26 @@
|
||||
#
|
||||
# Description: Nudge postion of armor stand relative to player
|
||||
# Called by: armor_statues:trigger/position_relative
|
||||
# Entity @s: armor stand
|
||||
#
|
||||
# X/Left/Right
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1112}] run tp @s ^-0.5 ^ ^
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1113}] run tp @s ^-0.1875 ^ ^
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1114}] run tp @s ^-0.0625 ^ ^
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1115}] run tp @s ^0.0625 ^ ^
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1116}] run tp @s ^0.1875 ^ ^
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1117}] run tp @s ^0.5 ^ ^
|
||||
# Y/Up/Down
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1118}] run tp @s ^ ^-0.5 ^
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1119}] run tp @s ^ ^-0.1875 ^
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1120}] run tp @s ^ ^-0.0625 ^
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1121}] run tp @s ^ ^0.0625 ^
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1122}] run tp @s ^ ^0.1875 ^
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1123}] run tp @s ^ ^0.5 ^
|
||||
# Z/Forward/backward
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1124}] run tp @s ^ ^ ^-0.5
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1125}] run tp @s ^ ^ ^-0.1875
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1126}] run tp @s ^ ^ ^-0.0625
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1127}] run tp @s ^ ^ ^0.0625
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1128}] run tp @s ^ ^ ^0.1875
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1129}] run tp @s ^ ^ ^0.5
|
21
data/armor_statues/functions/repeat/redo.mcfunction
Normal file
21
data/armor_statues/functions/repeat/redo.mcfunction
Normal file
@ -0,0 +1,21 @@
|
||||
#
|
||||
# Description: Undo last armor stand action
|
||||
# Called by: as_statue:repeat/undo_redo
|
||||
# Entity @s: player
|
||||
#
|
||||
# Copies current state to 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 customizable_armor_stands:book_storage SavedItem.tag.RedoStates[0]
|
||||
data modify entity @e[type=minecraft:armor_stand,sort=nearest,limit=1] Pose set from storage customizable_armor_stands:book_storage SavedItem.tag.RedoStates[0].Pose
|
||||
#
|
||||
# Deletes redo state
|
||||
#
|
||||
data remove storage customizable_armor_stands:book_storage SavedItem.tag.RedoStates[0]
|
||||
#
|
||||
# Modifies book data
|
||||
#
|
||||
execute as @s run function armor_statues:storage_out
|
14
data/armor_statues/functions/repeat/save.mcfunction
Normal file
14
data/armor_statues/functions/repeat/save.mcfunction
Normal 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 customizable_armor_stands: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
|
@ -0,0 +1,18 @@
|
||||
#
|
||||
# Description: Copies last state for redoing
|
||||
# Called by: as_statue:repeat/undo
|
||||
# Entity @s: player
|
||||
#
|
||||
# Copies data to redo
|
||||
#
|
||||
data modify storage customizable_armor_stands:book_storage SavedItem.tag.RedoStates prepend value {}
|
||||
#
|
||||
data modify storage customizable_armor_stands: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 customizable_armor_stands: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 customizable_armor_stands: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 customizable_armor_stands: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 customizable_armor_stands: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 customizable_armor_stands: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 customizable_armor_stands: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 customizable_armor_stands: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 customizable_armor_stands:book_storage SavedItem.tag.RedoStates[0].Rotation set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] Rotation
|
18
data/armor_statues/functions/repeat/save_state.mcfunction
Normal file
18
data/armor_statues/functions/repeat/save_state.mcfunction
Normal file
@ -0,0 +1,18 @@
|
||||
#
|
||||
# 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 customizable_armor_stands: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 customizable_armor_stands:book_storage SavedItem.tag.UndoStates
|
||||
data remove storage customizable_armor_stands:book_storage SavedItem.tag.RedoStates
|
||||
#
|
||||
# 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 customizable_armor_stands:book_storage SavedItem.tag.UndoStates
|
||||
execute if score #as_temp as_angle >= #undo_states as_angle run data remove storage customizable_armor_stands:book_storage SavedItem.tag.UndoStates[-1]
|
||||
#
|
||||
function armor_statues:repeat/save_undo_state
|
@ -0,0 +1,18 @@
|
||||
#
|
||||
# Description: Copies last state for undoing
|
||||
# Called by: as_statue:repeat/save
|
||||
# Entity @s: player
|
||||
#
|
||||
# Saves state for undoing
|
||||
#
|
||||
data modify storage customizable_armor_stands:book_storage SavedItem.tag.UndoStates prepend value {}
|
||||
#
|
||||
data modify storage customizable_armor_stands: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 customizable_armor_stands: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 customizable_armor_stands: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 customizable_armor_stands: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 customizable_armor_stands: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 customizable_armor_stands: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 customizable_armor_stands: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 customizable_armor_stands: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 customizable_armor_stands:book_storage SavedItem.tag.UndoStates[0].Rotation set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=as_selected] Rotation
|
21
data/armor_statues/functions/repeat/undo.mcfunction
Normal file
21
data/armor_statues/functions/repeat/undo.mcfunction
Normal file
@ -0,0 +1,21 @@
|
||||
#
|
||||
# Description: Undo last armor stand action
|
||||
# Called by: as_statue:repeat/undo_redo
|
||||
# Entity @s: player
|
||||
#
|
||||
# Copies current state to redo states
|
||||
#
|
||||
function armor_statues:repeat/save_redo_state
|
||||
#
|
||||
# Copies last undo state to armor stand
|
||||
#
|
||||
data modify entity @e[type=minecraft:armor_stand,sort=nearest,limit=1] {} merge from storage customizable_armor_stands:book_storage SavedItem.tag.UndoStates[0]
|
||||
data modify entity @e[type=minecraft:armor_stand,sort=nearest,limit=1] Pose set from storage customizable_armor_stands:book_storage SavedItem.tag.UndoStates[0].Pose
|
||||
#
|
||||
# Deletes undo state state
|
||||
#
|
||||
data remove storage customizable_armor_stands:book_storage SavedItem.tag.UndoStates[0]
|
||||
#
|
||||
# Modifies book data
|
||||
#
|
||||
execute as @s run function armor_statues:storage_out
|
25
data/armor_statues/functions/repeat/undo_redo.mcfunction
Normal file
25
data/armor_statues/functions/repeat/undo_redo.mcfunction
Normal file
@ -0,0 +1,25 @@
|
||||
#
|
||||
# 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
|
||||
#
|
||||
scoreboard players set #as_success as_angle 0
|
||||
execute store success score #as_success as_angle run data modify storage customizable_armor_stands: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 title @a[tag=as_selected,tag=!as_chat] actionbar [{"text":"Can't undo/redo state on current Armor Stand","color":"dark_green"}]
|
||||
execute if score #as_success as_angle matches 1 run tellraw @a[tag=as_selected,tag=as_chat] [{"text":"<Stick_God> ","color":"dark_green"}, {"text":"Can't undo/redo state on current Armor Stand","color":"dark_green"}]
|
||||
#
|
||||
# Undo
|
||||
#
|
||||
execute as @s[scores={as_trigger=1200}] unless data storage customizable_armor_stands:book_storage SavedItem.tag.UndoStates[] if score #as_success as_angle matches 0 run title @a[tag=as_selected,tag=!as_chat] actionbar [{"text":"No states to undo","color":"dark_green"}]
|
||||
execute as @s[scores={as_trigger=1200}] unless data storage customizable_armor_stands:book_storage SavedItem.tag.UndoStates[] if score #as_success as_angle matches 0 run tellraw @a[tag=as_selected,tag=as_chat] [{"text":"<Stick_God> ","color":"dark_green"}, {"text":"No states to undo","color":"dark_green"}]
|
||||
execute as @s[scores={as_trigger=1200}] if data storage customizable_armor_stands:book_storage SavedItem.tag.UndoStates[] if score #as_success as_angle matches 0 run function armor_statues:repeat/undo
|
||||
#
|
||||
# Redo
|
||||
#
|
||||
execute as @s[scores={as_trigger=1201}] unless data storage customizable_armor_stands:book_storage SavedItem.tag.RedoStates[] if score #as_success as_angle matches 0 run title @a[tag=as_selected,tag=!as_chat] actionbar [{"text":"No states to redo","color":"dark_green"}]
|
||||
execute as @s[scores={as_trigger=1201}] unless data storage customizable_armor_stands:book_storage SavedItem.tag.RedoStates[] if score #as_success as_angle matches 0 run tellraw @a[tag=as_selected,tag=as_chat] [{"text":"<Stick_God> ","color":"dark_green"}, {"text":"No states to redo","color":"dark_green"}]
|
||||
execute as @s[scores={as_trigger=1201}] if data storage customizable_armor_stands:book_storage SavedItem.tag.RedoStates[] if score #as_success as_angle matches 0 run function armor_statues:repeat/redo
|
15
data/armor_statues/functions/repeat_trigger.mcfunction
Normal file
15
data/armor_statues/functions/repeat_trigger.mcfunction
Normal 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 customizable_armor_stands: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
|
11
data/armor_statues/functions/replace_book.mcfunction
Normal file
11
data/armor_statues/functions/replace_book.mcfunction
Normal file
@ -0,0 +1,11 @@
|
||||
#
|
||||
# Description: Replace titled book with proper command book
|
||||
# Called by: armor_statues:tick
|
||||
# Entity @s: Player
|
||||
#
|
||||
# Replaces the written book from the players inventory
|
||||
#
|
||||
execute store result score #as_success as_help run clear @s minecraft:written_book{title:"Statues"} 1
|
||||
execute if score #as_success as_help matches 1.. run function armor_statues:give
|
||||
|
||||
tag @s remove as_craft
|
11
data/armor_statues/functions/sealing/seal.mcfunction
Normal file
11
data/armor_statues/functions/sealing/seal.mcfunction
Normal file
@ -0,0 +1,11 @@
|
||||
#
|
||||
# Description: Seals armor stand
|
||||
# Called by: armor_statues:trigger/lock
|
||||
# Entity @s: player - mod
|
||||
#
|
||||
execute if entity @s[tag=!as_chat] if entity @e[type=armor_stand,distance=..3,tag=!as_sealed,sort=nearest,limit=1] run title @s actionbar {"text":"Armor stand sealed","color":"dark_green"}
|
||||
execute if entity @s[tag=as_chat] if entity @e[type=armor_stand,distance=..3,tag=!as_sealed,sort=nearest,limit=1] run tellraw @s {"text":"<Stick_God> 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
|
11
data/armor_statues/functions/sealing/unseal.mcfunction
Normal file
11
data/armor_statues/functions/sealing/unseal.mcfunction
Normal file
@ -0,0 +1,11 @@
|
||||
#
|
||||
# Description: Unseals sealed armor stand
|
||||
# Called by: armor_statues:trigger/lock
|
||||
# Entity @s: player - mod
|
||||
#
|
||||
execute if entity @s[tag=!as_chat] if entity @e[type=armor_stand,distance=..3,tag=as_sealed,sort=nearest,limit=1] run title @s actionbar {"text":"Armor stand unsealed","color":"dark_green"}
|
||||
execute if entity @s[tag=as_chat] if entity @e[type=armor_stand,distance=..3,tag=as_sealed,sort=nearest,limit=1] run tellraw @p {"text":"<Stick_God> 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
|
30
data/armor_statues/functions/second.mcfunction
Normal file
30
data/armor_statues/functions/second.mcfunction
Normal file
@ -0,0 +1,30 @@
|
||||
#
|
||||
# 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
|
||||
#
|
||||
# Makes empty invisible item frames visible
|
||||
#
|
||||
execute as @e[type=item_frame,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 data storage customizable_armor_stands:settings as_admin{book_craft:"Enabled"} as @a[advancements={armor_statues:crafting=true}] run advancement revoke @s only armor_statues:crafting
|
13
data/armor_statues/functions/shrine/create.mcfunction
Normal file
13
data/armor_statues/functions/shrine/create.mcfunction
Normal file
@ -0,0 +1,13 @@
|
||||
#
|
||||
# Description: Summon marker area effect cloud for shrine
|
||||
# Called by: player
|
||||
# Entity @s: player
|
||||
#
|
||||
# Summon AEC
|
||||
#
|
||||
execute align xyz run summon area_effect_cloud ~0.5 ~ ~0.5 {Duration:2147000000,Radius:0.0,Tags:["as_shrine"],Particle:"minecraft:underwater"}
|
||||
#
|
||||
# Store coordinates of shrine
|
||||
#
|
||||
execute store result score #as_shrine_x as_help run data get entity @e[type=minecraft:area_effect_cloud,tag=as_shrine,distance=..3,limit=1] Pos[0] 1
|
||||
execute store result score #as_shrine_z as_help run data get entity @e[type=minecraft:area_effect_cloud,tag=as_shrine,distance=..3,limit=1] Pos[2] 1
|
8
data/armor_statues/functions/shrine/main.mcfunction
Normal file
8
data/armor_statues/functions/shrine/main.mcfunction
Normal file
@ -0,0 +1,8 @@
|
||||
#
|
||||
# Description: Display shrine particles and give book
|
||||
# Called by: armor_statues:tick
|
||||
# Entity @s: Shrine marker area effect cloud
|
||||
#
|
||||
# Give book to nearby players if they do not have it already
|
||||
#
|
||||
execute as @a[distance=..1.5,nbt=!{Inventory:[{id:"minecraft:written_book",tag:{datapack:"ArmorStatuesV2"}}]}] at @s run function armor_statues:give
|
13
data/armor_statues/functions/shrine/remove.mcfunction
Normal file
13
data/armor_statues/functions/shrine/remove.mcfunction
Normal file
@ -0,0 +1,13 @@
|
||||
#
|
||||
# Description: Remove marker area effect cloud
|
||||
# Called by: player
|
||||
# Entity @s: player
|
||||
#
|
||||
# If shrine AEC is within range, reset shrine coordinates
|
||||
#
|
||||
execute if entity @e[type=area_effect_cloud,tag=as_shrine,distance=..3] run scoreboard players reset #as_shrine_x as_help
|
||||
execute if entity @e[type=area_effect_cloud,tag=as_shrine,distance=..3] run scoreboard players reset #as_shrine_z as_help
|
||||
#
|
||||
# Remove AEC
|
||||
#
|
||||
kill @e[type=area_effect_cloud,tag=as_shrine,distance=..3,sort=nearest,limit=1]
|
9
data/armor_statues/functions/storage_in.mcfunction
Normal file
9
data/armor_statues/functions/storage_in.mcfunction
Normal file
@ -0,0 +1,9 @@
|
||||
#
|
||||
# Description: Copies player book from mainhand or offhand into storage
|
||||
# Called by: as_statue:trigger\copy as_statue:trigger\paste
|
||||
# Entity @s: player
|
||||
#
|
||||
# Temp storage to copy
|
||||
#
|
||||
execute if entity @s[nbt={SelectedItem:{id:"minecraft:written_book", tag:{datapack:"ArmorStatuesV2"}}}] run data modify storage customizable_armor_stands:book_storage SavedItem set from entity @s SelectedItem
|
||||
execute if entity @s[nbt={Inventory:[{id:"minecraft:written_book", Slot:-106b, tag:{datapack:"ArmorStatuesV2" }}]}] unless entity @s[nbt={SelectedItem:{id:"minecraft:written_book", tag:{datapack:"ArmorStatuesV2"}}}] run data modify storage customizable_armor_stands:book_storage SavedItem set from entity @s Inventory[{Slot:-106b}]
|
22
data/armor_statues/functions/storage_out.mcfunction
Normal file
22
data/armor_statues/functions/storage_out.mcfunction
Normal file
@ -0,0 +1,22 @@
|
||||
#
|
||||
# Description: Copies stored book from storage into mainhand or offhand
|
||||
# Called by: as_statue:trigger\copy
|
||||
# Entity @s: player
|
||||
#
|
||||
# Copies data to a temp pig
|
||||
#
|
||||
summon minecraft:pig ~ 0 ~ {DeathLootTable:"armor_statues:replace", Invulnerable:1b, NoGravity:1b, Silent:1b, ActiveEffects:[{Id:14,Amplifier:0,Duration:2147483647}], NoAI:1b, PersistenceRequired:1b, Tags:["as_temp"], HandItems:[{id:"minecraft:stone_button", Count:1b, tag:{ Enchantments:[{ lvl:1s, id:"minecraft:looting"} ]}},{}] }
|
||||
#
|
||||
data modify entity @e[tag=as_temp, type=minecraft:pig, sort=nearest, limit=1] HandItems[1] set from storage customizable_armor_stands:book_storage SavedItem
|
||||
#
|
||||
# Copies count to looting for book count
|
||||
#
|
||||
execute store result entity @e[tag=as_temp, type=minecraft:pig, sort=nearest, limit=1] HandItems[0].tag.Enchantments[0].lvl short 1 run data get storage customizable_armor_stands:book_storage SavedItem.Count
|
||||
#
|
||||
execute if entity @s[nbt={SelectedItem:{id:"minecraft:written_book", tag:{datapack:"ArmorStatuesV2"}}}] as @e[tag=as_temp, type=minecraft:pig, limit=1,sort=nearest] run loot replace entity @p[tag=as_selected] weapon.mainhand kill @s
|
||||
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"}}}] as @e[tag=as_temp, type=minecraft:pig, sort=nearest, limit=1] run loot replace entity @p[tag=as_selected] weapon.offhand kill @s
|
||||
#
|
||||
# Kills temp pig
|
||||
#
|
||||
tp @e[type=minecraft:pig, tag=as_temp] ~ -300 ~
|
||||
kill @e[type=minecraft:pig, tag=as_temp]
|
22
data/armor_statues/functions/storage_out_copy.mcfunction
Normal file
22
data/armor_statues/functions/storage_out_copy.mcfunction
Normal file
@ -0,0 +1,22 @@
|
||||
#
|
||||
# Description: Copies stored book from storage into mainhand or offhand (only for copying at the moment)
|
||||
# Called by: as_statue:trigger\copy
|
||||
# Entity @s: player
|
||||
#
|
||||
# Copies data to a temp pig
|
||||
#
|
||||
summon minecraft:pig ~ 0 ~ {DeathLootTable:"armor_statues:replace_save", Invulnerable:1b, NoGravity:1b, Silent:1b, ActiveEffects:[{Id:14,Amplifier:0,Duration:2147483647}], NoAI:1b, PersistenceRequired:1b, Tags:["as_temp"], HandItems:[{id:"minecraft:stone_button", Count:1b, tag:{ Enchantments:[{ lvl:1s, id:"minecraft:looting"} ]}},{}] }
|
||||
#
|
||||
data modify entity @e[tag=as_temp, type=minecraft:pig, sort=nearest, limit=1] HandItems[1] set from storage customizable_armor_stands:book_storage SavedItem
|
||||
#
|
||||
# Copies count to looting for book count
|
||||
#
|
||||
execute store result entity @e[tag=as_temp, type=minecraft:pig, sort=nearest, limit=1] HandItems[0].tag.Enchantments[0].lvl short 1 run data get storage customizable_armor_stands:book_storage SavedItem.Count
|
||||
#
|
||||
execute if entity @s[nbt={SelectedItem:{id:"minecraft:written_book", tag:{datapack:"ArmorStatuesV2"}}}] as @e[tag=as_temp, type=minecraft:pig, limit=1,sort=nearest] run loot replace entity @p[tag=as_selected] weapon.mainhand kill @s
|
||||
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"}}}] as @e[tag=as_temp, type=minecraft:pig, sort=nearest, limit=1] run loot replace entity @p[tag=as_selected] weapon.offhand kill @s
|
||||
#
|
||||
# Kills temp pig
|
||||
#
|
||||
tp @e[type=minecraft:pig, tag=as_temp] ~ -300 ~
|
||||
kill @e[type=minecraft:pig, tag=as_temp]
|
21
data/armor_statues/functions/tick.mcfunction
Normal file
21
data/armor_statues/functions/tick.mcfunction
Normal file
@ -0,0 +1,21 @@
|
||||
#
|
||||
# Description: Processing every tick
|
||||
# Called by: #main:tick
|
||||
# Entity @s: None
|
||||
#
|
||||
# Particle at shrine position
|
||||
#
|
||||
execute as @e[tag=as_shrine] at @s run particle minecraft:enchant ~ ~ ~ 0.5 0.5 0.5 0.25 5
|
||||
#
|
||||
# If book crafting is enabled, check for players holding a written book titled "Statues"
|
||||
#
|
||||
execute as @a[tag=as_craft] run function armor_statues:replace_book
|
||||
#
|
||||
# Display help in chat and enable for all players
|
||||
#
|
||||
execute as @a[scores={as_help=1..}] at @s run function armor_statues:help
|
||||
#
|
||||
# Item frame armor stand animation
|
||||
#
|
||||
scoreboard players add #animate_time as_angle 1
|
||||
execute unless score #animate_trigger as_angle matches 0 if score #animate_time as_angle >= #animate_trigger as_angle run function armor_statues:animate_time
|
107
data/armor_statues/functions/trigger.mcfunction
Normal file
107
data/armor_statues/functions/trigger.mcfunction
Normal file
@ -0,0 +1,107 @@
|
||||
#
|
||||
# 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..12}] 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},tag=!as_chat] run title @s actionbar [{"text":"Angle step set to ","color":"dark_green"},{"score":{"name":"@s","objective":"as_angle"},"color":"dark_green"},{"text":"\u00b0","color":"dark_green"}]
|
||||
execute if entity @s[scores={as_trigger=120..123},tag=as_chat] run tellraw @s [{"text":"<Stick_God> 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
|
||||
|
121
data/armor_statues/functions/trigger/adjust.mcfunction
Normal file
121
data/armor_statues/functions/trigger/adjust.mcfunction
Normal file
@ -0,0 +1,121 @@
|
||||
#
|
||||
# Description: Adjust armor stand pose
|
||||
# Called by: armor_statues:trigger
|
||||
# Entity @s: armor stand
|
||||
#
|
||||
# Apply bugfix for MC-80975
|
||||
#
|
||||
function armor_statues:bugfix
|
||||
#
|
||||
# Get angle step from player and scale by 1000
|
||||
#
|
||||
scoreboard players operation @s as_angle = @p as_angle
|
||||
scoreboard players set #as_temp as_angle 1000
|
||||
scoreboard players operation @s as_angle *= #as_temp as_angle
|
||||
scoreboard players reset #as_temp as_angle
|
||||
#
|
||||
# Head: 60-65
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=60..61}] store result score @s as_pose run data get entity @s Pose.Head[0] 1000
|
||||
execute if entity @s[scores={as_trigger=60}] run scoreboard players operation @s as_pose += @s as_angle
|
||||
execute if entity @s[scores={as_trigger=61}] run scoreboard players operation @s as_pose -= @s as_angle
|
||||
execute if entity @s[scores={as_trigger=60..61}] store result entity @s Pose.Head[0] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=62..63}] store result score @s as_pose run data get entity @s Pose.Head[1] 1000
|
||||
execute if entity @s[scores={as_trigger=62}] run scoreboard players operation @s as_pose += @s as_angle
|
||||
execute if entity @s[scores={as_trigger=63}] run scoreboard players operation @s as_pose -= @s as_angle
|
||||
execute if entity @s[scores={as_trigger=62..63}] store result entity @s Pose.Head[1] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=64..65}] store result score @s as_pose run data get entity @s Pose.Head[2] 1000
|
||||
execute if entity @s[scores={as_trigger=64}] run scoreboard players operation @s as_pose += @s as_angle
|
||||
execute if entity @s[scores={as_trigger=65}] run scoreboard players operation @s as_pose -= @s as_angle
|
||||
execute if entity @s[scores={as_trigger=64..65}] store result entity @s Pose.Head[2] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
# Body: 66-71
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=66..67}] store result score @s as_pose run data get entity @s Pose.Body[0] 1000
|
||||
execute if entity @s[scores={as_trigger=66}] run scoreboard players operation @s as_pose += @s as_angle
|
||||
execute if entity @s[scores={as_trigger=67}] run scoreboard players operation @s as_pose -= @s as_angle
|
||||
execute if entity @s[scores={as_trigger=66..67}] store result entity @s Pose.Body[0] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=68..69}] store result score @s as_pose run data get entity @s Pose.Body[1] 1000
|
||||
execute if entity @s[scores={as_trigger=68}] run scoreboard players operation @s as_pose += @s as_angle
|
||||
execute if entity @s[scores={as_trigger=69}] run scoreboard players operation @s as_pose -= @s as_angle
|
||||
execute if entity @s[scores={as_trigger=68..69}] store result entity @s Pose.Body[1] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=70..71}] store result score @s as_pose run data get entity @s Pose.Body[2] 1000
|
||||
execute if entity @s[scores={as_trigger=70}] run scoreboard players operation @s as_pose += @s as_angle
|
||||
execute if entity @s[scores={as_trigger=71}] run scoreboard players operation @s as_pose -= @s as_angle
|
||||
execute if entity @s[scores={as_trigger=70..71}] store result entity @s Pose.Body[2] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
# Right Arm: 72-77
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=72..73}] store result score @s as_pose run data get entity @s Pose.RightArm[0] 1000
|
||||
execute if entity @s[scores={as_trigger=72}] run scoreboard players operation @s as_pose += @s as_angle
|
||||
execute if entity @s[scores={as_trigger=73}] run scoreboard players operation @s as_pose -= @s as_angle
|
||||
execute if entity @s[scores={as_trigger=72..73}] store result entity @s Pose.RightArm[0] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=74..75}] store result score @s as_pose run data get entity @s Pose.RightArm[1] 1000
|
||||
execute if entity @s[scores={as_trigger=74}] run scoreboard players operation @s as_pose += @s as_angle
|
||||
execute if entity @s[scores={as_trigger=75}] run scoreboard players operation @s as_pose -= @s as_angle
|
||||
execute if entity @s[scores={as_trigger=74..75}] store result entity @s Pose.RightArm[1] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=76..77}] store result score @s as_pose run data get entity @s Pose.RightArm[2] 1000
|
||||
execute if entity @s[scores={as_trigger=76}] run scoreboard players operation @s as_pose += @s as_angle
|
||||
execute if entity @s[scores={as_trigger=77}] run scoreboard players operation @s as_pose -= @s as_angle
|
||||
execute if entity @s[scores={as_trigger=76..77}] store result entity @s Pose.RightArm[2] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
# Left Arm: 78-83
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=78..79}] store result score @s as_pose run data get entity @s Pose.LeftArm[0] 1000
|
||||
execute if entity @s[scores={as_trigger=78}] run scoreboard players operation @s as_pose += @s as_angle
|
||||
execute if entity @s[scores={as_trigger=79}] run scoreboard players operation @s as_pose -= @s as_angle
|
||||
execute if entity @s[scores={as_trigger=78..79}] store result entity @s Pose.LeftArm[0] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=80..81}] store result score @s as_pose run data get entity @s Pose.LeftArm[1] 1000
|
||||
execute if entity @s[scores={as_trigger=80}] run scoreboard players operation @s as_pose += @s as_angle
|
||||
execute if entity @s[scores={as_trigger=81}] run scoreboard players operation @s as_pose -= @s as_angle
|
||||
execute if entity @s[scores={as_trigger=80..81}] store result entity @s Pose.LeftArm[1] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=82..83}] store result score @s as_pose run data get entity @s Pose.LeftArm[2] 1000
|
||||
execute if entity @s[scores={as_trigger=82}] run scoreboard players operation @s as_pose += @s as_angle
|
||||
execute if entity @s[scores={as_trigger=83}] run scoreboard players operation @s as_pose -= @s as_angle
|
||||
execute if entity @s[scores={as_trigger=82..83}] store result entity @s Pose.LeftArm[2] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
# Right Leg: 84-89
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=84..85}] store result score @s as_pose run data get entity @s Pose.RightLeg[0] 1000
|
||||
execute if entity @s[scores={as_trigger=84}] run scoreboard players operation @s as_pose += @s as_angle
|
||||
execute if entity @s[scores={as_trigger=85}] run scoreboard players operation @s as_pose -= @s as_angle
|
||||
execute if entity @s[scores={as_trigger=84..85}] store result entity @s Pose.RightLeg[0] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=86..87}] store result score @s as_pose run data get entity @s Pose.RightLeg[1] 1000
|
||||
execute if entity @s[scores={as_trigger=86}] run scoreboard players operation @s as_pose += @s as_angle
|
||||
execute if entity @s[scores={as_trigger=87}] run scoreboard players operation @s as_pose -= @s as_angle
|
||||
execute if entity @s[scores={as_trigger=86..87}] store result entity @s Pose.RightLeg[1] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=88..89}] store result score @s as_pose run data get entity @s Pose.RightLeg[2] 1000
|
||||
execute if entity @s[scores={as_trigger=88}] run scoreboard players operation @s as_pose += @s as_angle
|
||||
execute if entity @s[scores={as_trigger=89}] run scoreboard players operation @s as_pose -= @s as_angle
|
||||
execute if entity @s[scores={as_trigger=88..89}] store result entity @s Pose.RightLeg[2] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
# Left Leg: 90-95
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=90..91}] store result score @s as_pose run data get entity @s Pose.LeftLeg[0] 1000
|
||||
execute if entity @s[scores={as_trigger=90}] run scoreboard players operation @s as_pose += @s as_angle
|
||||
execute if entity @s[scores={as_trigger=91}] run scoreboard players operation @s as_pose -= @s as_angle
|
||||
execute if entity @s[scores={as_trigger=90..91}] store result entity @s Pose.LeftLeg[0] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=92..93}] store result score @s as_pose run data get entity @s Pose.LeftLeg[1] 1000
|
||||
execute if entity @s[scores={as_trigger=92}] run scoreboard players operation @s as_pose += @s as_angle
|
||||
execute if entity @s[scores={as_trigger=93}] run scoreboard players operation @s as_pose -= @s as_angle
|
||||
execute if entity @s[scores={as_trigger=92..93}] store result entity @s Pose.LeftLeg[1] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=94..95}] store result score @s as_pose run data get entity @s Pose.LeftLeg[2] 1000
|
||||
execute if entity @s[scores={as_trigger=94}] run scoreboard players operation @s as_pose += @s as_angle
|
||||
execute if entity @s[scores={as_trigger=95}] run scoreboard players operation @s as_pose -= @s as_angle
|
||||
execute if entity @s[scores={as_trigger=94..95}] store result entity @s Pose.LeftLeg[2] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
# Tag the armor stand as modified
|
||||
#
|
||||
tag @s add as_modified
|
28
data/armor_statues/functions/trigger/align.mcfunction
Normal file
28
data/armor_statues/functions/trigger/align.mcfunction
Normal file
@ -0,0 +1,28 @@
|
||||
#
|
||||
# Description: Align held block or item with supporting surface
|
||||
# Called by: armor_statues:trigger
|
||||
# Entity @s: armor stand
|
||||
#
|
||||
# Align block to surface
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=151}] run data merge entity @s {ShowArms:1b,NoGravity:1b,Invisible:1b,Pose:{Head:[0.0f,0.001f,0.0f],Body:[0.0f,0.001f,0.0f],RightArm:[-15.0f,135.0f,0.0f],LeftArm:[0.0f,0.0f,0.0f],RightLeg:[0.0f,0.0f,0.0f],LeftLeg:[0.0f,0.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=151}] at @s run tp @s ^0.5725 ^-0.655 ^0.352
|
||||
#
|
||||
# Align item to surface (upright)
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=152}] run data merge entity @s {ShowArms:1b,NoGravity:1b,Invisible:1b,Pose:{Head:[0.0f,0.001f,0.0f],Body:[0.0f,0.001f,0.0f],RightArm:[-90.0f,0.0f,0.0f],LeftArm:[0.0f,0.0f,0.0f],RightLeg:[0.0f,0.0f,0.0f],LeftLeg:[0.0f,0.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=152}] at @s run tp @s ^0.36 ^-1.41 ^-0.5625
|
||||
#
|
||||
# Align item to surface (flat)
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=153}] run data merge entity @s {ShowArms:1b,NoGravity:1b,Invisible:1b,Pose:{Head:[0.0f,0.001f,0.0f],Body:[0.0f,0.001f,0.0f],RightArm:[0.0f,0.0f,0.0f],LeftArm:[0.0f,0.0f,0.0f],RightLeg:[0.0f,0.0f,0.0f],LeftLeg:[0.0f,0.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=153}] at @s run tp @s ^0.385 ^-0.78 ^-0.295
|
||||
#
|
||||
# Align tool to surface (flat)
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=154}] run data merge entity @s {ShowArms:1b,NoGravity:1b,Invisible:1b,Pose:{Head:[0.0f,0.001f,0.0f],Body:[0.0f,0.001f,0.0f],RightArm:[-10.0f,0.0f,-90.0f],LeftArm:[0.0f,0.0f,0.0f],RightLeg:[0.0f,0.0f,0.0f],LeftLeg:[0.0f,0.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=154}] at @s run tp @s ^-0.17 ^-1.285 ^-0.44
|
||||
#
|
||||
# Tag the armor stand as modified
|
||||
#
|
||||
tag @s add as_modified
|
28
data/armor_statues/functions/trigger/align_small.mcfunction
Normal file
28
data/armor_statues/functions/trigger/align_small.mcfunction
Normal file
@ -0,0 +1,28 @@
|
||||
#
|
||||
# Description: Align held block or item with supporting surface for small armor stands
|
||||
# Called by: armor_statues:trigger
|
||||
# Entity @s: armor stand
|
||||
#
|
||||
# Align block to surface
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=151}] run data merge entity @s {ShowArms:1b,NoGravity:1b,Invisible:1b,Pose:{Head:[0.0f,0.001f,0.0f],Body:[0.0f,0.001f,0.0f],RightArm:[-15.0f,135.0f,0.0f],LeftArm:[0.0f,0.0f,0.0f],RightLeg:[0.0f,0.0f,0.0f],LeftLeg:[0.0f,0.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=151}] at @s run tp @s ^0.28625 ^-0.3275 ^0.176
|
||||
#
|
||||
# Align item to surface (upright)
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=152}] run data merge entity @s {ShowArms:1b,NoGravity:1b,Invisible:1b,Pose:{Head:[0.0f,0.001f,0.0f],Body:[0.0f,0.001f,0.0f],RightArm:[-90.0f,0.0f,0.0f],LeftArm:[0.0f,0.0f,0.0f],RightLeg:[0.0f,0.0f,0.0f],LeftLeg:[0.0f,0.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=152}] at @s run tp @s ^0.18 ^-0.705 ^-0.28125
|
||||
#
|
||||
# Align item to surface (flat)
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=153}] run data merge entity @s {ShowArms:1b,NoGravity:1b,Invisible:1b,Pose:{Head:[0.0f,0.001f,0.0f],Body:[0.0f,0.001f,0.0f],RightArm:[0.0f,0.0f,0.0f],LeftArm:[0.0f,0.0f,0.0f],RightLeg:[0.0f,0.0f,0.0f],LeftLeg:[0.0f,0.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=153}] at @s run tp @s ^0.1925 ^-0.39 ^-0.1475
|
||||
#
|
||||
# Align tool to surface (flat)
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=154}] run data merge entity @s {ShowArms:1b,NoGravity:1b,Invisible:1b,Pose:{Head:[0.0f,0.001f,0.0f],Body:[0.0f,0.001f,0.0f],RightArm:[-10.0f,0.0f,-90.0f],LeftArm:[0.0f,0.0f,0.0f],RightLeg:[0.0f,0.0f,0.0f],LeftLeg:[0.0f,0.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=154}] at @s run tp @s ^-0.085 ^-0.6425 ^-0.22
|
||||
#
|
||||
# Tag the armor stand as modified
|
||||
#
|
||||
tag @s add as_modified
|
21
data/armor_statues/functions/trigger/copy.mcfunction
Normal file
21
data/armor_statues/functions/trigger/copy.mcfunction
Normal file
@ -0,0 +1,21 @@
|
||||
#
|
||||
# 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 customizable_armor_stands:book_storage SavedItem.tag.SavedPose set value {Pose:{}, NoBasePlate:0b, ShowArms:0b, Small:0b, Invisible:0b, CustomNameVisible:0b}
|
||||
#
|
||||
data modify storage customizable_armor_stands:book_storage SavedItem.tag.SavedPose.Pose set from entity @s Pose
|
||||
data modify storage customizable_armor_stands:book_storage SavedItem.tag.SavedPose.NoBasePlate set from entity @s NoBasePlate
|
||||
data modify storage customizable_armor_stands:book_storage SavedItem.tag.SavedPose.ShowArms set from entity @s ShowArms
|
||||
data modify storage customizable_armor_stands:book_storage SavedItem.tag.SavedPose.Small set from entity @s Small
|
||||
data modify storage customizable_armor_stands:book_storage SavedItem.tag.SavedPose.Invisible set from entity @s Invisible
|
||||
data modify storage customizable_armor_stands:book_storage SavedItem.tag.SavedPose.CustomNameVisible set from entity @s CustomNameVisible
|
||||
#
|
||||
execute as @p[tag=as_selected] run function armor_statues:storage_out_copy
|
||||
#
|
||||
title @a[tag=as_selected,tag=!as_chat] actionbar [{"selector":"@s","color":"dark_green"}, {"text":" Pose and settings copied to the book","color":"dark_green"}]
|
||||
tellraw @a[tag=as_selected,tag=as_chat] [{"text":"<Stick_God> ","color":"dark_green"}, {"selector":"@s","color":"dark_green"}, {"text":" Pose and settings copied to the book","color":"dark_green"}]
|
||||
effect give @s minecraft:glowing 1
|
20
data/armor_statues/functions/trigger/facing.mcfunction
Normal file
20
data/armor_statues/functions/trigger/facing.mcfunction
Normal file
@ -0,0 +1,20 @@
|
||||
#
|
||||
# Description: Adjust rotation of armor stand
|
||||
# Called by: armor_statues:trigger
|
||||
# Entity @s: armor stand
|
||||
#
|
||||
# Note: The function is being executed at the location of the armor stand so @p is not necessarily the original player
|
||||
#
|
||||
# Rotate the armor stand to face the selected player
|
||||
#
|
||||
tp @s ~ ~ ~ facing entity @a[distance=..3,tag=as_selected,limit=1]
|
||||
#
|
||||
# If stand is required to face away from the player, add 180 to the rotation
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=125}] store result score @s as_pose run data get entity @s Rotation[0] 1
|
||||
execute if entity @s[scores={as_trigger=125}] run scoreboard players add @s as_pose 180
|
||||
execute if entity @s[scores={as_trigger=125}] store result entity @s Rotation[0] float 1 run scoreboard players get @s as_pose
|
||||
#
|
||||
# Tag the armor stand as modified
|
||||
#
|
||||
tag @s add as_modified
|
64
data/armor_statues/functions/trigger/flip.mcfunction
Normal file
64
data/armor_statues/functions/trigger/flip.mcfunction
Normal file
@ -0,0 +1,64 @@
|
||||
#
|
||||
# Description: Flip armor stand's pose left to right
|
||||
# Called by: armor_statues:trigger
|
||||
# Entity @s: armor stand
|
||||
#
|
||||
# Apply bugfix for MC-80975
|
||||
#
|
||||
function armor_statues:bugfix
|
||||
#
|
||||
# Arms
|
||||
#
|
||||
execute store result score #as_temp as_pose run data get entity @s Pose.RightArm[0] 1000
|
||||
execute store result score @s as_pose run data get entity @s Pose.LeftArm[0] 1000
|
||||
execute store result entity @s Pose.RightArm[0] float 0.001 run scoreboard players get @s as_pose
|
||||
execute store result entity @s Pose.LeftArm[0] float 0.001 run scoreboard players get #as_temp as_pose
|
||||
#
|
||||
execute store result score #as_temp as_pose run data get entity @s Pose.RightArm[1] -1000
|
||||
execute store result score @s as_pose run data get entity @s Pose.LeftArm[1] -1000
|
||||
execute store result entity @s Pose.RightArm[1] float 0.001 run scoreboard players get @s as_pose
|
||||
execute store result entity @s Pose.LeftArm[1] float 0.001 run scoreboard players get #as_temp as_pose
|
||||
#
|
||||
execute store result score #as_temp as_pose run data get entity @s Pose.RightArm[2] -1000
|
||||
execute store result score @s as_pose run data get entity @s Pose.LeftArm[2] -1000
|
||||
execute store result entity @s Pose.RightArm[2] float 0.001 run scoreboard players get @s as_pose
|
||||
execute store result entity @s Pose.LeftArm[2] float 0.001 run scoreboard players get #as_temp as_pose
|
||||
#
|
||||
# Legs
|
||||
#
|
||||
execute store result score #as_temp as_pose run data get entity @s Pose.RightLeg[0] 1000
|
||||
execute store result score @s as_pose run data get entity @s Pose.LeftLeg[0] 1000
|
||||
execute store result entity @s Pose.RightLeg[0] float 0.001 run scoreboard players get @s as_pose
|
||||
execute store result entity @s Pose.LeftLeg[0] float 0.001 run scoreboard players get #as_temp as_pose
|
||||
#
|
||||
execute store result score #as_temp as_pose run data get entity @s Pose.RightLeg[1] -1000
|
||||
execute store result score @s as_pose run data get entity @s Pose.LeftLeg[1] -1000
|
||||
execute store result entity @s Pose.RightLeg[1] float 0.001 run scoreboard players get @s as_pose
|
||||
execute store result entity @s Pose.LeftLeg[1] float 0.001 run scoreboard players get #as_temp as_pose
|
||||
#
|
||||
execute store result score #as_temp as_pose run data get entity @s Pose.RightLeg[2] -1000
|
||||
execute store result score @s as_pose run data get entity @s Pose.LeftLeg[2] -1000
|
||||
execute store result entity @s Pose.RightLeg[2] float 0.001 run scoreboard players get @s as_pose
|
||||
execute store result entity @s Pose.LeftLeg[2] float 0.001 run scoreboard players get #as_temp as_pose
|
||||
#
|
||||
# Head
|
||||
#
|
||||
execute store result score @s as_pose run data get entity @s Pose.Head[1] -1000
|
||||
execute store result entity @s Pose.Head[1] float 0.001 run scoreboard players get @s as_pose
|
||||
execute store result score @s as_pose run data get entity @s Pose.Head[2] -1000
|
||||
execute store result entity @s Pose.Head[2] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
# Body
|
||||
#
|
||||
execute store result score @s as_pose run data get entity @s Pose.Body[1] -1000
|
||||
execute store result entity @s Pose.Body[1] float 0.001 run scoreboard players get @s as_pose
|
||||
execute store result score @s as_pose run data get entity @s Pose.Body[2] -1000
|
||||
execute store result entity @s Pose.Body[2] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
# Clear temporary dummy player
|
||||
#
|
||||
scoreboard players reset #as_temp as_pose
|
||||
#
|
||||
# Tag the armor stand as modified
|
||||
#
|
||||
tag @s add as_modified
|
@ -0,0 +1,9 @@
|
||||
#
|
||||
# Description: Records UUID of the last editor of the armor stand
|
||||
# Called by: armor_statues:trigger
|
||||
# Entity @s: armor stand
|
||||
#
|
||||
execute store result score @s as_edited_uuid1 run data get entity @p[tag=as_selected] UUID[0]
|
||||
execute store result score @s as_edited_uuid2 run data get entity @p[tag=as_selected] UUID[1]
|
||||
execute store result score @s as_edited_uuid3 run data get entity @p[tag=as_selected] UUID[2]
|
||||
execute store result score @s as_edited_uuid4 run data get entity @p[tag=as_selected] UUID[3]
|
23
data/armor_statues/functions/trigger/lock.mcfunction
Normal file
23
data/armor_statues/functions/trigger/lock.mcfunction
Normal 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 data storage customizable_armor_stands:settings as_admin{uuid_lock:"Disabled"} 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 data storage customizable_armor_stands:settings as_admin{uuid_lock:"Enabled"} 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
|
48
data/armor_statues/functions/trigger/mirror.mcfunction
Normal file
48
data/armor_statues/functions/trigger/mirror.mcfunction
Normal file
@ -0,0 +1,48 @@
|
||||
#
|
||||
# Description: Mirror armor stand's arms or legs
|
||||
# Called by: armor_statues:trigger
|
||||
# Entity @s: armor stand
|
||||
#
|
||||
# Apply bugfix for MC-80975
|
||||
#
|
||||
function armor_statues:bugfix
|
||||
#
|
||||
# Mirror arms left to right
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=131}] store result score @s as_pose run data get entity @s Pose.LeftArm[0] 1000
|
||||
execute if entity @s[scores={as_trigger=131}] store result entity @s Pose.RightArm[0] float 0.001 run scoreboard players get @s as_pose
|
||||
execute if entity @s[scores={as_trigger=131}] store result score @s as_pose run data get entity @s Pose.LeftArm[1] -1000
|
||||
execute if entity @s[scores={as_trigger=131}] store result entity @s Pose.RightArm[1] float 0.001 run scoreboard players get @s as_pose
|
||||
execute if entity @s[scores={as_trigger=131}] store result score @s as_pose run data get entity @s Pose.LeftArm[2] -1000
|
||||
execute if entity @s[scores={as_trigger=131}] store result entity @s Pose.RightArm[2] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
# Mirror arms right to left
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=132}] store result score @s as_pose run data get entity @s Pose.RightArm[0] 1000
|
||||
execute if entity @s[scores={as_trigger=132}] store result entity @s Pose.LeftArm[0] float 0.001 run scoreboard players get @s as_pose
|
||||
execute if entity @s[scores={as_trigger=132}] store result score @s as_pose run data get entity @s Pose.RightArm[1] -1000
|
||||
execute if entity @s[scores={as_trigger=132}] store result entity @s Pose.LeftArm[1] float 0.001 run scoreboard players get @s as_pose
|
||||
execute if entity @s[scores={as_trigger=132}] store result score @s as_pose run data get entity @s Pose.RightArm[2] -1000
|
||||
execute if entity @s[scores={as_trigger=132}] store result entity @s Pose.LeftArm[2] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
# Mirror legs left to right
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=133}] store result score @s as_pose run data get entity @s Pose.LeftLeg[0] 1000
|
||||
execute if entity @s[scores={as_trigger=133}] store result entity @s Pose.RightLeg[0] float 0.001 run scoreboard players get @s as_pose
|
||||
execute if entity @s[scores={as_trigger=133}] store result score @s as_pose run data get entity @s Pose.LeftLeg[1] -1000
|
||||
execute if entity @s[scores={as_trigger=133}] store result entity @s Pose.RightLeg[1] float 0.001 run scoreboard players get @s as_pose
|
||||
execute if entity @s[scores={as_trigger=133}] store result score @s as_pose run data get entity @s Pose.LeftLeg[2] -1000
|
||||
execute if entity @s[scores={as_trigger=133}] store result entity @s Pose.RightLeg[2] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
# Mirror legs right to left
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=134}] store result score @s as_pose run data get entity @s Pose.RightLeg[0] 1000
|
||||
execute if entity @s[scores={as_trigger=134}] store result entity @s Pose.LeftLeg[0] float 0.001 run scoreboard players get @s as_pose
|
||||
execute if entity @s[scores={as_trigger=134}] store result score @s as_pose run data get entity @s Pose.RightLeg[1] -1000
|
||||
execute if entity @s[scores={as_trigger=134}] store result entity @s Pose.LeftLeg[1] float 0.001 run scoreboard players get @s as_pose
|
||||
execute if entity @s[scores={as_trigger=134}] store result score @s as_pose run data get entity @s Pose.RightLeg[2] -1000
|
||||
execute if entity @s[scores={as_trigger=134}] store result entity @s Pose.LeftLeg[2] float 0.001 run scoreboard players get @s as_pose
|
||||
#
|
||||
# Tag the armor stand as modified
|
||||
#
|
||||
tag @s add as_modified
|
16
data/armor_statues/functions/trigger/paste.mcfunction
Normal file
16
data/armor_statues/functions/trigger/paste.mcfunction
Normal file
@ -0,0 +1,16 @@
|
||||
#
|
||||
# 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 customizable_armor_stands:book_storage SavedItem.tag.SavedPose
|
||||
data modify entity @s Pose set from storage customizable_armor_stands:book_storage SavedItem.tag.SavedPose.Pose
|
||||
#
|
||||
title @a[tag=as_selected,tag=!as_chat] actionbar {"text":"Settings and pose pasted from the book","color":"dark_green"}
|
||||
tellraw @a[tag=as_selected,tag=as_chat] {"text":"<Stick_God> Settings and pose pasted from the book","color":"dark_green"}
|
||||
#
|
||||
# Tag the armor stand as modified
|
||||
#
|
||||
tag @s add as_modified
|
77
data/armor_statues/functions/trigger/pointing.mcfunction
Normal file
77
data/armor_statues/functions/trigger/pointing.mcfunction
Normal file
@ -0,0 +1,77 @@
|
||||
#
|
||||
# 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 ^ ^-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 1166 rotated ~ 0 run summon minecraft:armor_stand ^ ^-0.1875 ^ {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 ^ ^-0.125 ^ {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 ^ ^-0.125 ^ {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
|
||||
scoreboard players operation #temp_as_z as_angle -= #var90000 as_angle
|
||||
# Head rotation offset
|
||||
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
|
||||
#
|
||||
execute if score #temp_as_x as_angle matches 180000.. run scoreboard players operation #temp_as_x as_angle -= #var360000 as_angle
|
||||
execute if score #temp_as_x as_angle matches ..-180000 run scoreboard players operation #temp_as_x as_angle += #var360000 as_angle
|
||||
execute 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 #temp_as_x as_angle matches ..-90000 run scoreboard players operation #temp_as_z as_angle *= #var-1 as_angle
|
||||
execute if score #temp_as_x as_angle matches 90000.. run scoreboard players operation #temp_as_x as_angle -= #var180000 as_angle
|
||||
execute if score #temp_as_x as_angle matches ..-90000 run scoreboard players operation #temp_as_x as_angle += #var180000 as_angle
|
||||
#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 customizable_armor_stands:appendage appendage set value [0f,0f,0f]
|
||||
execute store result storage customizable_armor_stands:appendage appendage[1] float 0.001 run scoreboard players get #temp_as_x as_angle
|
||||
execute store result storage customizable_armor_stands: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 customizable_armor_stands:appendage appendage
|
||||
execute if score @s as_trigger matches 1166 run data modify entity @s Pose.Head set from storage customizable_armor_stands:appendage appendage
|
||||
# Body
|
||||
execute if score @s as_trigger matches 1161 run data modify entity @s Pose.Body set from storage customizable_armor_stands:appendage appendage
|
||||
execute if score @s as_trigger matches 1167 run data modify entity @s Pose.Body set from storage customizable_armor_stands:appendage appendage
|
||||
# Right Arm
|
||||
execute if score @s as_trigger matches 1162 run data modify entity @s Pose.RightArm set from storage customizable_armor_stands:appendage appendage
|
||||
execute if score @s as_trigger matches 1168 run data modify entity @s Pose.RightArm set from storage customizable_armor_stands:appendage appendage
|
||||
# Left Arm
|
||||
execute if score @s as_trigger matches 1163 run data modify entity @s Pose.LeftArm set from storage customizable_armor_stands:appendage appendage
|
||||
execute if score @s as_trigger matches 1169 run data modify entity @s Pose.LeftArm set from storage customizable_armor_stands:appendage appendage
|
||||
# Right Leg
|
||||
execute if score @s as_trigger matches 1164 run data modify entity @s Pose.RightLeg set from storage customizable_armor_stands:appendage appendage
|
||||
execute if score @s as_trigger matches 1170 run data modify entity @s Pose.RightLeg set from storage customizable_armor_stands:appendage appendage
|
||||
# Left Leg
|
||||
execute if score @s as_trigger matches 1165 run data modify entity @s Pose.LeftLeg set from storage customizable_armor_stands:appendage appendage
|
||||
execute if score @s as_trigger matches 1171 run data modify entity @s Pose.LeftLeg set from storage customizable_armor_stands: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
|
@ -0,0 +1,77 @@
|
||||
#
|
||||
# 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 ^ ^-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 1166 rotated ~ 0 run summon minecraft:armor_stand ^ ^-0.28125 ^ {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 ^ ^-0.25 ^ {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 ^ ^-0.25 ^ {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
|
||||
scoreboard players operation #temp_as_z as_angle -= #var90000 as_angle
|
||||
# Head rotation offset
|
||||
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
|
||||
#
|
||||
execute if score #temp_as_x as_angle matches 180000.. run scoreboard players operation #temp_as_x as_angle -= #var360000 as_angle
|
||||
execute if score #temp_as_x as_angle matches ..-180000 run scoreboard players operation #temp_as_x as_angle += #var360000 as_angle
|
||||
execute 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 #temp_as_x as_angle matches ..-90000 run scoreboard players operation #temp_as_z as_angle *= #var-1 as_angle
|
||||
execute if score #temp_as_x as_angle matches 90000.. run scoreboard players operation #temp_as_x as_angle -= #var180000 as_angle
|
||||
execute if score #temp_as_x as_angle matches ..-90000 run scoreboard players operation #temp_as_x as_angle += #var180000 as_angle
|
||||
#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 customizable_armor_stands:appendage appendage set value [0f,0f,0f]
|
||||
execute store result storage customizable_armor_stands:appendage appendage[1] float 0.001 run scoreboard players get #temp_as_x as_angle
|
||||
execute store result storage customizable_armor_stands: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 customizable_armor_stands:appendage appendage
|
||||
execute if score @s as_trigger matches 1166 run data modify entity @s Pose.Head set from storage customizable_armor_stands:appendage appendage
|
||||
# Body
|
||||
execute if score @s as_trigger matches 1161 run data modify entity @s Pose.Body set from storage customizable_armor_stands:appendage appendage
|
||||
execute if score @s as_trigger matches 1167 run data modify entity @s Pose.Body set from storage customizable_armor_stands:appendage appendage
|
||||
# Right Arm
|
||||
execute if score @s as_trigger matches 1162 run data modify entity @s Pose.RightArm set from storage customizable_armor_stands:appendage appendage
|
||||
execute if score @s as_trigger matches 1168 run data modify entity @s Pose.RightArm set from storage customizable_armor_stands:appendage appendage
|
||||
# Left Arm
|
||||
execute if score @s as_trigger matches 1163 run data modify entity @s Pose.LeftArm set from storage customizable_armor_stands:appendage appendage
|
||||
execute if score @s as_trigger matches 1169 run data modify entity @s Pose.LeftArm set from storage customizable_armor_stands:appendage appendage
|
||||
# Right Leg
|
||||
execute if score @s as_trigger matches 1164 run data modify entity @s Pose.RightLeg set from storage customizable_armor_stands:appendage appendage
|
||||
execute if score @s as_trigger matches 1170 run data modify entity @s Pose.RightLeg set from storage customizable_armor_stands:appendage appendage
|
||||
# Left Leg
|
||||
execute if score @s as_trigger matches 1165 run data modify entity @s Pose.LeftLeg set from storage customizable_armor_stands:appendage appendage
|
||||
execute if score @s as_trigger matches 1171 run data modify entity @s Pose.LeftLeg set from storage customizable_armor_stands: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
|
35
data/armor_statues/functions/trigger/position.mcfunction
Normal file
35
data/armor_statues/functions/trigger/position.mcfunction
Normal file
@ -0,0 +1,35 @@
|
||||
#
|
||||
# Description: Nudge postion of armor stand
|
||||
# Called by: armor_statues:trigger
|
||||
# Entity @s: armor stand
|
||||
#
|
||||
# Trigger values 41, 42, 45, 46, 49 and 50 are redundant and kept for backwards compatibility
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=40}] at @s run tp @s ~-0.5 ~ ~
|
||||
execute if entity @s[scores={as_trigger=101}] at @s run tp @s ~-0.1875 ~ ~
|
||||
execute if entity @s[scores={as_trigger=41}] at @s run tp @s ~-0.1 ~ ~
|
||||
execute if entity @s[scores={as_trigger=102}] at @s run tp @s ~-0.0625 ~ ~
|
||||
execute if entity @s[scores={as_trigger=103}] at @s run tp @s ~0.0625 ~ ~
|
||||
execute if entity @s[scores={as_trigger=42}] at @s run tp @s ~0.1 ~ ~
|
||||
execute if entity @s[scores={as_trigger=104}] at @s run tp @s ~0.1875 ~ ~
|
||||
execute if entity @s[scores={as_trigger=43}] at @s run tp @s ~0.5 ~ ~
|
||||
execute if entity @s[scores={as_trigger=44}] at @s run tp @s ~ ~-0.5 ~
|
||||
execute if entity @s[scores={as_trigger=105}] at @s run tp @s ~ ~-0.1875 ~
|
||||
execute if entity @s[scores={as_trigger=45}] at @s run tp @s ~ ~-0.1 ~
|
||||
execute if entity @s[scores={as_trigger=106}] at @s run tp @s ~ ~-0.0625 ~
|
||||
execute if entity @s[scores={as_trigger=107}] at @s run tp @s ~ ~0.0625 ~
|
||||
execute if entity @s[scores={as_trigger=46}] at @s run tp @s ~ ~0.1 ~
|
||||
execute if entity @s[scores={as_trigger=108}] at @s run tp @s ~ ~0.1875 ~
|
||||
execute if entity @s[scores={as_trigger=47}] at @s run tp @s ~ ~0.5 ~
|
||||
execute if entity @s[scores={as_trigger=48}] at @s run tp @s ~ ~ ~-0.5
|
||||
execute if entity @s[scores={as_trigger=109}] at @s run tp @s ~ ~ ~-0.1875
|
||||
execute if entity @s[scores={as_trigger=49}] at @s run tp @s ~ ~ ~-0.1
|
||||
execute if entity @s[scores={as_trigger=110}] at @s run tp @s ~ ~ ~-0.0625
|
||||
execute if entity @s[scores={as_trigger=111}] at @s run tp @s ~ ~ ~0.0625
|
||||
execute if entity @s[scores={as_trigger=50}] at @s run tp @s ~ ~ ~0.1
|
||||
execute if entity @s[scores={as_trigger=112}] at @s run tp @s ~ ~ ~0.1875
|
||||
execute if entity @s[scores={as_trigger=51}] at @s run tp @s ~ ~ ~0.5
|
||||
#
|
||||
# Tag the armor stand as modified
|
||||
#
|
||||
tag @s add as_modified
|
@ -0,0 +1,37 @@
|
||||
#
|
||||
# Description: Nudge postion of armor stand relative to the player
|
||||
# Called by: armor_statues:trigger
|
||||
# Entity @s: armor stand
|
||||
#
|
||||
# Summons temp armor stand
|
||||
summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
|
||||
tp @e[type=armor_stand,tag=as_temp_armor_stand] ~ ~ ~ facing entity @p[tag=as_selected]
|
||||
#
|
||||
# stores temp armor stand angle
|
||||
#
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1100..1111}] store result score #temp_rotation as_pose run data get entity @e[type=armor_stand,tag=as_temp_armor_stand,limit=1] Rotation[0]
|
||||
# Facing south
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1100..1111}] if score #temp_rotation as_pose matches -45..45 rotated 0 0 run function armor_statues:relative_position_aligned_nudge
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1100..1111}] if score #temp_rotation as_pose matches 316..360 rotated 0 0 run function armor_statues:relative_position_aligned_nudge
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1100..1111}] if score #temp_rotation as_pose matches -360..-316 rotated 0 0 run function armor_statues:relative_position_aligned_nudge
|
||||
# Facing West
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1100..1111}] if score #temp_rotation as_pose matches 46..135 rotated 90 0 run function armor_statues:relative_position_aligned_nudge
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1100..1111}] if score #temp_rotation as_pose matches -315..-226 rotated 90 0 run function armor_statues:relative_position_aligned_nudge
|
||||
# Facing North
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1100..1111}] if score #temp_rotation as_pose matches 136..225 rotated 180 0 run function armor_statues:relative_position_aligned_nudge
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1100..1111}] if score #temp_rotation as_pose matches -225..-136 rotated 180 0 run function armor_statues:relative_position_aligned_nudge
|
||||
# Facing East
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1100..1111}] if score #temp_rotation as_pose matches 226..315 rotated 270 0 run function armor_statues:relative_position_aligned_nudge
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1100..1111}] if score #temp_rotation as_pose matches -135..-46 rotated 270 0 run function armor_statues:relative_position_aligned_nudge
|
||||
#
|
||||
# Relative nudge from player function
|
||||
#
|
||||
execute if entity @p[tag=as_selected,scores={as_trigger=1112..1129}] rotated as @e[type=armor_stand,tag=as_temp_armor_stand] run function armor_statues:relative_position_nudge
|
||||
#
|
||||
# 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
|
32
data/armor_statues/functions/trigger/presets.mcfunction
Normal file
32
data/armor_statues/functions/trigger/presets.mcfunction
Normal file
@ -0,0 +1,32 @@
|
||||
#
|
||||
# Description: Put armor stand into a preset pose
|
||||
# Called by: armor_statues:trigger
|
||||
# Entity @s: armor stand
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=20}] run data merge entity @s {Pose:{Head:[0.0f,0.001f,0.0f],Body:[0.0f,0.001f,0.0f],RightArm:[0.0f,0.0f,0.0f],LeftArm:[0.0f,0.0f,0.0f],RightLeg:[0.0f,0.0f,0.0f],LeftLeg:[0.0f,0.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=21}] run data merge entity @s {Pose:{Head:[0.0f,0.001f,0.0f],Body:[0.0f,0.001f,0.0f],RightArm:[20.0f,0.0f,10.0f],LeftArm:[-20.0f,0.0f,-10.0f],RightLeg:[-20.0f,0.0f,0.0f],LeftLeg:[20.0f,0.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=22}] run data merge entity @s {Pose:{Head:[0.0f,0.001f,0.0f],Body:[0.0f,0.001f,0.0f],RightArm:[-40.0f,0.0f,10.0f],LeftArm:[40.0f,0.0f,-10.0f],RightLeg:[40.0f,0.0f,0.0f],LeftLeg:[-40.0f,0.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=23}] run data merge entity @s {Pose:{Head:[0.0f,20.0f,0.0f],Body:[0.0f,0.001f,0.0f],RightArm:[-90.0f,18.0f,0.0f],LeftArm:[0.0f,0.0f,-10.0f],RightLeg:[0.0f,0.0f,0.0f],LeftLeg:[0.0f,0.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=24}] run data merge entity @s {Pose:{Head:[0.0f,0.001f,0.0f],Body:[0.0f,0.001f,0.0f],RightArm:[-20.0f,-20.0f,0.0f],LeftArm:[-50.0f,50.0f,0.0f],RightLeg:[-20.0f,0.0f,0.0f],LeftLeg:[20.0f,0.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=25}] run data merge entity @s {Pose:{Head:[0.0f,0.001f,0.0f],Body:[15.0f,0.0f,0.0f],RightArm:[-60.0f,-10.0f,0.0f],LeftArm:[10.0f,0.0f,-10.0f],RightLeg:[-15.0f,0.0f,0.0f],LeftLeg:[30.0f,0.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=26}] run data merge entity @s {Pose:{Head:[-15.0f,0.0f,0.0f],Body:[0.0f,0.001f,0.0f],RightArm:[-120.0f,-10.0f,0.0f],LeftArm:[10.0f,0.0f,-10.0f],RightLeg:[0.0f,0.0f,0.0f],LeftLeg:[15.0f,0.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=27}] run data merge entity @s {Pose:{Head:[0.0f,0.001f,0.0f],Body:[0.0f,0.001f,0.0f],RightArm:[-80.0f,20.0f,0.0f],LeftArm:[-80.0f,-20.0f,0.0f],RightLeg:[-90.0f,10.0f,0.0f],LeftLeg:[-90.0f,-10.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=28}] run data merge entity @s {Pose:{Head:[-15.0f,0.0f,0.0f],Body:[10.0f,0.0f,0.0f],RightArm:[-140.0f,-10.0f,0.0f],LeftArm:[70.0f,0.0f,-10.0f],RightLeg:[0.0f,0.0f,0.0f],LeftLeg:[75.0f,0.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=29}] run data merge entity @s {Pose:{Head:[0.0f,0.001f,0.0f],Body:[10.0f,0.0f,0.0f],RightArm:[-90.0f,-10.0f,0.0f],LeftArm:[-75.0f,0.0f,10.0f],RightLeg:[0.0f,0.0f,0.0f],LeftLeg:[75.0f,0.0f,0.0f]}}
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=30}] run data merge entity @s {Pose:{Head:[-10.0f,20.0f,0.0f],Body:[-2.0f,0.0f,0.0f],RightArm:[5.0f,0.0f,0.0f],LeftArm:[5.0f,0.0f,0.0f],RightLeg:[16.0f,2.0f,10.0f],LeftLeg:[0.0f,-10.0f,-4.0f]}}
|
||||
execute if entity @s[scores={as_trigger=31}] run data merge entity @s {Pose:{Head:[0.0f,0.001f,0.0f],Body:[5.0f,0.0f,0.0f],RightArm:[-124.0f,-51.0f,-35.0f],LeftArm:[29.0f,0.0f,25.0f],RightLeg:[0.0f,-4.0f,-2.0f],LeftLeg:[0.0f,4.0f,2.0f]}}
|
||||
execute if entity @s[scores={as_trigger=32}] run data merge entity @s {Pose:{Head:[-85.0f,0.0f,0.0f],Body:[-90.0f,0.0f,0.0f],RightArm:[-90.0f,10.0f,0.0f],LeftArm:[-90.0f,-10.0f,0.0f],RightLeg:[0.0f,0.0f,0.0f],LeftLeg:[0.0f,0.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=33}] run data merge entity @s {Pose:{Head:[45.0f,-4.0f,1.0f],Body:[10.0f,0.0f,0.0f],RightArm:[18.0f,-14.0f,0.0f],LeftArm:[-72.0f,24.0f,47.0f],RightLeg:[25.0f,-2.0f,0.0f],LeftLeg:[-4.0f,-6.0f,-2.0f]}}
|
||||
execute if entity @s[scores={as_trigger=34}] run data merge entity @s {Pose:{Head:[14.0f,-12.0f,6.0f],Body:[5.0f,0.0f,0.0f],RightArm:[-40.0f,20.0f,0.0f],LeftArm:[-4.0f,-20.0f,-10.0f],RightLeg:[-88.0f,71.0f,0.0f],LeftLeg:[-88.0f,46.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=35}] run data merge entity @s {Pose:{Head:[0.0f,30.0f,0f],Body:[0.0f,13.0f,0.0f],RightArm:[-22.0f,31.0f,10.0f],LeftArm:[145.0f,22.0f,-49.0f],RightLeg:[6.0f,-20.0f,0.0f],LeftLeg:[-6.0f,0.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=36}] run data merge entity @s {Pose:{Head:[4.0f,0.0f,0.0f],Body:[4.0f,0.0f,0.0f],RightArm:[30.0f,22.0f,-20.0f],LeftArm:[30.0f,-20.0f,21.0f],RightLeg:[0.0f,0.0f,5.0f],LeftLeg:[0.0f,0.0f,-5.0f]}}
|
||||
execute if entity @s[scores={as_trigger=37}] run data merge entity @s {Pose:{Head:[63.0f,0.0f,0.0f],Body:[10.0f,0.0f,0.0f],RightArm:[-5.0f,0.0f,5.0f],LeftArm:[-5.0f,0.0f,-5.0f],RightLeg:[-5.0f,-10.0f,5.0f],LeftLeg:[-5.0f,16.0f,-5.0f]}}
|
||||
execute if entity @s[scores={as_trigger=38}] run data merge entity @s {Pose:{Head:[-11.0f,0.0f,0.0f],Body:[-4.0f,0.0f,0.0f],RightArm:[0.0f,0.0f,100.0f],LeftArm:[0.0f,0.0f,-100.0f],RightLeg:[-8.0f,0.0f,60.0f],LeftLeg:[-8.0f,0.0f,-60.0f]}}
|
||||
execute if entity @s[scores={as_trigger=39}] run data merge entity @s {Pose:{Head:[-22.0f,25.0f,0.0f],Body:[-4.0f,10.0f,0.0f],RightArm:[-153.0f,34.0f,-3.0f],LeftArm:[4.0f,18.0f,0.0f],RightLeg:[-4.0f,17.0f,2.0f],LeftLeg:[6.0f,24.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=141}] run data merge entity @s {Pose:{Head:[0.0f,0.001f,0.0f],Body:[0.0f,0.001f,0.0f],RightArm:[-15.0f,-45.0f,0.0f],LeftArm:[0.0f,0.0f,0.0f],RightLeg:[0.0f,0.0f,0.0f],LeftLeg:[0.0f,0.0f,0.0f]}}
|
||||
execute if entity @s[scores={as_trigger=142}] run data merge entity @s {Pose:{Head:[0.0f,0.001f,0.0f],Body:[0.0f,0.001f,0.0f],RightArm:[-90.0f,0.0f,0.0f],LeftArm:[0.0f,0.0f,0.0f],RightLeg:[0.0f,0.0f,0.0f],LeftLeg:[0.0f,0.0f,0.0f]}}
|
||||
#
|
||||
# Tag the armor stand as modified
|
||||
#
|
||||
tag @s add as_modified
|
54
data/armor_statues/functions/trigger/rack.mcfunction
Normal file
54
data/armor_statues/functions/trigger/rack.mcfunction
Normal file
@ -0,0 +1,54 @@
|
||||
#
|
||||
# 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] run title @a[tag=as_selected,tag=!as_chat] actionbar [{"text":"Tripwire hook not found","color":"dark_red"}]
|
||||
execute if entity @s[tag=!as_rack] run tellraw @a[tag=as_selected,tag=as_chat] [{"text":"<Stick_God> ","color":"dark_green"},{"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
|
||||
#
|
||||
# Finally, remove the as_rack tag
|
||||
#
|
||||
execute if entity @s[tag=as_rack] run tag @s remove as_rack
|
54
data/armor_statues/functions/trigger/rack_small.mcfunction
Normal file
54
data/armor_statues/functions/trigger/rack_small.mcfunction
Normal file
@ -0,0 +1,54 @@
|
||||
#
|
||||
# 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] run title @a[tag=as_selected,tag=!as_chat] actionbar [{"text":"Tripwire hook not found","color":"dark_red"}]
|
||||
execute if entity @s[tag=!as_rack] run tellraw @a[tag=as_selected,tag=as_chat] [{"text":"<Stick_God> ","color":"dark_green"},{"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
|
||||
#
|
||||
# Finally, remove the as_rack tag
|
||||
#
|
||||
execute if entity @s[tag=as_rack] run tag @s remove as_rack
|
32
data/armor_statues/functions/trigger/random_pose.mcfunction
Normal file
32
data/armor_statues/functions/trigger/random_pose.mcfunction
Normal file
@ -0,0 +1,32 @@
|
||||
#
|
||||
# Description: Randomizes armor stand pose
|
||||
# Called by: armor_statues:trigger
|
||||
# Entity @s: armor stand
|
||||
#
|
||||
# Summons temp armor stand
|
||||
summon minecraft:armor_stand ~ 0 ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
|
||||
#
|
||||
data modify storage customizable_armor_stands: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]}
|
||||
#
|
||||
loot replace entity @e[type=minecraft:armor_stand,tag=as_temp_armor_stand] armor.head loot armor_statues:random_pose
|
||||
#
|
||||
# Generate randomizers
|
||||
#
|
||||
execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_temp_armor_stand] run function armor_statues:randomizer/head
|
||||
execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_temp_armor_stand] run function armor_statues:randomizer/body
|
||||
execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_temp_armor_stand] run function armor_statues:randomizer/left_arm
|
||||
execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_temp_armor_stand] run function armor_statues:randomizer/right_arm
|
||||
execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_temp_armor_stand] run function armor_statues:randomizer/left_leg
|
||||
execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_temp_armor_stand] run function armor_statues:randomizer/right_leg
|
||||
#
|
||||
# Sets random pose
|
||||
#
|
||||
data modify entity @s Pose set from storage customizable_armor_stands: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
|
21
data/armor_statues/functions/trigger/rotation.mcfunction
Normal file
21
data/armor_statues/functions/trigger/rotation.mcfunction
Normal file
@ -0,0 +1,21 @@
|
||||
#
|
||||
# Description: Adjust rotation of armor stand
|
||||
# Called by: armor_statues:trigger
|
||||
# Entity @s: armor stand
|
||||
#
|
||||
# Note: The function is being executed at the location of the original player, not the armor stand, so @p must be the same player
|
||||
#
|
||||
# Trigger values 52 thru 55 are redundant and kept for backwards compatibility
|
||||
#
|
||||
execute if entity @s[scores={as_trigger=52..57}] store result score @s as_pose run data get entity @s Rotation[0] 1
|
||||
execute if entity @s[scores={as_trigger=52}] run scoreboard players add @s as_pose 45
|
||||
execute if entity @s[scores={as_trigger=53}] run scoreboard players add @s as_pose 5
|
||||
execute if entity @s[scores={as_trigger=54}] run scoreboard players remove @s as_pose 5
|
||||
execute if entity @s[scores={as_trigger=55}] run scoreboard players remove @s as_pose 45
|
||||
execute if entity @s[scores={as_trigger=56}] run scoreboard players operation @s as_pose += @p as_angle
|
||||
execute if entity @s[scores={as_trigger=57}] run scoreboard players operation @s as_pose -= @p as_angle
|
||||
execute if entity @s[scores={as_trigger=52..57}] store result entity @s Rotation[0] float 1 run scoreboard players get @s as_pose
|
||||
#
|
||||
# Tag the armor stand as modified
|
||||
#
|
||||
tag @s add as_modified
|
28
data/armor_statues/functions/trigger/settings.mcfunction
Normal file
28
data/armor_statues/functions/trigger/settings.mcfunction
Normal file
@ -0,0 +1,28 @@
|
||||
#
|
||||
# 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=10}] run data merge entity @s {Invisible:1b}
|
||||
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}
|
||||
#
|
||||
# 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}] run title @a[tag=as_selected,tag=!as_chat] actionbar {"color":"dark_green","text":"Gravity is turned on"}
|
||||
execute if entity @s[scores={as_trigger=7}] run tellraw @a[tag=as_selected,tag=as_chat] {"color":"dark_green","text":"<Stick_God> Gravity is turned on"}
|
||||
execute if entity @s[scores={as_trigger=8}] run title @a[tag=as_selected,tag=!as_chat] actionbar {"color":"dark_green","text":"Gravity is turned off"}
|
||||
execute if entity @s[scores={as_trigger=8}] run tellraw @a[tag=as_selected,tag=as_chat] {"color":"dark_green","text":"<Stick_God> Gravity is turned off"}
|
22
data/armor_statues/functions/trigger/slots.mcfunction
Normal file
22
data/armor_statues/functions/trigger/slots.mcfunction
Normal 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 customizable_armor_stands:slot_storage {} set value {Slots:[{}, {}]}
|
||||
#
|
||||
# Copy item from main hand to temporary storage
|
||||
#
|
||||
data modify storage customizable_armor_stands: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 customizable_armor_stands:slot_storage Slot
|
||||
execute if entity @s[scores={as_trigger=162}] run data modify entity @s ArmorItems[3] set from storage customizable_armor_stands:slot_storage Slot
|
14
data/armor_statues/functions/uninstall.mcfunction
Normal file
14
data/armor_statues/functions/uninstall.mcfunction
Normal file
@ -0,0 +1,14 @@
|
||||
#
|
||||
# Description: Remove scoreboards
|
||||
# Called by: main:#uninstall
|
||||
# Entity @s: None
|
||||
#
|
||||
# Remove scoreboards
|
||||
#
|
||||
schedule clear armor_statues:tick
|
||||
schedule clear armor_statues:second
|
||||
|
||||
scoreboard objectives remove as_trigger
|
||||
scoreboard objectives remove as_pose
|
||||
scoreboard objectives remove as_angle
|
||||
scoreboard objectives remove as_help
|
21
data/armor_statues/loot_tables/book.json
Normal file
21
data/armor_statues/loot_tables/book.json
Normal file
File diff suppressed because one or more lines are too long
526
data/armor_statues/loot_tables/book.txt
Normal file
526
data/armor_statues/loot_tables/book.txt
Normal file
@ -0,0 +1,526 @@
|
||||
{
|
||||
"type": "minecraft:loot",
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "minecraft:written_book",
|
||||
"functions": [
|
||||
{
|
||||
"function": "minecraft:set_nbt",
|
||||
"tag": "{
|
||||
title:\"Statues V2.9\",
|
||||
author:\"Stick God\",
|
||||
datapack:\"ArmorStatuesV2\",
|
||||
pages:[
|
||||
'[
|
||||
{\"text\":\" \",\"color\":\"white\"},
|
||||
{\"text\":\"Statues V2.9\",\"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\":\"\\\\nDisplay Name:\",\"color\":\"black\"},
|
||||
{\"text\":\"\\\\n \",\"color\":\"white\"},
|
||||
{\"text\":\"Yes\",\"color\":\"dark_green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 11\"}},
|
||||
{\"text\":\" / \",\"color\":\"black\"},
|
||||
{\"text\":\"No\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger as_trigger set 12\"}}
|
||||
]',
|
||||
'[
|
||||
\"\",
|
||||
{\"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\":\"\\\\n\\\\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\":\"\\\\n\\\\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\"}}
|
||||
]'
|
||||
]
|
||||
}"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
21
data/armor_statues/loot_tables/book_old.json
Normal file
21
data/armor_statues/loot_tables/book_old.json
Normal file
File diff suppressed because one or more lines are too long
201
data/armor_statues/loot_tables/random_pose.json
Normal file
201
data/armor_statues/loot_tables/random_pose.json
Normal file
@ -0,0 +1,201 @@
|
||||
{
|
||||
"type": "minecraft:entity",
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "minecraft:stone_button",
|
||||
"functions": [
|
||||
{
|
||||
"function": "minecraft:set_attributes",
|
||||
"modifiers": [
|
||||
{
|
||||
"name": "head_x",
|
||||
"attribute": "generic.attack_damage",
|
||||
"amount": {
|
||||
"min": -180,
|
||||
"max": 180
|
||||
},
|
||||
"slot": "mainhand",
|
||||
"operation": "addition"
|
||||
},
|
||||
{
|
||||
"name": "head_y",
|
||||
"attribute": "generic.attack_damage",
|
||||
"amount": {
|
||||
"min": -180,
|
||||
"max": 180
|
||||
},
|
||||
"slot": "mainhand",
|
||||
"operation": "addition"
|
||||
},
|
||||
{
|
||||
"name": "head_z",
|
||||
"attribute": "generic.attack_damage",
|
||||
"amount": {
|
||||
"min": -180,
|
||||
"max": 180
|
||||
},
|
||||
"slot": "mainhand",
|
||||
"operation": "addition"
|
||||
},
|
||||
{
|
||||
"name": "body_x",
|
||||
"attribute": "generic.attack_damage",
|
||||
"amount": {
|
||||
"min": -180,
|
||||
"max": 180
|
||||
},
|
||||
"slot": "mainhand",
|
||||
"operation": "addition"
|
||||
},
|
||||
{
|
||||
"name": "body_y",
|
||||
"attribute": "generic.attack_damage",
|
||||
"amount": {
|
||||
"min": -180,
|
||||
"max": 180
|
||||
},
|
||||
"slot": "mainhand",
|
||||
"operation": "addition"
|
||||
},
|
||||
{
|
||||
"name": "body_z",
|
||||
"attribute": "generic.attack_damage",
|
||||
"amount": {
|
||||
"min": -180,
|
||||
"max": 180
|
||||
},
|
||||
"slot": "mainhand",
|
||||
"operation": "addition"
|
||||
},
|
||||
{
|
||||
"name": "left_arm_x",
|
||||
"attribute": "generic.attack_damage",
|
||||
"amount": {
|
||||
"min": -180,
|
||||
"max": 180
|
||||
},
|
||||
"slot": "mainhand",
|
||||
"operation": "addition"
|
||||
},
|
||||
{
|
||||
"name": "left_arm_y",
|
||||
"attribute": "generic.attack_damage",
|
||||
"amount": {
|
||||
"min": -180,
|
||||
"max": 180
|
||||
},
|
||||
"slot": "mainhand",
|
||||
"operation": "addition"
|
||||
},
|
||||
{
|
||||
"name": "left_arm_z",
|
||||
"attribute": "generic.attack_damage",
|
||||
"amount": {
|
||||
"min": -180,
|
||||
"max": 180
|
||||
},
|
||||
"slot": "mainhand",
|
||||
"operation": "addition"
|
||||
},
|
||||
{
|
||||
"name": "right_arm_x",
|
||||
"attribute": "generic.attack_damage",
|
||||
"amount": {
|
||||
"min": -180,
|
||||
"max": 180
|
||||
},
|
||||
"slot": "mainhand",
|
||||
"operation": "addition"
|
||||
},
|
||||
{
|
||||
"name": "right_arm_y",
|
||||
"attribute": "generic.attack_damage",
|
||||
"amount": {
|
||||
"min": -180,
|
||||
"max": 180
|
||||
},
|
||||
"slot": "mainhand",
|
||||
"operation": "addition"
|
||||
},
|
||||
{
|
||||
"name": "right_arm_z",
|
||||
"attribute": "generic.attack_damage",
|
||||
"amount": {
|
||||
"min": -180,
|
||||
"max": 180
|
||||
},
|
||||
"slot": "mainhand",
|
||||
"operation": "addition"
|
||||
},
|
||||
{
|
||||
"name": "left_leg_x",
|
||||
"attribute": "generic.attack_damage",
|
||||
"amount": {
|
||||
"min": -180,
|
||||
"max": 180
|
||||
},
|
||||
"slot": "mainhand",
|
||||
"operation": "addition"
|
||||
},
|
||||
{
|
||||
"name": "left_leg_y",
|
||||
"attribute": "generic.attack_damage",
|
||||
"amount": {
|
||||
"min": -180,
|
||||
"max": 180
|
||||
},
|
||||
"slot": "mainhand",
|
||||
"operation": "addition"
|
||||
},
|
||||
{
|
||||
"name": "left_leg_z",
|
||||
"attribute": "generic.attack_damage",
|
||||
"amount": {
|
||||
"min": -180,
|
||||
"max": 180
|
||||
},
|
||||
"slot": "mainhand",
|
||||
"operation": "addition"
|
||||
},
|
||||
{
|
||||
"name": "right_leg_x",
|
||||
"attribute": "generic.attack_damage",
|
||||
"amount": {
|
||||
"min": -180,
|
||||
"max": 180
|
||||
},
|
||||
"slot": "mainhand",
|
||||
"operation": "addition"
|
||||
},
|
||||
{
|
||||
"name": "right_leg_y",
|
||||
"attribute": "generic.attack_damage",
|
||||
"amount": {
|
||||
"min": -180,
|
||||
"max": 180
|
||||
},
|
||||
"slot": "mainhand",
|
||||
"operation": "addition"
|
||||
},
|
||||
{
|
||||
"name": "right_leg_z",
|
||||
"attribute": "generic.attack_damage",
|
||||
"amount": {
|
||||
"min": -180,
|
||||
"max": 180
|
||||
},
|
||||
"slot": "mainhand",
|
||||
"operation": "addition"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
35
data/armor_statues/loot_tables/replace.json
Normal file
35
data/armor_statues/loot_tables/replace.json
Normal file
@ -0,0 +1,35 @@
|
||||
{
|
||||
"type": "minecraft:entity",
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "minecraft:written_book",
|
||||
"functions": [
|
||||
{
|
||||
"function": "minecraft:copy_nbt",
|
||||
"source": "this",
|
||||
"ops": [
|
||||
{
|
||||
"source": "HandItems[1].tag",
|
||||
"target": "{}",
|
||||
"op": "merge"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"function": "minecraft:set_count",
|
||||
"count": 0
|
||||
},
|
||||
{
|
||||
"function": "minecraft:looting_enchant",
|
||||
"count":1
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
50
data/armor_statues/loot_tables/replace_save.json
Normal file
50
data/armor_statues/loot_tables/replace_save.json
Normal file
@ -0,0 +1,50 @@
|
||||
{
|
||||
"type": "minecraft:entity",
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "minecraft:written_book",
|
||||
"functions": [
|
||||
{
|
||||
"function": "minecraft:copy_nbt",
|
||||
"source": "this",
|
||||
"ops": [
|
||||
{
|
||||
"source": "HandItems[1].tag",
|
||||
"target": "{}",
|
||||
"op": "merge"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"function": "minecraft:set_lore",
|
||||
"lore": [
|
||||
[
|
||||
{
|
||||
"selector": "@e[type=armor_stand,limit=1,sort=nearest,tag=as_selected]"
|
||||
},
|
||||
{
|
||||
"text": " Pose +"
|
||||
}
|
||||
]
|
||||
],
|
||||
"entity": "this",
|
||||
"replace": "true"
|
||||
},
|
||||
{
|
||||
"function": "minecraft:set_count",
|
||||
"count": 0
|
||||
},
|
||||
{
|
||||
"function": "minecraft:looting_enchant",
|
||||
"count":1
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
29
data/armor_statues/predicates/book.json
Normal file
29
data/armor_statues/predicates/book.json
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"condition": "minecraft:alternative",
|
||||
"terms": [
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"mainhand": {
|
||||
"item": "minecraft:written_book",
|
||||
"nbt": "{datapack:ArmorStatuesV2}"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"offhand": {
|
||||
"item": "minecraft:written_book",
|
||||
"nbt": "{datapack:ArmorStatuesV2}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
16
data/armor_statues/predicates/bothhands.json
Normal file
16
data/armor_statues/predicates/bothhands.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"mainhand": {
|
||||
"item": "minecraft:written_book",
|
||||
"nbt": "{datapack:ArmorStatuesV2}"
|
||||
},
|
||||
"offhand": {
|
||||
"item": "minecraft:written_book",
|
||||
"nbt": "{datapack:ArmorStatuesV2}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
17
data/armor_statues/predicates/item_frame_with_book.json
Normal file
17
data/armor_statues/predicates/item_frame_with_book.json
Normal file
@ -0,0 +1,17 @@
|
||||
[
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"nbt": "{Item: {tag: {datapack:ArmorStatuesV2, SavedPose:{} }}}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"condition": "minecraft:location_check",
|
||||
"predicate": {
|
||||
"block": {
|
||||
"block": "minecraft:redstone_wire"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
30
data/armor_statues/predicates/mainhand_potion.json
Normal file
30
data/armor_statues/predicates/mainhand_potion.json
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"condition": "minecraft:alternative",
|
||||
"terms": [
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"mainhand": {
|
||||
"tag": "armor_statues:potions",
|
||||
"potion": "minecraft:invisibility"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"mainhand": {
|
||||
"tag": "armor_statues:potions",
|
||||
"potion": "minecraft:long_invisibility"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
]
|
||||
}
|
30
data/armor_statues/predicates/offhand_potion.json
Normal file
30
data/armor_statues/predicates/offhand_potion.json
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"condition": "minecraft:alternative",
|
||||
"terms": [
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"offhand": {
|
||||
"tag": "armor_statues:potions",
|
||||
"potion": "minecraft:invisibility"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"offhand": {
|
||||
"tag": "armor_statues:potions",
|
||||
"potion": "minecraft:long_invisibility"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
]
|
||||
}
|
4
data/armor_statues/predicates/random_chance_10.json
Normal file
4
data/armor_statues/predicates/random_chance_10.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"condition": "minecraft:random_chance",
|
||||
"chance": 0.15
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user