mirror of
https://github.com/LZStealth/armor-statues.git
synced 2025-06-08 05:26:43 +01:00

-Changed how custom naming works: you can no longer set names to be visible/invisible from the book. Since armor stands retain their names in 1.19.4 you can rename an armor stand item and place it and it will automatically become visible. -Changed 'pointing' function for head and body: Both will now 'face' the player. -Added in has visible fire setting -Added in Pointer Wand: You can obtain this by renaming a stick 'Statues' or by using the trigger in the book: /trigger pointer_wand. -Face an armor stand to enter edit mode -r-click on a joint to first set the appendage to a neutral position, then to point towards the player. -r-click on the base to rotate it facing the player -l-click on the head to make the armor stand visible/invisible -l-click on the arms to make them visible/invisible -l-click on the base to make it visible/invisible -l-click on the body to cycle through the preset poses -Added in Adjustment Wand: You can obtain this by renaming a warped fungus on a stick 'Statues' or by using the trigger in the book: /trigger adjustment_wand. -Shift+r-click to change modes between X/Y/Z -l or r click on a joint to rotate in the positive or negative rotations -l or r click the base to move the stand in the negative or positive direction
33 lines
2.1 KiB
MCFunction
33 lines
2.1 KiB
MCFunction
#
|
|
# Description: Change the armor stand's basic settings
|
|
# Called by: armor_statues:trigger
|
|
# Entity @s: armor stand
|
|
#
|
|
execute if entity @s[scores={as_trigger=1}] run data merge entity @s {NoBasePlate:0b}
|
|
execute if entity @s[scores={as_trigger=2}] run data merge entity @s {NoBasePlate:1b}
|
|
execute if entity @s[scores={as_trigger=3}] run data merge entity @s {ShowArms:1b}
|
|
execute if entity @s[scores={as_trigger=4}] run data merge entity @s {ShowArms:0b}
|
|
execute if entity @s[scores={as_trigger=5}] run data merge entity @s {Small:1b}
|
|
execute if entity @s[scores={as_trigger=6}] run data merge entity @s {Small:0b}
|
|
execute if entity @s[scores={as_trigger=7}] run data merge entity @s {NoGravity:0b}
|
|
execute if entity @s[scores={as_trigger=8}] run data merge entity @s {NoGravity:1b}
|
|
execute if entity @s[scores={as_trigger=9}] run data merge entity @s {Invisible:0b}
|
|
execute if entity @s[scores={as_trigger=9}] run tag @s remove as_invisible
|
|
execute if entity @s[scores={as_trigger=10}] run data merge entity @s {Invisible:1b}
|
|
execute if entity @s[scores={as_trigger=10}] run tag @s add as_invisible
|
|
#execute if entity @s[scores={as_trigger=11}] run data merge entity @s {CustomNameVisible:1b}
|
|
#execute if entity @s[scores={as_trigger=12}] run data merge entity @s {CustomNameVisible:0b}
|
|
execute if entity @s[scores={as_trigger=13}] run data merge entity @s {HasVisualFire:1b}
|
|
execute if entity @s[scores={as_trigger=14}] run data merge entity @s {HasVisualFire:0b}
|
|
#
|
|
# Tag the armor stand as modified
|
|
#
|
|
tag @s add as_modified
|
|
#
|
|
# Report changes to gravity setting as it is not visible
|
|
#
|
|
execute if entity @s[scores={as_trigger=7}] 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"}
|