Solved i wanna remove 'Fireworks' recipe.

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

donghan kim

New Member
Sep 7, 2018
9
0
1
26
[template=page-headers]
| title = Remove (or Disable) Craft fireworks.
| subheading = Help Us, Help You
[/template]


Layout:

Skript Version (do not put latest): Skript 2.2 (dev34)
Skript Author: Bensku
Minecraft Version: 1.12.2
---
Full Code:

code_language.skript:
command /skunity:
on craft of fireworks:
    cancel the event
    message " "
    message "&6[MKC]&f &f You &cCANNOT &fcraft this item."
    message "&6[MKC]&f &f You can buy this item!&a use&l /shop."
    message " "

Errors on Reload:

IT IS NOT WORK WELL...

Another item's ban (like observer, hopper etc...) is working, but firework's craft ban IS NOT working..

Console Errors: (if applicable)

Other Useful Info:

Addons using (including versions):
sharpSK 1.6.3
skDragon
skllett 1.9.6b
SkQuery
skRayFall
skUtilities
TuSKe
SKCompat-2.1.0
SkStuff
SkAction 2.2

Troubleshooting:

Have you tried searching the docs? Yes
Have you tried searching the forums? No
What other methods have you tried to fix it? I have tried to downgrade my Skript version and still doesn't work.
[template=footer][/template]
 
Honestly that is very weird that doesn't work
I tested the same method with paper, and it works, but fireworks it does not.
I have a quick little fix
code_language.skript:
on craft:
    if event-item is firework rocket:
        cancel event
        message " "
        message "&6[MKC]&f &f You &cCANNOT &fcraft this item."
        message "&6[MKC]&f &f You can buy this item!&a use&l /shop."
        message " "
 
  • Like
Reactions: donghan kim
Honestly that is very weird that doesn't work
I tested the same method with paper, and it works, but fireworks it does not.
I have a quick little fix
code_language.skript:
on craft:
    if event-item is firework rocket:
        cancel event
        message " "
        message "&6[MKC]&f &f You &cCANNOT &fcraft this item."
        message "&6[MKC]&f &f You can buy this item!&a use&l /shop."
        message " "



Thank you very much.
 
Status
Not open for further replies.