Advertisement
gryphon2029765298710

gen skript

Sep 2nd, 2020
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. on place of white stained glass:
  2. set {gens::%location of event-block%} to uuid of player
  3. if {gens::%player's uuid%} < 10:
  4. add 1 to {gens::%player's uuid%}
  5. while event-block is white stained glass:
  6. wait 80 ticks
  7. drop 1 paper named "&e1$ note" above location of event-block
  8. else:
  9. send "" to player
  10. send "&bYou have reached your Gen Cap! &7%{gens::%player's uuid%}%&b/&710" to player
  11. send "" to player
  12. cancel event
  13.  
  14. command /gencap [<player>] [<text>] [<number>]:
  15. permission: gencap.use
  16. permission message: &cNope!
  17. trigger:
  18. if arg-1 is set:
  19. if arg-2 is "reset":
  20. set {gens::%arg-1's uuid%} to 0
  21. send "&cYou have just reset %arg-1%&c's gen cap!" to player
  22.  
  23. command /gens:
  24. trigger:
  25. send "" to player
  26. send "&bYou have used %{gens::%player's uuid%}%&7/&b10 gen space!" to player
  27. send "" to player
  28.  
  29. command /sell:
  30. trigger:
  31. set {_amount} to amount of wheat in player's inventory
  32. add {_amount} to {wheatdrops::%player's uuid%}
  33. remove {_amount} of wheat item from player's inventory
  34. send "&7You have just sold &a%{_amount}% &7wheat drops!" to player
  35. send "&7Total Balance&f: &a%{wheatdrops::%player's uuid%}%"
  36.  
  37. command /balance:
  38. trigger:
  39. send "" to player
  40. send "&bYou have &a%{wheatdrops::%player's uuid%}% &bwheat drops in your balance!" to player
  41. send ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement