smodusermc's picture
download
raw
820 Bytes
#
# Adds a command that allows player's to wear any kind of block as a hat.
# You could add a condition to allow only certain blocks to be worn if you want to.
#
command /head <material>:
description: wear a block as helmet/head
aliases: hat
usage: /head <material>
permission: skript.hat
trigger:
id of argument 1 is greater than 255:
message "You cannot wear an item, only blocks"
stop trigger
player doesn't have argument 1:
player doesn't have the permission "skript.hat.free":
message "You do not have a %argument 1% you could wear!"
stop trigger
helmet slot of player is not empty:
message "You're already wearing a helmet"
stop trigger
player doesn't have the permission "skript.hat.free":
remove argument 1 from player
equip player with argument 1

Xet Storage Details

Size:
820 Bytes
·
Xet hash:
6c0319a2e6363a5ed12d3071e7ed92534bab7e2b98d180297f8fd47c610f901e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.