Skip to content

Commit

Permalink
fix: Legacy drawer Lore updated
Browse files Browse the repository at this point in the history
  • Loading branch information
edayot committed Jul 26, 2023
1 parent e09bdf4 commit d5c4165
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion assets/simpledrawer/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@
"simpledrawer.diamond_tier":"Diamond tier",
"simpledrawer.star_tier":"Star tier",
"simpledrawer.netherite_tier":"Netherite tier",
"simpledrawer.hopper_tier":"Hopper upgraded"
"simpledrawer.hopper_tier":"Hopper upgraded",
"simpledrawer.outdated_drawer": "This drawer is outdated, it will continue to work fine.",
"simpledrawer.outdated_drawer_craft": "You can update it by putting it in a Heavy Workbench."




Expand Down
4 changes: 3 additions & 1 deletion assets/simpledrawer/lang/fr_fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@
"simpledrawer.diamond_tier":"Tier Diamant",
"simpledrawer.star_tier":"Tier Etoile",
"simpledrawer.netherite_tier":"Tier Netherite",
"simpledrawer.hopper_tier":"Amélioré Hopper"
"simpledrawer.hopper_tier":"Amélioré Hopper",
"simpledrawer.outdated_drawer": "Ce drawer est obsolète, il va continuer à fonctionner.",
"simpledrawer.outdated_drawer_craft":"Il peut être mis à jour en le mettant dans une Heavy Workbench."


}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ execute if entity @s[tag=simpledrawer.drawer.filled] run function simpledrawer:i
execute store result storage simpledrawer:main temp.dropped_item.tag.CustomModelData int 1 run scoreboard players get #model simpledrawer.math


data remove storage simpledrawer:main temp.dropped_item.tag.display.Lore[-1]
data modify storage simpledrawer:main temp.dropped_item.tag.display.Lore append value '{"translate":"simpledrawer.outdated_drawer","color":"gray","italic":true}'
data modify storage simpledrawer:main temp.dropped_item.tag.display.Lore append value '{"translate":"simpledrawer.outdated_drawer_craft","color":"gray","italic":true}'
data modify storage simpledrawer:main temp.dropped_item.tag.display.Lore append value '{"translate":"simpledrawer.name","color":"blue","italic":true}'



Expand Down

0 comments on commit d5c4165

Please sign in to comment.