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
27 lines
1.5 KiB
MCFunction
27 lines
1.5 KiB
MCFunction
#
|
|
# Description: teleports interactions to correct positions
|
|
# Called by: armor_statues:interactions/interact_pointer
|
|
# Entity @s: armor_stand
|
|
#
|
|
# Stores uuid to select entities
|
|
scoreboard players operation #uuid_selector as_uuid1 = @s as_uuid1
|
|
scoreboard players operation #uuid_selector as_uuid2 = @s as_uuid2
|
|
scoreboard players operation #uuid_selector as_uuid3 = @s as_uuid3
|
|
scoreboard players operation #uuid_selector as_uuid4 = @s as_uuid4
|
|
# Selects entities from their stored uuid
|
|
function armor_statues:select_by_uuid
|
|
# head
|
|
execute as @e[type=#armor_statues:selectable,tag=as_uuid_selected,tag=as_head_interactable] rotated ~ 0 run tp ^ ^1.52 ^
|
|
# body
|
|
execute as @e[type=#armor_statues:selectable,tag=as_uuid_selected,tag=as_body_interactable] rotated ~ 0 run tp ^ ^1.25 ^
|
|
# right arm
|
|
execute as @e[type=#armor_statues:selectable,tag=as_uuid_selected,tag=as_right_arm_interactable] rotated ~ 0 run tp ^-0.34375 ^1.28125 ^
|
|
# left arm
|
|
execute as @e[type=#armor_statues:selectable,tag=as_uuid_selected,tag=as_left_arm_interactable] rotated ~ 0 run tp ^0.34375 ^1.28125 ^
|
|
# right leg
|
|
execute as @e[type=#armor_statues:selectable,tag=as_uuid_selected,tag=as_right_leg_interactable] rotated ~ 0 run tp ^-0.125 ^0.65625 ^
|
|
# left leg
|
|
execute as @e[type=#armor_statues:selectable,tag=as_uuid_selected,tag=as_left_leg_interactable] rotated ~ 0 run tp ^0.125 ^0.65625 ^
|
|
# base
|
|
execute as @e[type=#armor_statues:selectable,tag=as_uuid_selected,tag=as_base_interactable] rotated ~ 0 run tp ^ ^ ^
|
|
tag @e[tag=as_uuid_selected] remove as_uuid_selected |