Advertisement
CREAMPAN0408

Untitled

Dec 23rd, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. variables:
  2. {DailyPoint-Cooldown%player%} = 0
  3. {check-jukebox-name%player%} = "none"
  4.  
  5. on quit:
  6. clear {check-jukebox-name%player%}
  7.  
  8. on join:
  9. clear {check-jukebox-name%player%}
  10.  
  11. on place:
  12. event-block is jukebox
  13. set {check-jukebox-name%player%} to "%name of held item%"
  14.  
  15. on sign change:
  16. {check-jukebox-name%player%} is "DailyPoint"
  17. set line 1 of event-block to "&2[報酬]"
  18. set line 2 of event-block to "エメラルド:&65"
  19. set line 3 of event-block to ""
  20. set line 4 of event-block to ""
  21.  
  22. on right click:
  23. event-block is jukebox
  24. if {DailyPoint-Cooldown%player%} is 0:
  25. if player can hold 5 of emerald:
  26. execute console command "execute @e[name=%player%] ~ ~ ~ playsound entity.player.levelup master %player% ~ ~ ~ 1 1.5"
  27. give 5 of emerald to player
  28. send "&25個エメラルドを獲得しました。" to player
  29. set {DailyPoint-Cooldown%player%} to 86400
  30. execute console command "Daily-point-cooldow %player%"
  31. else:
  32. send "&cインベントリに空きがありません・・・" to player
  33. else:
  34. execute console command "execute @e[name=%player%] ~ ~ ~ playsound entity.pig.ambient master %player% ~ ~ ~ 2 1"
  35. if {DailyPoint-Cooldown%player%} is more than or equal to 60:
  36. send "報酬獲得までのこり1m%{DailyPoint-Cooldown%player%} - 60%sです。" to player
  37. else:
  38. send "報酬獲得までのこり0m%{DailyPoint-Cooldown%player%}%sです。" to player
  39.  
  40. command /Daily-point-cooldow <text>:
  41. executable by: console
  42. trigger:
  43. if {DailyPoint-Cooldown%arg-1%} is 0:
  44. stop
  45. else:
  46. wait 1 second
  47. add -1 to {DailyPoint-Cooldown%arg-1%}
  48. execute console command "Daily-point-cooldow %arg-1%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement