ArmorPlay: type: world debug: true events: after player clicks block with:armadillo_scute: - if == netherite_helmet && == netherite_leggings && == netherite_boots: - actionbar "<&6><&l>Комплект вашей брони улучшен на максимум" - stop - if == null && == null && == null: - actionbar "<&e><&l>Элемент брони был улучшен" - playsound sound:block_anvil_use pitch:1 - random: - adjust equipment: - adjust equipment: - adjust equipment: - else: - ratelimit 0.5s - take item:armadillo_scute quantity:1 - playsound sound:block_anvil_use pitch:1 - run armorup ArmorUp: type: task debug: true script: - define armor - define tiersList - define tier ].material.name.before[_<[armor]>]||null> - define nextTier <[tiersList].find[<[tier]>].add[1]> - if <[nextTier]> > <[tiersList].size>: - run armorup - adjust equipment:=<[tiersList].get[<[nextTier]>]>_<[armor]>]> - actionbar "<&e><&l>Элемент брони был улучшен"