#Changing An Output

16 messages · Page 1 of 1 (latest)

craggy night
#

I would like to change the output of a shaped crafting recipe from iron ingots to raw iron. I have tried a bunch of things from the wiki and by looking through a lot of code, but don't have a clue.

In detail, there's a shaped recipe that takes 8 mysticalagriculture:iron_essence and crafts them into 6 iron ingots. I want it to output 6 minecraft:raw_iron instead. And where does the script go, in server_scripts?

I apologize for bothering you, I'm an expert at CT but can't even figure out the simplest thing here.

brave plinthBOT
#

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

lost whale
#

you'll have to override that recipe

#

they use a custom recipe that isn't supported in kjs

#

and yes, the script in this case should go to server_scripts

craggy night
#

I guess I don't understand, I've tried adding a new recipe as well that changes to 7 input?

lost whale
#

send your script

craggy night
#

/script

#

onEvent
('recipes', event =>
{
event.shaped
('3x minecraft:raw_iron',
[
'SSS',
'S S',
'S S'
]
,
{
S: 'mysticalagriculture:iron_essence'
}
)
})

lost whale
#

??codeblock

thorn fulcrumBOT
# lost whale ??codeblock

You can write your code in a codeblock by typing it between the codeblock delimiters:

```js :arrow_left:

ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})

``` :arrow_left:

As an example, :arrow_up: will look like this:

ServerEvents.recipes(event => {
  event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
lost whale
#

you're using pre-1.19 syntax on 1.19

craggy night
#

Can you send me what I should be using, I'd be forever grateful

lost whale
#
ServerEvents.recipes(e => {
    e.shaped('3x minecraft:raw_iron', [
        'SSS',
        'S S',
        'S S'
    ], {
        S: 'mysticalagriculture:iron_essence'
    })
})
craggy night
#

Thanks

lost whale
#

:D