Jump to content

How to Create Custom Enchantments?


AbioticTitan947

Recommended Posts

Hello, To my  knowledge you would most likely have to base this off of the lore on an item. To my understanding this would be done by checking the lore on a players item every time it changes. something like: 
 

On tool change:
	if lore of event item contains "colored name of enchant"
		#do stuff


Please let me know if this helped! 😄

Contact Me

eMACulate#6759

My Ingame Ranks So Far

Default

VIP

Need Help?

Just add my discord and ask away! 😄

 

Link to comment
Share on other sites

If  you wish to add levels then you should be able to find a website or  another forum post that allows you to parse  numbers from a colored piece of text in order to change something within your custom enchant, all you have to do is a little bit of research 🙂

Contact Me

eMACulate#6759

My Ingame Ranks So Far

Default

VIP

Need Help?

Just add my discord and ask away! 😄

 

Link to comment
Share on other sites

on mine: #Haste
	if lore of player's item contains "&fHaste I":
		chance of 5%:
			apply haste 1 to player for 5 seconds
	if lore of player's item contains "&fHaste II":
		chance of 10%:
			apply haste 1 to player for 5 seconds
	if lore of player's item contains "&fHaste III":
		chance of 20%:
			apply haste 1 to player for 5 seconds

image.png.7a94f3f669ca7a5445ee032ce94cfd0d.png

I have tried this but it won't work

why

Link to comment
Share on other sites

on mine: #Haste
	if lore of player's item contains "&5&m&fHaste I":
		chance of 5%:
			apply haste 1 to player for 5 seconds
	if lore of player's item contains "&5&m&fHaste II":
		chance of 10%:
			apply haste 1 to player for 5 seconds
	if lore of player's item contains "&5&m&fHaste III":
		chance of 20%:
			apply haste 1 to player for 5 seconds

This is ur fixed code, ur only problem is ur lore

 

Contact Me

eMACulate#6759

My Ingame Ranks So Far

Default

VIP

Need Help?

Just add my discord and ask away! 😄

 

Link to comment
Share on other sites

the purple one was an attempt to see if the problem was it wasn't counting the '&f' because it wasn't shown, and the one the skript checks for is right above it

also isn't &o italics and &m strikethrough? I cant remember but I thought it was like that

 

also, the problem was solved whdn I replaced "player's item" with "player's held item"

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