ServerEvents.tags('item', event => {
event.add('forge:ingots/titanium', 'cosmos:titanium_ingot')
event.add('forge:ingots/titanium', 'create_the_air_wars:titanium_ingot')
})
ServerEvents.recipes(event => {
event.shaped(
Item.of('vsch:magnet_boot', 1), // arg 1: output
[
' B ',
'A A', // arg 2: the shape (array of strings)
'A A'
],
{
A: 'minecraft:iron_ingot',
B: 'create_dd:magnet'
}
)
event.replaceInput(
{ input: 'cosmos:titanium_ingot' }, // Arg 1: the filter
'cosmos:titanium_ingot', // Arg 2: the item to replace
'#forge:ingots/titanium' // Arg 3: the item to replace it with
// Note: tagged fluid ingredients do not work on Fabric, but tagged items do.
)
})```
In-game this does absolutely nothing (im trying to merge the two different titaniums)
#Recipe won't change after I changed the tags for its input
3 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
You can write your code in a codeblock by typing it between the codeblock delimiters:
Note that these are backticks, not apostrophes
```js :arrow_left:
ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
``` :arrow_left:
This example will look like this:
ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})