custom recipes dont 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 comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Aug 18, 2023
18
1
3
16
so i made a few custom recipes and only one has worked. the syntax is exactly the same but i just changed the item, name and recipe.

Code:
on load:
    register new shaped recipe for diamond of mending 1 named "&b&lCompressed Diamond" using diamond block, diamond block, diamond block, diamond block, diamond block, diamond block, diamond block, diamond block and diamond block with id "1"

on load:
    register new shaped recipe for blaze rod of mending 1 named "&6&lFire Rod" using blaze rod, diamond block, blaze rod, netherite ingot, blaze rod, netherite ingot, blaze rod, diamond block and blaze rod with id "1"

NOTE: the blaze rod recipe works.
 
found the issue: some code has conflict with the diamond recipe thing

heres what breaks it:

Code:
every 1 second:
    loop all players:
        if name of loop-player's offhand item is "&6&lFire Rod":
            apply potion of fire resistance of tier 1 to loop-player for 1 second replacing existing effect
\

and dont tell me "oh dont use periodic syntax to do this its not optimal and it causes lag" i know it causes lag and when i did on load: when player is online: it didnt work so there.

if anyone knows why theres conflict please tell me
plus its every 20 ticks its not a big deal
 
found the issue: some code has conflict with the diamond recipe thing

heres what breaks it:

Code:
every 1 second:
    loop all players:
        if name of loop-player's offhand item is "&6&lFire Rod":
            apply potion of fire resistance of tier 1 to loop-player for 1 second replacing existing effect
\

and dont tell me "oh dont use periodic syntax to do this its not optimal and it causes lag" i know it causes lag and when i did on load: when player is online: it didnt work so there.

if anyone knows why theres conflict please tell me
plus its every 20 ticks its not a big deal
On swapping of hand item?
 
WAIT A SECOND. THERE IS NO REASON WHATSOEVER TO USE TWO on load: THINGYKABOBS. THIS REASON IS PROBABLY WHY YOUR CODE ISN'T WORKING. USE ONE. NOT 5, NOT 2, NOT 100, ONE.