familychicken

Untitled

Sep 20th, 2022 (edited)
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. variables:
  2. {%player%::multigold} = 1
  3.  
  4. every 2 ticks:
  5. loop all players:
  6. set name of sidebar of loop-player to ""
  7. set line 15 of loop-player's scoreboard to "&7&m------------------------------"
  8. set line 14 of loop-player's scoreboard to "&6ゴールド&f: &e%nn({%loop-player%::gold}, loop-player)% &6gold"
  9. set line 13 of loop-player's scoreboard to ""
  10. set line 12 of loop-player's scoreboard to ""
  11. set line 11 of loop-player's scoreboard to ""
  12. set line 10 of loop-player's scoreboard to ""
  13. set line 9 of loop-player's scoreboard to "&7&l ┗&7倍率&f: &ex%{%loop-player%::multigold}%"
  14. set line 1 of loop-player's scoreboard to "&7&m------------------------------"
  15.  
  16. command /base:
  17. trigger:
  18. set {%player%::multigold} to 1
  19. on mine:
  20. if event-block is cobblestone:
  21. cancel event
  22. give cobblestone named "&7[&6*&7] &r&f丸石" with nbt "{sell:1}" to player
  23.  
  24. on rightclick on sign:
  25. if line 1 is "[Mining]":
  26. if line 2 of clicked block is "sell":
  27. execute player command "/sell"
  28. command /sell:
  29. trigger:
  30. loop 36 times:
  31. set {_item} to slot ((loop-number)-1) of player's inventory
  32. set {_n} to tag "sell" of nbt of {_item}
  33. if {_n} > 0:
  34. set {_item2} to {_item}
  35. remove {_item2} from player's inventory
  36. add (item amount of {_item2})*{_n}*{%player%::multigold} to {%player%::gold}
  37. add (item amount of {_item2})*{_n}*{%player%::multigold} to {_total}
  38. set {_n} to 0
  39. message "&7[&6・&7] &6+ &e%nn({_total}, player)% &6gold" to player if {_total} is set
Advertisement
Add Comment
Please, Sign In to add comment