Jump to content

offhand skript for bedrock players and 1.8 players


aabss

Recommended Posts

tell me if there are problems

options:
	messages: true #set to false if you don't want a message to send when command is executed

command offhand:
	trigger:
		if player's offhand is air:
			if player's tool is air:
				if {@messages} is true:
					send "&cPlease hold something!" to player
			else:
				set player's offhand tool to player's tool
				clear player's tool
				if {@messages} is true:
					send "&aSuccessfully set your offhand to &e%player's offhand tool%&a!" to player
		else:
			if player's tool is air:
				set {offhand::%player's uuid%} to player's offhand tool
				set player's offhand tool to player's tool
				set player's tool to {offhand::%player's uuid%}
				if {@messages} is true:
					send "&aSuccessfully removed &e%{offhand::%player's uuid%}% &afrom your offhand!" to player
				delete {offhand::%player's uuid%}
			else:
				set {offhand::%player's uuid%} to player's offhand tool
				if {@messages} is true:
					send "&aSuccessfully replaced &e%{offhand::%player's uuid%}% &awith &e%player's tool%&a!" to player
				set player's offhand tool to player's tool
				set player's tool to {offhand::%player's uuid%}
				delete {offhand::%player's uuid%}


 

no addons needed just skript

 

 

 

offhand.sk

Edited by aabss
  • Like 1
Link to comment
Share on other sites

  • 4 months later...

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...