Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function playerAttack(p: player, enemyEntity: entity):
- if yaml value "attacks.melee" from "plugins/BattleCore/playerData/%uuid of {_p}%.yml" is 0:
- set {_line1} to "---------"
- else if yaml value "attacks.melee" from "plugins/BattleCore/playerData/%uuid of {_p}%.yml" is 1:
- set {_line1} to "x--------"
- else:
- set {_line1} to "xx-------"
- if yaml value "attacks.ranged" from "plugins/BattleCore/playerData/%uuid of {_p}%.yml" is 0:
- set {_line2} to "---------"
- else if yaml value "attacks.ranged" from "plugins/BattleCore/playerData/%uuid of {_p}%.yml" is 1:
- set {_line2} to "x--------"
- else:
- set {_line2} to "xx-------"
- create a gui with virtual chest inventory with 3 rows named "Attacks" and shape "%{_line1}%", and "%{_line2}%"
- open gui last gui for {_p}
Advertisement
Add Comment
Please, Sign In to add comment