Guest User

Untitled

a guest
Oct 4th, 2020
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. function playerAttack(p: player, enemyEntity: entity):
  2. if yaml value "attacks.melee" from "plugins/BattleCore/playerData/%uuid of {_p}%.yml" is 0:
  3. set {_line1} to "---------"
  4. else if yaml value "attacks.melee" from "plugins/BattleCore/playerData/%uuid of {_p}%.yml" is 1:
  5. set {_line1} to "x--------"
  6. else:
  7. set {_line1} to "xx-------"
  8. if yaml value "attacks.ranged" from "plugins/BattleCore/playerData/%uuid of {_p}%.yml" is 0:
  9. set {_line2} to "---------"
  10. else if yaml value "attacks.ranged" from "plugins/BattleCore/playerData/%uuid of {_p}%.yml" is 1:
  11. set {_line2} to "x--------"
  12. else:
  13. set {_line2} to "xx-------"
  14. create a gui with virtual chest inventory with 3 rows named "Attacks" and shape "%{_line1}%", and "%{_line2}%"
  15. open gui last gui for {_p}
Advertisement
Add Comment
Please, Sign In to add comment