1
0
mirror of https://github.com/LZStealth/armor-statues.git synced 2025-06-08 05:26:43 +01:00
MukiTanuki 1b6d7ed463 1.19.4 update
-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
2023-04-01 15:08:16 -07:00

44 lines
2.1 KiB
MCFunction

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