iku55

myserver,farm

Jul 3rd, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. command /farm [<text>]:
  2. trigger:
  3. if arg-1 is not set:
  4. message ""
  5. else if arg-1 is "get":
  6. if {%player%.myfarm} is not set:
  7. open chest with 6 rows named "[GUIの名前]" to player
  8. wait a tick
  9. if {farm.1} is true:
  10. format slot 0 of player with green wool named "&afarm1" with lore "クリックで取得" to run "/systemfarm 1 %player%"
  11. else:
  12. format slot 0 of player with red wool named "&cfarm1" with lore "" to run "/farm get"
  13. if {farm.2} is true:
  14. format slot 1 of player with green wool named "&afarm2" with lore "クリックで取得" to run "/systemfarm 2 %player%"
  15. else:
  16. format slot 1 of player with red wool named "&cfarm2" with lore "" to run "/farm get"
  17. command /systemfarm [<number>] [<player>]:
  18. permission: farm.system
  19. trigger:
  20. command "/region addmember farm%arg-1% %arg-2%"
  21. set {%arg-2%.myfarm} to "farm%arg-1%"
  22. set {farm.%arg-1%} to true
  23. message "&afarm%arg-1%をもらいました" to arg 2
  24. command /notWE [<player>]:
  25. trigger:
  26. if name of player is "iku55":
  27. command "/scoreboard players tag %arg-1% remove No"
  28. else:
  29. message "&cこのコマンドは使用できません(owner専用)"
Add Comment
Please, Sign In to add comment