mirror of
https://github.com/LZStealth/armor-statues.git
synced 2025-08-09 20:35:51 +01:00
Initial commit for armor statues
This commit is contained in:
15
data/armor_statues/functions/repeat_trigger.mcfunction
Normal file
15
data/armor_statues/functions/repeat_trigger.mcfunction
Normal file
@@ -0,0 +1,15 @@
|
||||
#
|
||||
# Description: Applys the last repeated trigger score to players score
|
||||
# Called by: armor_statues:second
|
||||
# Entity @s: player
|
||||
#
|
||||
execute as @s run function armor_statues:storage_in
|
||||
#
|
||||
# Copies score from book to as_trigger
|
||||
#
|
||||
execute store result score @s as_trigger run data get storage customizable_armor_stands:book_storage SavedItem.tag.Repeat
|
||||
#
|
||||
# Reset player's trigger score and re-enable
|
||||
#
|
||||
scoreboard players set @s as_repeat 0
|
||||
scoreboard players enable @s as_repeat
|
Reference in New Issue
Block a user