Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /hat:
- aliases: head
- trigger:
- if player is holding air:
- send "&c手にアイテムを持っていません"
- stop
- if player is not holding air:
- set {_hat1} to player's helmet
- wait 1 tick
- set {_hat2} to 1 of player's tool
- remove {_hat2} from player's inventory
- equip player with {_hat2}
- give {_hat1} to player
- message "&6帽子を装備しました"
Add Comment
Please, Sign In to add comment