#Skript disable crafting

1 messages · Page 1 of 1 (latest)

untold quest
#

How could i make a skript which disables a item being in a crafting table or anvil

#
on inventory click:
    if clicked item's name is "<#9E58FF>&lT<#A15DFF>&li<#A462FF>&lt<#A767FF>&la<#AA6CFF>&ln <#B076FF>&lP<#AD71FF>&li<#AA6CFF>&lc<#A767FF>&lk<#A462FF>&la<#A15DFF>&lx<#9E58FF>&le":
        if inventory type is anvil or crafting:
            send "&c You cannot use the <#9E58FF>&lT<#A15DFF>&li<#A462FF>&lt<#A767FF>&la<#AA6CFF>&ln <#B076FF>&lP<#AD71FF>&li<#AA6CFF>&lc<#A767FF>&lk<#A462FF>&la<#A15DFF>&lx<#9E58FF>&le in a crafting table or anvil."


``` current skript piece i need working
sudden fjord
lunar gale
#

Cant you just cancel the crafting event?

fresh marsh
#

there's an event called on craft I believe

lunar gale
#

Ye there is

hallow hornet
#

On craft of (item):
Cancel event
Send "you canot craft (item) on this server"

#

@untold quest

#

Should work i may have indented the lines wrong

coral tapir
#
On craft of mace:
  cancel event
  send "&cThis item is disabled in this server" to player