This commit is contained in:
2024-03-31 01:43:30 +01:00
parent f0a8306e5e
commit 2ee1c5ffa7
9 changed files with 175 additions and 3 deletions

View File

@@ -4,3 +4,29 @@
console.info('Hello, World! (Loaded server scripts)')
ServerEvents.recipes(event => {
console.log('Hello! The recipe event has fired!')
//SHAPED
event.shaped('minecraft:totem_of_undying', [// arg 1: output
'NNN',
'EIE ', // arg 2: the shape (array of strings)
'RNR'
], {
R: 'minecraft:blaze_rod',
N: 'create:brass_nugget',
E: 'minecraft:emerald', //arg 3: the mapping object
I: 'create:brass_ingot'
}
)
//SHAPELESS
event.shapeless('minecraft:blaze_rod', [ // arg 1: output
'6x minecraft:blaze_powder'
])
// Cook 4 blaze_powder into 1 blaze_rod in a Furnace:
event.smelting('minecraft:blaze_rod', '4x minecraft:blaze_powder')
// Cook 1 stone into 3 gravel in a Furnace:
//event.smelting('3x minecraft:gravel', 'minecraft:stone')
})