Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- if {login.%UUID of player%} is not set:
- set {login.%UUID of player%} to 1
- set player's gamemode to adventure
- if {minepoint::%UUID of player%} is not set:
- set {minepoint::%UUID of player%} to 0
- if {minemoney::%UUID of player%} is not set:
- set {minemoney::%UUID of player%} to 0
- if {minelevel::%UUID of player%} is not set:
- set {minelevel::%UUID of player%} to 1
- if {needminepoint.%UUID of player%} is not set:
- set {needminepoint.%UUID of player%} to 100
- updateMineSideBar(player)
- function updateMineSideBar(p: player):
- wipe {_p} sidebar
- set {_uuid} to UUID of {_p}
- set name of sidebar of {_p} to "&b&lYour Status"
- set score "&aLEVEL: %{minelevel::%{_uuid}%}%" in sidebar of {_p} to 0
- set score "&1" in sidebar of {_p} to -1
- set score "&ePOINT: %{minepoint::%{_uuid}%}%/%{needminepoint.%{_uuid}%}%" in sidebar of {_p} to -2
- set score "&2" in sidebar of {_p} to -3
- set score "&3" in sidebar of {_p} to -5
- set score "&6MONEY: %{minemoney::%{_uuid}%}%G" in sidebar of {_p} to -6
- if {minelevel::%{_uuid}%} is between 1 and 127:
- set score "&dHASTEPOWER: %{minelevel::%{_uuid}%}-1%" in sidebar of {_p} to -4
- if {minelevel::%{_uuid}%} is greater than or equal to 128:
- set score "&dHASTEPOWER: 127" in sidebar of {_p} to -4
- command /money [<text>] [<player>] [<number>]:
- trigger:
- if player has permission "sk.command.money":
- if arg-1 is not set:
- send "&bあなたの所持金:&6%{minemoney::%UUID of player%}%G"
- stop
- if arg-1 is not "set" or "add" or "send" or "remove":
- send "&c使用法: /money または /money <add|remove|send|set> <プレイヤー> <数値>"
- stop
- if arg-2 is not set:
- send "&c使用法: /money または /money <add|remove|send|set> <プレイヤー> <数値>"
- stop
- if arg-3 is not set:
- send "&c使用法: /money または /money <add|remove|send|set> <プレイヤー> <数値>"
- stop
- if arg-1 is "add":
- if arg-3 is greater than or equal to 1:
- updateMineSideBar(arg-2)
- add arg-3 to {minemoney::%arg-2%}
- send "&3%arg-2%&bの所持金に&6%arg-3%G&b追加しました"
- stop
- if arg-3 is smaller than or equal to 0:
- send "&c1以上の数値を指定してください"
- stop
- if arg-1 is "remove":
- if arg-3 is greater than or equal to 1:
- updateMineSideBar(arg-2)
- remove arg-3 from {minemoney::%arg-2%}
- send "&3%arg-2%&bの所持金を&6%arg-3%G&b減らしました"
- stop
- if arg-3 is smaller than or equal to 0:
- send "1以上の数値を指定してください"
- stop
- if arg-1 is "set":
- if arg-3 is greater than or equal to 0:
- updateMineSideBar(arg-2)
- set {minemoney::%arg-2%} to arg-3
- send "&3%arg-2%&bの所持金を&6%arg-3%G&bにしました"
- stop
- if arg-3 is smaller than or equal to -1:
- send "0以上の数値を指定してください"
- stop
- if arg-1 is "send":
- if arg-2 is player:
- send "&c自分自身に送ることはできません"
- stop
- else:
- if {minemoney::%UUID of player%} is greater than or equal to arg-3:
- if arg-3 is greater than or equal to 1:
- updateMineSideBar(arg-2)
- updateMineSideBar(player)
- add arg-3 to {minemoney::%arg-2%}
- remove arg-3 from {minemoney::%UUID of player%}
- send "&3%arg-2%さん&bに&6%arg-3%G&b送りました"
- send "&3%player%さん&bから&6%arg-3%G&b受け取りました" to arg-2
- stop
- if arg-3 is smaller than or equal to 0:
- send "&c1以上の数値を指定してください"
- stop
- if {minemoney::%UUID of player%} is not greater than or equal to arg-3:
- send "&c所持金が足りません"
- stop
- if player doesn't have permission "sk.command.money":
- if arg-1 is not set:
- send "&bあなたの所持金:&6%{minemoney::%UUID of player%}%G"
- stop
- if arg-1 is not "send":
- send "&c使用法: /money または /money send <プレイヤー> <数値>"
- stop
- if arg-2 is not set:
- send "&c使用法: /money または /money send <プレイヤー> <数値>"
- stop
- if arg-3 is not set:
- send "&c使用法: /money または /money send <プレイヤー> <数値>"
- stop
- if arg-1 is "send":
- if arg-2 is player:
- send "&c自分自身に送ることはできません"
- stop
- else:
- if {minemoney::%UUID of player%} is greater than or equal to arg-3:
- if arg-3 is greater than or equal to 1:
- updateMineSideBar(arg-2)
- updateMineSideBar(player)
- add arg-3 to {minemoney::%arg-2%}
- remove arg-3 from {minemoney::%UUID of player%}
- send "&3%arg-2%さん&bに&6%arg-3%G&b送りました"
- send "&3%player%さん&bから&6%arg-3%G&b受け取りました" to arg-2
- stop
- if arg-3 is smaller than or equal to 0:
- send "&c1以上の数値を指定してください"
- stop
- if {minemoney::%UUID of player%} is not greater than or equal to arg-3:
- send "&c所持金が足りません"
- stop
- on mine:
- player's gamemode is not creative
- if event-block is coal ore:
- cancel event
- updateMineSideBar(player)
- set {emptyore.%event-location%} to event-location
- set block at event-location to cobble block
- add coal ore to player's inventory
- play sound "entity_item_pickup" to player with volume 1 and pitch 10
- add 1 to {minepoint::%UUID of player%}
- wait 10 second
- set block at event-location to coal ore
- delete {emptyore.%event-location%}
- show 30 Villager Happy particle at event-location offset by 0.35, 0.35, 0.35
- if event-block is iron ore:
- cancel event
- updateMineSideBar(player)
- set {emptyore.%event-location%} to event-location
- set block at event-location to cobble block
- add iron ore to player's inventory
- play sound "entity_item_pickup" to player with volume 1 and pitch 10
- add 3 to {minepoint::%UUID of player%}
- wait 10 second
- set block at event-location to iron ore
- delete {emptyore.%event-location%}
- show 30 Villager Happy particle at event-location offset by 0.35, 0.35, 0.35
- if event-block is lapis ore:
- cancel event
- updateMineSideBar(player)
- set {emptyore.%event-location%} to event-location
- set block at event-location to cobble block
- add lapis ore to player's inventory
- play sound "entity_item_pickup" to player with volume 1 and pitch 10
- add 5 to {minepoint::%UUID of player%}
- wait 10 second
- set block at event-location to lapis ore
- delete {emptyore.%event-location%}
- show 30 Villager Happy particle at event-location offset by 0.35, 0.35, 0.35
- if event-block is gold ore:
- cancel event
- updateMineSideBar(player)
- set {emptyore.%event-location%} to event-location
- set block at event-location to cobble block
- add gold ore to player's inventory
- play sound "entity_item_pickup" to player with volume 1 and pitch 10
- add 10 to {minepoint::%UUID of player%}
- wait 10 second
- set block at event-location to gold ore
- delete {emptyore.%event-location%}
- show 30 Villager Happy particle at event-location offset by 0.35, 0.35, 0.35
- if event-block is diamond ore:
- cancel event
- updateMineSideBar(player)
- set {emptyore.%event-location%} to event-location
- set block at event-location to cobble block
- add diamond ore to player's inventory
- play sound "entity_item_pickup" to player with volume 1 and pitch 10
- add 12 to {minepoint::%UUID of player%}
- wait 10 second
- set block at event-location to diamond ore
- delete {emptyore.%event-location%}
- show 30 Villager Happy particle at event-location offset by 0.35, 0.35, 0.35
- if event-block is nether quartz ore:
- cancel event
- updateMineSideBar(player)
- set {emptyore.%event-location%} to event-location
- set block at event-location to cobble block
- add nether quartz ore to player's inventory
- play sound "entity_item_pickup" to player with volume 1 and pitch 10
- add 15 to {minepoint::%UUID of player%}
- wait 10 second
- set block at event-location to nether quartz ore
- delete {emptyore.%event-location%}
- show 30 Villager Happy particle at event-location offset by 0.35, 0.35, 0.35
- if event-block is emerald ore:
- cancel event
- updateMineSideBar(player)
- set {emptyore.%event-location%} to event-location
- set block at event-location to cobble block
- add emerald ore to player's inventory
- play sound "entity_item_pickup" to player with volume 1 and pitch 10
- add 20 to {minepoint::%UUID of player%}
- wait 10 second
- set block at event-location to emerald ore
- delete {emptyore.%event-location%}
- show 30 Villager Happy particle at event-location offset by 0.35, 0.35, 0.35
- if event-block is obsidian:
- cancel event
- updateMineSideBar(player)
- set {emptyore.%event-location%} to event-location
- set block at event-location to cobble block
- add obsidian to player's inventory
- play sound "entity_item_pickup" to player with volume 1 and pitch 10
- add 50 to {minepoint::%UUID of player%}
- wait 10 second
- set block at event-location to obsidian
- delete {emptyore.%event-location%}
- show 30 Villager Happy particle at event-location offset by 0.35, 0.35, 0.35
- on break:
- if event-location is {emptyore.%event-location%}:
- cancel event
- on break:
- player's gamemode is not creative
- cancel event
- on place:
- player's gamemode is not creative
- cancel event
- every tick:
- loop all players:
- set {levelranking::%loop-player%} to {minelevel::%UUID of loop-player%}
- if loop-player have permission "sk.admin":
- loop-player do not have permission "sk.command.enderchest"
- execute console command "pex user %loop-player% add sk.command.enderchest"
- else:
- loop-player have permission "sk.command.enderchest"
- execute console command "pex user %loop-player% add -sk.command.enderchest"
- command /enderchest [<offline player>] [<text>]:
- permission: sk.command.enderchest
- permission message: Unknown command. Type "/help" for help
- trigger:
- if arg-2 is not "1" or "2" or "3" or "4" or "5" or "6" or "7" or "8" or "9":
- send "&c使用法: /enderchest <player> <1~9>"
- else:
- play sound "block_enderchest_open" to player with volume 1 and pitch 5
- execute console command "/menu create enderchest-%UUID of arg-1%-%arg-2% 6 &5エンダーチェスト &5番号: &d%arg-2%"
- execute console command "/menu edit %player% enderchest-%UUID of arg-1%-%arg-2%"
- on right click:
- event-block is ender chest
- play sound "block_enderchest_open" to player with volume 1 and pitch 5
- cancel event
- open chest with 1 row named "&5&l開くエンダーチェストを選択" to player
- wait 1 tick
- format slot 0 of player with ender chest named "&5エンダーチェスト" with lore "&5番号: &d1" to run [execute console command "/superexecute %player% sk.command.enderchest /enderchest %player% 1"]
- format slot 1 of player with ender chest named "&5エンダーチェスト" with lore "&5番号: &d2" to run [execute console command "/superexecute %player% sk.command.enderchest /enderchest %player% 2"]
- format slot 2 of player with ender chest named "&5エンダーチェスト" with lore "&5番号: &d3" to run [execute console command "/superexecute %player% sk.command.enderchest /enderchest %player% 3"]
- format slot 3 of player with ender chest named "&5エンダーチェスト" with lore "&5番号: &d4" to run [execute console command "/superexecute %player% sk.command.enderchest /enderchest %player% 4"]
- format slot 4 of player with ender chest named "&5エンダーチェスト" with lore "&5番号: &d5" to run [execute console command "/superexecute %player% sk.command.enderchest /enderchest %player% 5"]
- format slot 5 of player with ender chest named "&5エンダーチェスト" with lore "&5番号: &d6" to run [execute console command "/superexecute %player% sk.command.enderchest /enderchest %player% 6"]
- format slot 6 of player with ender chest named "&5エンダーチェスト" with lore "&5番号: &d7" to run [execute console command "/superexecute %player% sk.command.enderchest /enderchest %player% 7"]
- format slot 7 of player with ender chest named "&5エンダーチェスト" with lore "&5番号: &d8" to run [execute console command "/superexecute %player% sk.command.enderchest /enderchest %player% 8"]
- format slot 8 of player with ender chest named "&5エンダーチェスト" with lore "&5番号: &d9" to run [execute console command "/superexecute %player% sk.command.enderchest /enderchest %player% 9"]
- command /superexecute [<player>] [<text>] [<text>]:
- permission: sk.command.superexecute
- permission message: &cYou don't have permission.
- trigger:
- if arg-3 is not set:
- send "&c使用法: /superexecute <player> <permission> <command>"
- else:
- execute console command "pex user %arg-1% add %arg-2%"
- execute arg-1 command arg-3
- execute console command "pex user %arg-1% add -%arg-2%"
- on drop:
- player's gamemode is not creative
- cancel event
- every tick:
- loop all players:
- set level of loop-player to {minelevel::%UUID of loop-player%}
- set level progress of loop-player to {minepoint::%UUID of loop-player%}/{needminepoint.%UUID of loop-player%}
- if {minelevel::%UUID of loop-player%} is smaller than or equal to 90:
- set {def::%UUID of loop-player%} to {minelevel::%UUID of loop-player%}-1
- if {minelevel::%UUID of loop-player%} is greater than or equal to 91:
- set {def::%UUID of loop-player%} to 90
- if {minepoint::%UUID of loop-player%} is greater than or equal to {needminepoint.%UUID of loop-player%}:
- set {minepoint::%UUID of loop-player%} to {minepoint::%UUID of loop-player%}-{needminepoint.%UUID of loop-player%}
- set {needminepoint.%UUID of loop-player%} to {needminepoint.%UUID of loop-player%}*1.05
- set {needminepoint.%UUID of loop-player%} to round({needminepoint.%UUID of loop-player%})/10
- set {needminepoint.%UUID of loop-player%} to round({needminepoint.%UUID of loop-player%})
- set {needminepoint.%UUID of loop-player%} to {needminepoint.%UUID of loop-player%}*10
- add 1 to {minelevel::%UUID of loop-player%}
- send loop-player title "&a&lLEVEL UP" with subtitle "&aYour are now LEVEL %{minelevel::%UUID of loop-player%}%!" for 1 seconds with 0 seconds fade in and 0.5 seconds fade out
- play sound "entity_player_levelup" to loop-player with volume 1 and pitch 5
- updateMineSideBar(loop-player)
- on xp spawn:
- cancel event
- every tick:
- loop all players:
- if {minelevel::%UUID of loop-player%} is between 2 and 128:
- execute console command "execute %loop-player% ~ ~ ~ effect @s minecraft:haste 1 %{minelevel::%UUID of loop-player%}-2% true"
- if {minelevel::%UUID of loop-player%} is greater than or equal to 129:
- execute console command "execute %loop-player% ~ ~ ~ effect @s minecraft:haste 1 127 true"
- command /resetlevel [<offline player>] [<text>]:
- permission: sk.command.resetlevel
- permission message: &cYou don't have permission.
- trigger:
- if arg-1 is not set:
- send "&c使用法: /resetlevel <プレイヤー>"
- stop
- if arg-1 is set:
- if {login.%UUID of arg-1%} is not set:
- send "&cそのプレイヤーはこのサーバーにログインしたことがありません%nl%&c使用法: /resetlevel <プレイヤー>"
- stop
- if {arg-2} is set:
- send "&cコマンドの入力形式にミスがあります%nl%&c使用法: /resetlevel <player>"
- stop
- else:
- updateMineSideBar(arg-1)
- set {needminepoint.%arg-1%} to 100
- set {minepoint::%arg-1%} to 0
- set {minelevel::%arg-1%} to 1
- send "&3%arg-1%&bのレベルに関連するステータスの値をリセットしました"
- on hunger bar change:
- set player's food to 10
- command /ranking:
- trigger:
- set {_high} to 0
- loop {levelranking::*}:
- set {_levelranking::%loop-index%} to loop-value
- loop 3 times:
- loop {_levelranking::*}:
- if loop-value-2 is greater than {_high}:
- set {_high} to loop-value-2
- set {_highplayer} to loop-index
- if loop-number is 1:
- message "&7=======&3Ranking&7=======%nl%%nl%&6&l%loop-number%st &b%{_highplayer}% &aLEVEL %{_high}%%nl%"
- if loop-number is 2:
- message "&7&l%loop-number%nd &b%{_highplayer}% &aLEVEL %{_high}%%nl%"
- if loop-number is 3:
- message "&c&l%loop-number%rd &b%{_highplayer}% &aLEVEL %{_high}%%nl%%nl%&7====================="
- set {_high} to 0
- delete {_levelranking::%{_highplayer}%}
- on damage:
- victim is a player
- cancel event
- on rightclick:
- id of clicked block is 145
- player's gamemode is not creative
- cancel event
- on rightclick on crafting table:
- player's gamemode is not creative
- cancel event
- on rightclick on stone button:
- player's gamemode is not creative
- cancel event
- on click on note block:
- player's gamemode is not creative
- cancel event
- on craft:
- player's gamemode is not creative
- cancel event
- command /firstjoinreset [<offline player>] [<text>]:
- aliases: /fjr
- permission: sk.command.fjr
- permission message: &cYou don't have permission.
- trigger:
- if arg-1 is not set:
- send "&c使用法: /firstjoinreset <プレイヤー>"
- stop
- if {login.%UUID of arg-1%} is not set:
- send "&c使用法: /firstjoinreset <プレイヤー>"
- stop
- if arg-2 is set:
- send "&c使用法: /firstjoinreset <プレイヤー>"
- stop
- else:
- delete {login.%UUID of arg-1%}
- kick arg-1 due to "&c再度ログインし直してください"
- send "&3%arg-1%&bの初ログインフラグを消去しました"
- stop
Advertisement
Add Comment
Please, Sign In to add comment