Jump to content

Exchange Levels For Items


Macky

Recommended Posts

I was wondering if it was possible to make a Skript that when you Right Click a Lime Green Shulker Box with 30 exp levels or up it will give you Lime Green Dye named "&a&lXp Token" and it has a 20% chance to give 3 "&a&lXp Token" 30% chance 2 "&a&lXp Token" 50% chance 1 "&a&lXp Token"

When you Right Click the Shulker Box make it take away your exp levels randomly like 1, 3, 4, 10 etc. Whatever you think is best.

Edited by YTmackygames
Link to comment
Share on other sites

3 hours ago, YTmackygames said:

I was wondering if it was possible to make a Skript that when you Right Click a Lime Green Shulker Box with 30 exp levels or up it will give you Lime Green Dye named "&a&lXp Token" and it has a 20% chance to give 3 "&a&lXp Token" 30% chance 2 "&a&lXp Token" 50% chance 1 "&a&lXp Token"

When you Right Click the Shulker Box make it take away your exp levels randomly like 1, 3, 4, 10 etc. Whatever you think is best.

I don't know if u meant this but here you go

on right click on lime shulker box:
	if {level::%player's uuid%} >= 30:
		remove 10 from {level::%player's uuid%}
		give player lime dye named "&a&lXp Token"
			
on right click with lime dye:
	chance of 20%:
		give player 3 lime dye named "&a&lXp Token"
	chance of 30%:
		give player 2 lime dye named "&a&lXp Token"
	chance of 50%:
		give player 1 lime dye named "&a&lXp Token"

 

I used to play Minehut I guess?
Yeah, I still watch the forums for some reason. (15/5/2023)
Link to comment
Share on other sites

17 hours ago, pizzaschut said:

I don't know if u meant this but here you go

on right click on lime shulker box:
	if {level::%player's uuid%} >= 30:
		remove 10 from {level::%player's uuid%}
		give player lime dye named "&a&lXp Token"
			
on right click with lime dye:
	chance of 20%:
		give player 3 lime dye named "&a&lXp Token"
	chance of 30%:
		give player 2 lime dye named "&a&lXp Token"
	chance of 50%:
		give player 1 lime dye named "&a&lXp Token"

 

That is what I'm looking for is there also any way that someone can left click it and they can view the lime dye with the chances of the lime dye as the lore?

And is there anyway to add a permission so someone can right click the shulker in a world guarded area?

Edited by YTmackygames
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...