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:
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
|
Reference in New Issue
Block a user