-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
4 additions
and
7 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
inv-durability/data/durability/functions/display_msg.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
title @s actionbar [{"score":{"name":"@s","objective":"itm.output"}}, {"text":" Warning low durability of elytra/armor!","color":"red", "bold":true}] | ||
title @s actionbar [{"score":{"name":"@s","objective":"itm.output"}}, {"text":" Warning low durability of elytra/armour!","color":"red", "bold":true}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
execute as @a store result score @s itm.info run data get entity @s Inventory[{Slot:102b}].tag.Damage 1 | ||
execute as @a if data entity @s Inventory[{Slot:102b}].tag.Damage run function durability:update | ||
# execute as @a if data entity @s Inventory[{Slot:102b}].tag.Damage run title @s actionbar [{"score":{"name":"@s","objective":"itm.output"}}] | ||
#execute as @a if score @s itm.output < @s itm.min run function durability:display_msg | ||
execute as @a if score @s itm.output < @s itm.min if data entity @s Inventory[{Slot:102b}].tag.Damage run function durability:display_msg | ||
#execute as @a unless score @s itm.output < @s itm.min run title @s actionbar {"text":" "} | ||
execute as @a if score @s itm.output < @s itm.min if data entity @s Inventory[{Slot:102b}].tag.Damage run function durability:display_msg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"pack": { | ||
"pack_format": 4, | ||
"description": "Elytra Armor Durability" | ||
"description": "Elytra Armour Durability" | ||
} | ||
} |