Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {DailyPoint-Cooldown%player%} = 0
- {check-jukebox-name%player%} = "none"
- on quit:
- clear {check-jukebox-name%player%}
- on join:
- clear {check-jukebox-name%player%}
- on place:
- event-block is jukebox
- set {check-jukebox-name%player%} to "%name of held item%"
- on sign change:
- {check-jukebox-name%player%} is "DailyPoint"
- set line 1 of event-block to "&2[報酬]"
- set line 2 of event-block to "エメラルド:&65"
- set line 3 of event-block to ""
- set line 4 of event-block to ""
- on right click:
- event-block is jukebox
- if {DailyPoint-Cooldown%player%} is 0:
- if player can hold 5 of emerald:
- execute console command "execute @e[name=%player%] ~ ~ ~ playsound entity.player.levelup master %player% ~ ~ ~ 1 1.5"
- give 5 of emerald to player
- send "&25個エメラルドを獲得しました。" to player
- set {DailyPoint-Cooldown%player%} to 86400
- execute console command "Daily-point-cooldow %player%"
- else:
- send "&cインベントリに空きがありません・・・" to player
- else:
- execute console command "execute @e[name=%player%] ~ ~ ~ playsound entity.pig.ambient master %player% ~ ~ ~ 2 1"
- if {DailyPoint-Cooldown%player%} is more than or equal to 60:
- send "§eあと1日待ってね(´・ω・`)" to player
- else:
- send "&4DailyPointは今日はもう受け取れません。" to player
- command /Daily-point-cooldow <text>:
- executable by: console
- trigger:
- if {DailyPoint-Cooldown%arg-1%} is 0:
- stop
- else:
- wait 1 second
- add -1 to {DailyPoint-Cooldown%arg-1%}
- execute console command "Daily-point-cooldow %arg-1%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement