1
0
mirror of https://github.com/LZStealth/armor-statues.git synced 2025-08-10 08:35:52 +01:00

Initial commit for armor statues

This commit is contained in:
MSpaceDev
2021-04-17 12:07:53 +02:00
parent 490890cd34
commit dafdb83c30
116 changed files with 3229 additions and 2 deletions

View 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