custom helmets

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

ChocoAura

Member
Jul 3, 2019
38
0
6
Is it possible to make a helmet that is not a regular item? For example, a white stained glass block to put on your head?
 
Is it possible to make a helmet that is not a regular item? For example, a white stained glass block to put on your head?
Yes, just set the player's helmet to the item you wish to be on their head.
 
Is it possible to make a helmet that is not a regular item? For example, a white stained glass block to put on your head?
This example regenerates wend you first install skript and I think this is what you are trying to do
Code:
#
# 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
 
Status
Not open for further replies.