Jump to content

rainbow glass helmet


kingVDS

Recommended Posts

options:
	rainbow: red stained glass or yellow stained glass or orange stained glass or pink stained glass or purple stained glass or green stained glass or blue stained glass

	item_name: &6&lRainbow Helmet # Name of the Helmet

	world: world # Name of the world that the Rainbow Helmet is going to be used on.

on right click:
	if player's held item is white stained glass named "{@item_name}":
		set player's helmet to player's tool
		set {rainbow::%player%} to true
		
every 1 second in world "{@world}":
	set {_p} to player
	loop all players:
		if {rainbow::%loop-player%} is true:
			set {_color} to random element out of {@rainbow}
			set helmet of {_p} to {_color} named "{@item_name}"

on armor unequip:
	if name of event-item is "{@item_name}":
		set {rainbow::%player%} to false
		

This might work, might not. I am not sure as I haven't tested it out. 

  • Thanks 1

 

Owner of play.hiveminez.net

 

⊱------------------------------⊰

Joined Minehut on 1/28/2021 (Same day I got Minecraft)

[VIP] - 3/14/2021

[LEGEND] - 5/27/2021

⊱------------------------------⊰

Discord - NotKaizo#0001

In-game name - iKaizo_

If you need any help, feel free to contact me.

Link to comment
Share on other sites

28 minutes ago, NotKaizo31 said:
options:
	rainbow: red stained glass or yellow stained glass or orange stained glass or pink stained glass or purple stained glass or green stained glass or blue stained glass

	item_name: &6&lRainbow Helmet # Name of the Helmet

	world: world # Name of the world that the Rainbow Helmet is going to be used on.

on right click:
	if player's held item is white stained glass named "{@item_name}":
		set player's helmet to player's tool
		set {rainbow::%player%} to true
		
every 1 second in world "{@world}":
	set {_p} to player
	loop all players:
		if {rainbow::%loop-player%} is true:
			set {_color} to random element out of {@rainbow}
			set helmet of {_p} to {_color} named "{@item_name}"

on armor unequip:
	if name of event-item is "{@item_name}":
		set {rainbow::%player%} to false
		
 

This might work, might not. I am not sure as I haven't tested it out. 

it gives 1 error but thats just unequip. It puts it on my head but doesent switch colors

the unequip error is cant understand this even on armor unequip

Edited by kingVDS
forgot the error
Link to comment
Share on other sites

22 minutes ago, kingVDS said:

it gives 1 error but thats just unequip. It puts it on my head but doesent switch colors

the unequip error is cant understand this even on armor unequip

Is the world correct? Because if its not then it won't work. The on armor unequip might need an addon. Try downloading SkBee if you don't have it.

 

Owner of play.hiveminez.net

 

⊱------------------------------⊰

Joined Minehut on 1/28/2021 (Same day I got Minecraft)

[VIP] - 3/14/2021

[LEGEND] - 5/27/2021

⊱------------------------------⊰

Discord - NotKaizo#0001

In-game name - iKaizo_

If you need any help, feel free to contact me.

Link to comment
Share on other sites

1 hour ago, NotKaizo said:

Is the world correct? Because if its not then it won't work. The on armor unequip might need an addon. Try downloading SkBee if you don't have it.

wdym is the world correct

Edited by kingVDS
doesent work with skbee
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...