How do I cancel crafting with custom items?

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

Skzen

Member
Jun 15, 2017
15
1
0
Hello,

I want to stop my players from using custom items to craft.
Let's say they want to craft a bucket using a iron ingot named "fake iron"
How do I stop my players from crafting the bucket

Many thanks
 
After researching the topic further, I found that it's not possible to overwrite a single default crafting recipe without removing all recipes in the game, unfortunately. I'm going to try a different work-around for the issue.
[doublepost=1498791952,1498789223][/doublepost]After looking around, I found that TuSKe does a lot of recipe stuff, but I was unfortunately unable to get it to work.
 
Hello,

I want to stop my players from using custom items to craft.
Let's say they want to craft a bucket using a iron ingot named "fake iron"
How do I stop my players from crafting the bucket

Many thanks

Disclaimer: i didn't test iT if you have any errors just reply.

Try this: (crafting 2x2 in inventory)

code_language.skript:
on crafting click in slot 0, 1, 2 or 3:
   If name of player's cursor item contains "fake iron":
      Message "this item isn't allowed"
      Cancel event

Try this: (crafting table)

code_language.skript:
On inventory Click:
   If clicked inventory is "crafting":
      If name of player's cursor item is "fake iron":
         Message "this item isn't allowed"
         Cancel event
 
Last edited by a moderator:
it doesn't work :/ I have SkRayFall installed but it doesn't understand "if name of the players cursor item"
 
Status
Not open for further replies.