Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /home <text> [<number>]:
- trigger:
- if arg-1 is "select":
- open chest with 1 rows named "&6Home Select" to player
- if {%player%.Home1} is location:
- format slot 2 of player with 1 of any_oak_wooden_logs_item named "%player%.Home1" to run [make player execute command "home menu 1"]
- else:
- format slot 2 of player with 1 of barrier named "&cHomeを作成してください" to run [message "&c/home createでHomeをセットしてください。"]
- if arg-1 is "create":
- if arg-2 is 1:
- set {%player%.Home1} to location of player
- message "Home1を現在地点にセットしました"
- if arg-1 is "teleport":
- if arg-2 is 1:
- teleport player to {%player%.Home1}
- if arg-1 is "coord":
- if arg-2 is 1:
- message "Home1の座標は%{%player%.Home1}%です"
- if arg-1 is "delete":
- if arg-2 is 1:
- clear {%player%.Home1}
- message "Home1を削除しました"
- if arg-1 is "menu":
- if arg-2 is 1:
- open chest with 1 rows named "&6Home Menu" to player
- if {%player%.Home1} is location:
- format slot 1 of player with 1 of oak_wooden_plank named "teleport" to run [make player execute command "home teleport 1"]
- format slot 3 of player with 1 of oak_wooden_plank named "coord" to run [make player execute command "home coord 1"]
- format slot 5 of player with 1 of oak_wooden_plank named "delete" to run [make player execute command "home delete 1"]
- else:
- message "&c/menu createでHomeをセットしてください。"
- command /wtfitem:
- trigger:
- message "&7Your tool is &6%player's tool%&7."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement