#how do i make the crafting result an enchanted custom tagged item?

28 messages · Page 1 of 1 (latest)

boreal moss
#

right now i have this, but the problem is obviously "{Enchantments:[{}],Tags:enchanted_carrot}", ), ", how could i make this work???

event.shapeless(
Item.of("minecarft:carrot{Enchantments:[{}],Tags:enchanted_carrot}" ),
[
"9x kubejs:stacked_carrots"
]
),

scenic falconBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

formal blade
boreal moss
#

so i just add this in the end?

formal blade
#

yes, that's all

boreal moss
#

uhhhh

#

it shows the same error

formal blade
#

attach full script and server log

pulsar zephyrBOT
#

Please send your KubeJS server log. It can be found at /minecraft/logs/kubejs/server.log.
If you are on 1.18 or 1.16 it will be called server.txt.
Please send the file directly, without links or snippets.

boreal moss
pulsar zephyrBOT
#

Paste version of carrots.js, message.txt from @boreal moss

formal blade
#

my god

boreal moss
#

:/

#

wut

formal blade
#

try this

#
ServerEvents.recipes(event => {

    event.shapeless(
        Item.of("minecraft:carrot", 9),
        [
            "kubejs:stacked_carrots"
        ]
    )
    event.shapeless(
        Item.of("kubejs:stacked_carrots", 1),
        [
            "9x minecraft:carrot"
        ]
    )

    event.shapeless(
        Item.of("minecarft:carrot{Enchantments:[{}],Tags:enchanted_carrot}").strongNBT(),
        [
            "9x kubejs:stacked_carrots"
        ]
    )

})
boreal moss
pulsar zephyrBOT
#

Paste version of message.txt from @boreal moss

formal blade
#

where did u get this item?

boreal moss
#

wdym

formal blade
#

literally

#

u cant enchant carrot, usually

boreal moss
#

yea, but can i just make it so it seems like its enchanted

formal blade
#

in first: its is minecraft, not minecARFT
in second: i think this place [{}] cant be empty
i third: "T" is not allowed in [a-z0-9/._-] character class (Tags:enchanted_carrot)

boreal moss
#

so... how do i do this :/

#

could i theoretically make a different item that is the same texture as a carrot but looks enchanted?

formal blade
#

no idea

boreal moss
#

Ok, thx anyway