Solved Custom Recipe 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 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.

ShaneBee

Supporter +
Addon Developer
Sep 7, 2017
2,248
241
73
Vancouver, Canada
Hey Guys

So I have been using SkQuery to make custom recipes.
I want to start making custom recipes with custom items.

For instance, my C4 Skript, i have made "Grenade"
Now I want to make a level 2 grenade, that would use the original grenade as an ingredient in the recipe.

I had messaged LimeGlass about adding custom items in recipes into SkQuery and he told me to look at Tuske for recipes.

I looked at the syntax and I am confused, because all I see is how to "get" recipes not how to create them.

Does anyone know how to create custom recipes with custom items?

Thanks in advance for your help
 
OH Awesome, thanks Donut, that really helps :emoji_slight_smile:
[doublepost=1522696570,1522695466][/doublepost]Ok, so ran into an issue... so i created my grenade recipe,
which is a poisonous potato named grenade
that works fine and dandy, but now when i try create my stun grenade recipe, using a grenade as an ingredient,
it allows me to craft a stun grenade using a regular old poisonous potato.

Here is my code, am I missing something?

code_language.skript:
register new shaped recipe with return 1 poisonous potato named "&9Stun Grenade" using poisonous potato named "&9Grenade" and arrow with shape "ab"
 
hm i thought it would work because it says "As Bukkit doesn't let you to use ingredients with custom names, lore, nbt, I'm doing it for myself. So far, only shaped and shapeless recipes is working partially fine."

i guess youll have to do something with the craft event and %items in player's current inventory%
 
hm i thought it would work because it says "As Bukkit doesn't let you to use ingredients with custom names, lore, nbt, I'm doing it for myself. So far, only shaped and shapeless recipes is working partially fine."

i guess youll have to do something with the craft event and %items in player's current inventory%
I was thinking the same thing when I saw that, maybe ill post an issue on that page and see what happens,
for now I may just create a recipe that doesn't use previous custom items.

Thanks again for your help
 
it shouldnt be too hard to do it in the craft event just something like
code_language.skript:
on craft:
    if name of event-item is "Grenade 2":
       loop items in player's current inventory:
           if loop-item is poisonous potato:
               if name of loop-item is "Grenade 1":
                   stop
        cancel event
 
  • Like
Reactions: DoctorHyper
Status
Not open for further replies.