minecraft-datapacks/datapacks/armour_statues-2-6-0/data/as/functions/shrine/main.mcfunction

13 lines
424 B
Mcfunction
Raw Permalink Normal View History

2020-03-19 15:59:23 +01:00
#
# Description: Display shrine particles and give book
# Called by: as:tick
# Entity @s: Shrine marker area effect cloud
#
# Particle at shrine position
#
particle minecraft:enchant ~ ~ ~ 0.5 0.5 0.5 0.25 5
#
# Give book to nearby players if they do not have it already
#
execute as @a[distance=..1.5,nbt=!{Inventory:[{id:"minecraft:written_book",tag:{datapack:"ArmourStatuesV2"}}]}] at @s run function as:give