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:
11
data/armor_statues/functions/replace_book.mcfunction
Normal file
11
data/armor_statues/functions/replace_book.mcfunction
Normal file
@@ -0,0 +1,11 @@
|
||||
#
|
||||
# Description: Replace titled book with proper command book
|
||||
# Called by: armor_statues:tick
|
||||
# Entity @s: Player
|
||||
#
|
||||
# Replaces the written book from the players inventory
|
||||
#
|
||||
execute store result score #as_success as_help run clear @s minecraft:written_book{title:"Statues"} 1
|
||||
execute if score #as_success as_help matches 1.. run function armor_statues:give
|
||||
|
||||
tag @s remove as_craft
|
Reference in New Issue
Block a user