Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on any movement:
- if block under Player is black wool:
- block under the event-block is log
- if {mat::1} is not set:
- set rf max hp of player to 1
- apply weakness 5 to the Player for 9999 seconds
- apply slow 5 to the Player for 9999 seconds
- apply nausea 5 to the Player for 9999 seconds
- broadcast "&8[&7System&8] &e%Player%&7が罠にかかりました"
- set block at event-block to white wool
- else:
- set {home} to location of {mat::1}
- teleport {mat::1} to Player
- teleport player to {home}
- delete {home}
- set rf max hp of {mat::1} to 1
- apply weakness 5 to the Player for 9999 seconds
- apply slow 5 to the Player for 9999 seconds
- apply nausea 5 to the Player for 9999 seconds
- broadcast "&8[&7System&8] &e%{mat::1}%&7が罠にかかりました"
- set block at event-block to white wool
- command /trap [<text>] [<Player>]:
- trigger:
- if arg 1 is "give":
- add black wool named "&atrap&8[&7上&8]" to the arg-2
- add log named "&atrap&8[&7下&8]" to the arg-2
- send "&8[&7System&8] &e%Player%&7にtrapを与えました"
- if arg 1 is "add":
- set {mat::1} to arg 2
- send "&8[&7System&8] &e%arg 2%&7に設定しました" to Player
- if arg 1 is "delete":
- delete {mat::1}
- send "&8[&7System&8] &7削除しました" to Player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement