Jump to content

helmet unequip skript


sulf

Recommended Posts

14 hours ago, sulf said:

Hey, I want a skript that, with a command like /unequip, takes the item off a player's head and puts it into an available slot. Is that possible?

 

thanks for reading.

 

yes its very much possible.

command /unequip:
	trigger:
		if helmet slot of player is air:
			send "&cYou can't unequip nothing!" to player
			stop
		set {_item} to helmet slot of player
		if player has space for {_item}:
			set player's helmet slot to air
			give player {_item}
			send "&aUnequiped your helmet slot!" to player
			stop
		send "&cYou don't have enough space!" to player

 

  • Like 1

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...