Enchant Event Help

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

QuestLove

Member
Jul 24, 2018
15
0
0
29
Skript Version (do not put latest): Skript 2.2 (dev37c)
Skript Author: Bensku
Minecraft Version: 1.12.2

So I really want to do some stuff with enchanting but I'm really confused because apparantly 'on enchant' is an event that I can cancel but I can't see it at all in the skunity docs!

I just need to know what I can do with the event, I'd like to see how to check what enchantment was applied to the tool how much it cost and so on

code_language.skript:
on enchant:
  send "&cNo enchants for you :("
  cancel event
 
I wonder if its a Skript syntax or if its an add ons syntax.
If it's skript.... i dont see it in the Skript docs... so im wondering if it's an addon and its just not documented.
[doublepost=1534835376,1534835226][/doublepost]Okay I found it on Skript-Hub... it IS part of Skript, but for some odd reason, its not in Bensku's docs
https://skripthub.net/docs/?id=2587
 
I wonder if its a Skript syntax or if its an add ons syntax.
If it's skript.... i dont see it in the Skript docs... so im wondering if it's an addon and its just not documented.
[doublepost=1534835376,1534835226][/doublepost]Okay I found it on Skript-Hub... it IS part of Skript, but for some odd reason, its not in Bensku's docs
https://skripthub.net/docs/?id=2587
uh that's all I get? event-itemstack and event-player? I'd really like to know how to get the enchantments that were added through the enchant :L I want to be able to add on to them or edit aditional enchants so I can add custom enchantments and such
 
i think the skellett enchantment event will be able to do that kind of stuff.
If that isn't what you want you might have to do it in skript mirror
 
but isn't the skellet stuff on enchant prepair so it is called when you put the items into an enchantment item not when you enchant them?
 
I was testing the skellet stuff before looking for the enchant event and it triggers every time I add an item to an enchantment table rather than when I enchant it
 
Status
Not open for further replies.