[SKBEE] Custom model data on custom 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!

Realraddid

Member
Jun 22, 2025
2
0
1
No recipe being created in game paper 1.21.5

Code :
Code:
on first join:
    execute console command "/minecraft:recipe give %player% custom:elder-blade"

on skript load:
    set {_i} to netherite sword
    set custom model data of {_i} to 1205
    enchant {_i} with sharpness 10
    enchant {_i} with unbreaking 5
    set name of {_i} to "&6&lELDER &8&lBLADE"

    register shaped recipe:
        id: "custom:elder-blade"
        result: {_i}
        shape: "aba", " c ", "aba"
        group: "customPvP"
        category: "equipment"
        ingredients:
            set ingredient of "a" to netherite ingot
            set ingredient of "b" to diamond block
            set ingredient of "c" to wooden sword
 
No recipe being created in game paper 1.21.5

Code :
Code:
on first join:
    execute console command "/minecraft:recipe give %player% custom:elder-blade"

on skript load:
    set {_i} to netherite sword
    set custom model data of {_i} to 1205
    enchant {_i} with sharpness 10
    enchant {_i} with unbreaking 5
    set name of {_i} to "&6&lELDER &8&lBLADE"

    register shaped recipe:
        id: "custom:elder-blade"
        result: {_i}
        shape: "aba", " c ", "aba"
        group: "customPvP"
        category: "equipment"
        ingredients:
            set ingredient of "a" to netherite ingot
            set ingredient of "b" to diamond block
            set ingredient of "c" to wooden sword
i slightly modified it and it worked in game, i don't have a texture set to double check the custom model data, but try this:
(im in paper 1.21.5)
No recipe being created in game paper 1.21.5

Code :
Code:
on join:
    execute console command "/minecraft:recipe give %player% custom:elder-blade"

on skript load:
    set {_i} to netherite sword with custom model data 1205
    enchant {_i} with sharpness 10
    enchant {_i} with unbreaking 5
    set name of {_i} to "&6&lELDER &8&lBLADE"

    register shaped recipe:
        id: "custom:elder-blade"
        result: {_i}
        shape: "aba", " c ", "aba"
        group: "customPvP"
        category: "equipment"
        ingredients:
            set ingredient of "a" to netherite ingot
            set ingredient of "b" to diamond block
            set ingredient of "c" to wooden sword