Skip to content

Commit

Permalink
Fix spelling and error
Browse files Browse the repository at this point in the history
  • Loading branch information
1oglop1 committed Jul 27, 2019
1 parent d876cd2 commit bccfbf4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
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}]
2 changes: 1 addition & 1 deletion inv-durability/data/durability/functions/init.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ scoreboard objectives add itm.info dummy
scoreboard objectives add itm.id dummy
scoreboard objectives add itm.output dummy
scoreboard objectives add itm.min dummy
scoreboard players set @s itm.min 20
scoreboard players set @a itm.min 20
5 changes: 1 addition & 4 deletions inv-durability/data/durability/functions/main.mcfunction
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
2 changes: 1 addition & 1 deletion inv-durability/pack.mcmeta
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"
}
}

0 comments on commit bccfbf4

Please sign in to comment.