Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on sign change:
- line 1 is "cp"
- line 2 is "player"
- set line 1 to "&l&aCheckPoint"
- set line 2 to "&2RightClick"
- set line 4 to "&5On &5gGround
- on rightclick:
- clicked block is sign
- if line 4 of clicked block is "&7Player":
- if player is on ground:
- delete {checkpoint.%world%.%UUID of player%}
- wait a tick
- set {checkpoint.%world%.%UUID of player%} to location of player
- message "&7[&aTM&6CheckPoint&7] &aチェックポイントを設定しました。&7(%{name}%)"
- command "/execute %player% ~ ~ ~ playsound minecraft:entity.player.levelup master %player%"
- stop
- else:
- message "&7[&aTM&6CheckPoint&7] &l&c空中でチェックポイントを設定することは出来ません。"
- stop
- on rightclick with fire charge:
- cancel event
- if clicked block is sign:
- stop
- if {checkpoint.%world%.%UUID of player%} is set:
- teleport player to {checkpoint.%world%.%UUID of player%}
- command /cpd:
- description: Delete <player>'s checkpoint
- executable by: players
- trigger:
- delete {checkpoint.%world%.%UUID of player%}
- message "&cチェックポイントが削除されました。"
- on walking on block of coal:
- player's gamemode is adventure or survival
- delete {checkpoint.%world%.%UUID of player%}
- teleport player to block at world's spawn point
- message "&cチェックポイント削除。スポーンへTPされました。"
- command /adcps:
- description: Set player's ckeckpoint
- executable by: players
- trigger:
- player has permission "skript.admin"
- set {checkpoint.%world%.%UUID of player%} to location of player
- message "&6チェックポイントを設定しました!"
- play raw sound "note.pling" at player with pitch 2 volume 1
- command /item:
- trigger:
- if player do not have fire charge named "&r&6Go to checkpoint":
- give fire charge named "&r&6Go to checkpoint" to player
- if player do not have slimeball named "&r&6Go to spawn point":
- give slimeball named "&r&6Go to spawn point" to player
- command /cp:
- aliases: checkpoint
- trigger:
- if {checkpoint.%world%.%UUID of player%} is not set:
- message "&cチェックポイントが設定されていません!"
- on damage:
- y-coordinate of victim is less than 0
- cancel event
- if {checkpoint.%victim%.%world%} is not set:
- teleport victim to block at world's spawn point
- else:
- teleport victim to {checkpoint.%victim%.%world%}
- command /cptp <text> [<world>]:
- permission: skript.admin
- trigger:
- if arg 2 is not set:
- if {checkpoint.%arg 1%.%world%} is not set:
- message "checkpoint is not set"
- else:
- teleport player to {checkpoint.%arg 1%.%world%}
- else:
- if {checkpoint.%arg 1%.%arg 2%} is not set:
- message "checkpoint is not set"
- else:
- teleport player to {checkpoint.%arg 1%.%arg 2%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement