Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on first join:
- set the join message to "&b&lSystem &7&l> &e&l%player%&a&lさんが&d&l初&b&lログイン&a&lしました!"
- give player wood pickaxe named "&6&l&m====&6&l[[| &e&lぼろいつるはし &6&l|]]&m====" with lore "&6&l&m--==__&6&l[| &3&lItem Stats &6&l|]&m__==--" and "&e&l採掘力&7: &a&l+1" and "&e&l強化値&7: &a&l0" and "&c&l強化上限&7: &a&l9" and "&d&l解放&7: &a&l0"
- on quit:
- set the quit message to "&b&lSystem &7&l> &e&l%player%&a&lさんが&c&lログアウト&a&lしました..."
- on food level change:
- set food level of player to 9.5
- every 1 seconds in "world":
- loop all players:
- if {side::%loop-player%} is true:
- wipe loop-player sidebar
- set name of sidebar of loop-player to "&6&lClickerServer"
- set score "&c&l採掘ポイント" in sidebar of loop-player to 4
- if {cp::%loop-player%} < 1000:
- set score "&f%{cp::%loop-player%}%" in sidebar of loop-player to 3
- else if {cpK::%loop-player%} < 1000:
- set score "&f%{cpK::%loop-player%}%K" in sidebar of loop-player to 3
- else:
- set score "&f%{cpM::%loop-player%}%M" in sidebar of loop-player to 3
- set score "&a&l総採掘ポイント" in sidebar of loop-player to 2
- set score "&f%{ap::%loop-player%}%" in sidebar of loop-player to 1
- if {side::%loop-player%} is false:
- wipe loop-player sidebar
- function conXYZ(loc: location) :: string:
- set {_loc} to "%{_loc}%"
- replace "," and "x: ", "y: ", "z: " with "" in {_loc}
- return {_loc}
- on join:
- set the join message to "&b&lSystem &7&l> &e&l%player%&a&lさんが&b&lログイン&a&lしました!"
- if {cp::%player%} is not set:
- set {cp::%player%} to 0
- set {ap::%player%} to 0
- set {sound::%player%} to true
- if {mp::%player%} is not set:
- set {mp::%player%} to 0
- every 3 second in "world":
- loop all players:
- set {cpca::%loop-player%} to 0
- set {cpcb::%loop-player%} to 0
- add {cp::%loop-player%} to {cpca::%loop-player%}
- wait 59 ticks
- add {cp::%loop-player%} to {cpcb::%loop-player%}
- send action bar "&b&lCPS(3s) &c&l%({cpcb::%loop-player%} - {cpca::%loop-player%}) / 3%" to loop-player
- wait a ticks
- every 1 second in "world":
- loop all players:
- if {cp::%loop-player%} > 10000000000000:
- set {cp::%loop-player%} to 10000000000000
- if {cp::%loop-player%} > 1000:
- set {cpK::%loop-player%} to floor({cp::%loop-player%}/1000)
- if {cpK::%loop-player%} > 1000:
- set {cpM::%loop-player%} to floor({cpK::%loop-player%}/1000)
- command /cpgive <integer> <player=%player%>:
- permission: skript.cpgive
- trigger:
- add arg 1 to {cp::%arg 2%}
- command /cp <player=%player%>:
- trigger:
- message "&b&lSystem &7&l> &a&l%arg 1% の採掘ポイントは &b&l%{cp::%arg 1%}% &a&lです"
- command /look:
- trigger:
- message "%target block%"
- command /ap <player=%player%>:
- trigger:
- message "&b&lSystem &7&l> &a&l%arg 1% の総採掘ポイントは &b&l%{ap::%arg 1%}% &a&lです"
- command /status <player=%player%>:
- trigger:
- message "&b&lSystem &7&l> &a&l%arg 1% の総採掘ポイントは &b&l%{ap::%arg 1%}% &a&lです"
- message "&b&lSystem &7&l> &a&l%arg 1% の採掘ポイントは &b&l%{cp::%arg 1%}% &a&lです"
- command /fly:
- permission: skript.mvp
- trigger:
- if {fly.%player%} is not set:
- set {fly.%player%} to true
- set the player's flight mode to true
- send "&7》 &bFlymode&7: &aEnable"
- give a barrier named "&cCooldown..." to player
- wait 1 seconds
- remove barrier named "&cCooldown..." from the player
- give a clock named "&7Rightclick: &cDisable" to player
- stop
- if {fly.%player%} is false:
- set {fly.%player%} to true
- set the player's flight mode to true
- send "&7》 &bFlymode&7: &aEnable"
- if player do not have air:
- send "&cインベントリに空きがなかったのでモードチェンジは"
- send "&c/flyで行ってください。"
- remove clock named "&7Rightclick: &aEnable" from the player
- stop
- give a barrier named "&cCooldown..." to player
- wait 1 seconds
- remove barrier named "&cCooldown..." from the player
- give a clock named "&7Rightclick: &cDisable" to player
- stop
- if {fly.%player%} is true:
- set {fly.%player%} to false
- set the player's flight mode to false
- send "&7》 &bFlymode&7: &cDisable"
- remove clock named "&7Rightclick: &cDisable" from the player
- if player do not have air:
- send "&cインベントリに空きがなかったのでモードチェンジは"
- send "&c/flyで行ってください。"
- remove clock named "&7Rightclick: &cDisable" from the player
- stop
- give a barrier named "&cCooldown..." to player
- wait 1 seconds
- remove barrier named "&cCooldown..." from the player
- give a clock named "&7Rightclick: &aEnable" to player
- stop
- on rightclick with clock:
- if tool's name is "&7Rightclick: &aEnable":
- if {fly.%player%} is false:
- set the player's flight mode to true
- send "&7》 &bFlymode&7: &aEnable"
- set {fly.%player%} to true
- if player do not have air:
- remove clock named "&7Rightclick: &aEnable" from the player
- send "&cインベントリに空きがなかったのでモードチェンジは"
- send "&c/flyで行ってください。"
- stop
- else:
- remove clock named "&7Rightclick: &aEnable" from the player
- give a barrier named "&cCooldown..." to player
- wait 1 seconds
- remove barrier named "&cCooldown..." from the player
- give a clock named "&7Rightclick: &cDisable" to player
- stop
- on rightclick with clock:
- if tool's name is "&7Rightclick: &cDisable":
- if {fly.%player%} is true:
- set the player's flight mode to false
- send "&7》 &bFlymode&7: &cDisable"
- set {fly.%player%} to false
- if player do not have air:
- remove clock named "&7Rightclick: &cDisable" from the player
- send "&cインベントリに空きがなかったのでモードチェンジは"
- send "&c/flyで行ってください。"
- stop
- else:
- remove clock named "&7Rightclick: &cDisable" from the player
- give a barrier named "&cCooldown..." to player
- wait 1 seconds
- remove barrier named "&cCooldown..." from the player
- give a clock named "&7Rightclick: &aEnable" to player
- stop
- command /sound [<text>]:
- trigger:
- if {sound::%player%} is not set:
- set {sound::%player%} to true
- stop
- if arg is not set:
- if {sound::%player%} is true:
- send "&7》&aサウンドをoffにしました"
- set {sound::%player%} to false
- stop
- if {sound::%player%} is false:
- send "&7》&aサウンドをonにしました"
- set {sound::%player%} to true
- stop
- if arg is "on":
- if {sound::%player%} is true:
- send "&7》&cもうonにされています"
- if {sound::%player%} is false:
- send "&7》&aサウンドをonにしました"
- set {sound::%player%} to true
- if arg is "off":
- if {sound::%player%} is true:
- send "&7》&aサウンドをoffにしました"
- set {sound::%player%} to false
- if {sound::%player%} is false:
- send "&7》&cもうoffにされています"
- command /sidebar [<text>]:
- trigger:
- if {side::%player%} is not set:
- set {side::%player%} to true
- stop
- if arg is not set:
- if {side::%player%} is true:
- send "&7》&aサイドバーをoffにしました"
- set {side::%player%} to false
- stop
- if {side::%player%} is false:
- send "&7》&aサイドバーをonにしました"
- set {side::%player%} to true
- stop
- if arg is "on":
- if {side::%player%} is true:
- send "&7》&cもうonにされています"
- if {side::%player%} is false:
- send "&7》&aサイドバーをonにしました"
- set {side::%player%} to true
- if arg is "off":
- if {side::%player%} is true:
- send "&7》&aサイドバーをoffにしました"
- set {side::%player%} to false
- stop
- if {side::%player%} is false:
- send "&7》&cもうoffにされています"
- command /nick <player> <text>:
- permission: skript.nick
- trigger:
- set the arg 1's display name to "&f%arg 2%"
- set the arg 1's tablist name to "&f%arg 2%"
- command /sra:
- permission: skript.reload
- trigger:
- broadcast "&c&lWARNING &7&l> &2&lスクリプト&a&lを&c&lリロード&a&lするため"
- broadcast "&c&lWARNING &7&l> &a&l&b&lラグ&a&lが発生するおそれがあります"
- wait 2 seconds
- execute player command "sk reload all"
- command /sr <text>:
- permission: skript.reload
- trigger:
- broadcast "&c&lWARNING &7&l> &2&lスクリプト&a&lを&c&lリロード&a&lするため"
- broadcast "&c&lWARNING &7&l> &a&l&b&lラグ&a&lが発生するおそれがあります"
- wait 2 seconds
- execute player command "sk reload %arg 1%"
- command /get <text> <integer> <integer> <integer> <player=%player%>:
- permission: skript.get
- trigger:
- set {_plus} to arg 2
- set {_maxplus} to arg 3
- set {_liberation} to arg 4
- if arg-1 is "ぼろい":
- if {_plus} >= 1:
- give arg-5 wood pickaxe named "&6&l&m====&6&l[[| &e&lぼろいつるはし [+%{_plus}%] &6&l|]]&m====" with lore "&6&l&m--==__&6&l[| &3&lItem Stats &6&l|]&m__==--" and "&e&l採掘力&7: &a&l+%1+{_plus}%" and "&b&l強化値&7: &a&l%{_plus}%" and "&c&l強化上限&7: &a&l%{_maxplus}%" and "&d&l解放&7: &a&l%{_liberation}%"
- else:
- give arg-5 wood pickaxe named "&6&l&m====&6&l[[| &e&lぼろいつるはし &6&l|]]&m====" with lore "&6&l&m--==__&6&l[| &3&lItem Stats &6&l|]&m__==--" and "&e&l採掘力&7: &a&l+1" and "&b&l強化値&7: &a&l%{_plus}%" and "&c&l強化上限&7: &a&l%{_maxplus}%" and "&d&l解放&7: &a&l%{_liberation}%"
- else if arg-1 is "ふつう":
- if {_plus} >= 1:
- give arg-5 stone pickaxe named "&6&l&m====&6&l[[| &e&lふつうのつるはし [+%{_plus}%] &6&l|]]&m====" with lore "&6&l&m--==__&6&l[| &3&lItem Stats &6&l|]&m__==--" and "&e&l採掘力&7: &a&l+%5+{_plus}*5%" and "&b&l強化値&7: &a&l%{_plus}%" and "&c&l強化上限&7: &a&l%{_maxplus}%" and "&d&l解放&7: &a&l%{_liberation}%"
- else:
- give arg-5 stone pickaxe named "&6&l&m====&6&l[[| &e&lふつうのつるはし &6&l|]]&m====" with lore "&6&l&m--==__&6&l[| &3&lItem Stats &6&l|]&m__==--" and "&e&l採掘力&7: &a&l+5" and "&b&l強化値&7: &a&l%{_plus}%" and "&c&l強化上限&7: &a&l%{_maxplus}%" and "&d&l解放&7: &a&l%{_liberation}%"
- command /backpack:
- aliases: bp, enderchest, ec
- trigger:
- open ender chest of player to player
- command /ping <player=%player%>:
- trigger:
- message "&e&l%arg 1%'s Ping&7: &a&l%arg 1's ping%ms"
- command /trash:
- aliases: gomi
- trigger:
- open chest with 4 rows named "&lアイテム廃棄口" to player
- command /cpset <integer> <player=%player%>:
- permission: skript.cpset
- trigger:
- set {cp::%arg 2%} to arg 1
- command /apset <integer> <player=%player%>:
- permission: skript.cpset
- trigger:
- set {ap::%arg 2%} to arg 1
- on rightclick on a crafting table:
- cancel event
- if name of held item contains "つるはし":
- set {_line} to 3
- set {_plus} to line {_line} of lore of player's tool
- replace "&b&l強化値&7: &a&l" with "" in {_plus}
- set {_plus} to {_plus} parsed as integer
- set {_line} to 4
- set {_maxplus} to line {_line} of lore of player's tool
- replace "&c&l強化上限&7: &a&l" with "" in {_maxplus}
- set {_maxplus} to {_maxplus} parsed as integer
- set {_line} to 5
- set {_liberation} to line {_line} of lore of player's tool
- replace "&d&l解放&7: &a&l" with "" in {_liberation}
- set {_liberation} to {_liberation} parsed as integer
- if {_plus} < {_maxplus}:
- if name of held item contains "ぼろい":
- set {_cost} to 100 * (2 * {_plus})
- if player is sneaking:
- if {_cost} <= {cp::%player%}:
- remove 1 of player's tool from player
- remove {_cost} from {cp::%player%}
- add 1 to {_plus}
- give player wood pickaxe named "&6&l&m====&6&l[[| &e&lぼろいつるはし [+%{_plus}%] &6&l|]]&m====" with lore "&6&l&m--==__&6&l[| &3&lItem Stats &6&l|]&m__==--" and "&e&l採掘力&7: &a&l+%1+{_plus}%" and "&b&l強化値&7: &a&l%{_plus}%" and "&c&l強化上限&7: &a&l%{_maxplus}%" and "&d&l解放&7: &a&l%{_liberation}%"
- else:
- message "&b&l採掘ポイントが足りません 必要:%{_cost}%"
- else:
- message "&b&l強化値%{_plus}%→%{_plus}+1% 必要:%{_cost}% スニークしながら右クリックで強化"
- else:
- message "&c&l強化上限です"
- else:
- message "&b&lつるはしをもってください"
- on rightclick on a furnace:
- cancel event
- if name of held item contains "つるはし":
- set {_line} to 3
- set {_plus} to line {_line} of lore of player's tool
- replace "&b&l強化値&7: &a&l" with "" in {_plus}
- set {_plus} to {_plus} parsed as integer
- set {_line} to 4
- set {_maxplus} to line {_line} of lore of player's tool
- replace "&c&l強化上限&7: &a&l" with "" in {_maxplus}
- set {_maxplus} to {_maxplus} parsed as integer
- set {_line} to 5
- set {_liberation} to line {_line} of lore of player's tool
- replace "&d&l解放&7: &a&l" with "" in {_liberation}
- set {_liberation} to {_liberation} parsed as integer
- if name of held item contains "ぼろい":
- if {_plus} >= 9:
- set {_plus} to 0
- set {_maxplus} to 9
- set {_liberation} to 0
- set {_cost} to 5000
- if player is sneaking:
- if {_cost} <= {cp::%player%}:
- remove 1 of player's tool from player
- remove {_cost} from {cp::%player%}
- give player stone pickaxe named "&6&l&m====&6&l[[| &e&lふつうのつるはし [+%{_plus}%] &6&l|]]&m====" with lore "&6&l&m--==__&6&l[| &3&lItem Stats &6&l|]&m__==--" and "&e&l採掘力&7: &a&l+%5+{_plus}*5%" and "&b&l強化値&7: &a&l%{_plus}%" and "&c&l強化上限&7: &a&l%{_maxplus}%" and "&d&l解放&7: &a&l%{_liberation}%"
- else:
- message "&b&l採掘ポイントが足りません 必要:%{_cost}%"
- else:
- message "&b&l進化 必要:%{_cost}% スニークしながら右クリックで進化"
- else:
- message "&b&l強化値がたりません 必要:9"
- else:
- message "&b&lつるはしをもってください"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement