familychicken

doryoku

Jun 14th, 2022 (edited)
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. on join:
  2. if {%player%.d} is not set:
  3. set {%player%.d} to 0
  4. if {%player%.gain} is not set:
  5. set {%player%.gain} to log(1.01)
  6.  
  7. command /resetdata:
  8. trigger:
  9. set {%player%.d} to 0
  10. set {%player%.gain} to log(5)
  11.  
  12. on right click with a stone pickaxe:
  13. d_click(player, 0)
  14.  
  15. function d_click(p: player, am: number):
  16. set {_totalgain} to ibsk_expo({%{_p}%.gain}, {_am})
  17. set {%{_p}%.d} to ibsk_mul({%{_p}%.d}, {_totalgain})
  18. add 1 to {%{_p}%.day::1}
  19.  
  20. every 2 ticks:
  21. loop all players:
  22. set name of sidebar of loop-player to "&c&n%loop-player%"
  23. set line 15 of loop-player's scoreboard to "&7&m------------------------------"
  24. set line 14 of loop-player's scoreboard to "&6力: &e%ibsk_display({%loop-player%.d})% &6pow"
  25. set line 13 of loop-player's scoreboard to "&6努力: &e%ibsk_display({%loop-player%.gain})% &6E"
  26. set line 1 of loop-player's scoreboard to "&7日数: &f&l%nn({%loop-player%.day::1}, loop-player)% &f&l日目"
  27.  
  28.  
Add Comment
Please, Sign In to add comment