Solved On craft of netherite chestplate doesn't work

  • 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 community!

    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.
Jul 13, 2022
4
0
1
Hey,

Code:
On craft of diamond chestplate:
    cancel event
Works. Yet,
Code:
On craft of netherite chestplate:
    cancel event
doen't work. The reason for this is prob. because the netherite armour is made in the smithing table.
Already tried the docs but doens't seem to be on there.

Does anyone know the correct event for this?
[doublepost=1658431015,1657962428][/doublepost]If you think there is no event for this that would help aswell.
 
There is nothing I found regarding this which is official, but I threw this together with script-reflect:
Code:
import:
    org.bukkit.event.inventory.SmithItemEvent

on SmithItemEvent:
    if "%event.getCurrentItem()%" is "netherite chestplate":
        event.setCancelled(true)
 
Status
Not open for further replies.