Help Required with Custom Recipes in Skript-Reflect

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

Aquatikss

Member
Jul 17, 2024
3
0
1
25
my current code btw:

Code:
import:
    org.bukkit.inventory.ShapedRecipe
    org.bukkit.inventory.ItemStack
    org.bukkit.Material
    org.bukkit.NamespacedKey
    org.bukkit.Bukkitcommand

/shapedrecipe:
    trigger:
        set {_result} to new ItemStack(Material.DIAMOND_BLOCK, 1)
        set {_key} to new NamespacedKey(Bukkit.getPluginManager().getPlugin("skript"), "custom_diamond_block")
        set {_recipe} to new ShapedRecipe({_key}, {_result})
        {_recipe}.shape("DDD", "   ", "   ")
        {_recipe}.setIngredient('D', Material.DIAMOND)
        Bukkit.addRecipe({_recipe})
        send "Shaped recipe added for a diamond block!" to player
 
Last edited:
LMAO, did you even read that yourself? It clearly states "%itemtype%", i need "%itemstack%" and before you say use TuSke, its outdated and doesn't work on 1.20.6...
 
  • Sad
Reactions: MrGametop1
LMAO, did you even read that yourself? It clearly states "%itemtype%", i need "%itemstack%" and before you say use TuSke, its outdated and doesn't work on 1.20.6...
buddy, he tried to help you, no need to be a bitch about it...

also, you didn't even specify what was wrong with the code...

you also didn't say why it needs to be an itemstack...
 
  • Like
Reactions: MrGametop1
buddy, he tried to help you, no need to be a bitch about it...

also, you didn't even specify what was wrong with the code...

you also didn't say why it needs to be an itemstack...
No worries.

1730658200163.png

1730658240331.png

LMAO, did you even read that yourself? It clearly states "%itemtype%", i need "%itemstack%" and before you say use TuSke, its outdated and doesn't work on 1.20.6...

Is this what you are seeking?
 
Last edited: