This commit is contained in:
2024-10-19 23:22:30 +02:00
parent f9d1538773
commit 5f18e64785
2 changed files with 35 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
ServerEvents.customCommand('patata', event => {
event.player.give(Item.of('kubejs:golden_potato', 64))
event.player.give(Item.of('kubejs:golden_potato', 1))
})
// ServerEvents.customCommand('paint', event => {
// event.player.give(Item.of('kubejs:golden_potato', 64))

View File

@@ -1,6 +1,20 @@
console.log("Starting server recipes");
ServerEvents.recipes(event => {
event.shaped("kubejs:golden_potato", [// arg 1: output
'RIR',
'IPI', // arg 2: the shape (array of strings)
'RIR'
], {
I: 'minecraft:gold_ingot',
R: 'minecraft:blaze_rod',
P: 'minecraft:potato', //arg 3: the mapping object
}
)
//SHAPED
event.shaped('minecraft:totem_of_undying', [// arg 1: output
'NCN',
@@ -26,6 +40,26 @@ ServerEvents.recipes(event => {
D: 'minecraft:diamond', //arg 3: the mapping object
}
)
event.shaped('kubejs:andesite_shears', [// arg 1: output
' A ',
'S A', // arg 2: the shape (array of strings)
' S '
], {
S: 'minecraft:stick',
A: 'create:andesite_alloy', //arg 3: the mapping object
}
)
event.shaped('kubejs:brass_shears', [// arg 1: output
' B ',
'S B', // arg 2: the shape (array of strings)
' S '
], {
S: 'create:brass_ingot',
A: 'create:andesite_alloy', //arg 3: the mapping object
}
)
//SHAPELESS
event.shapeless('minecraft:blaze_rod', [ // arg 1: output
'6x minecraft:blaze_powder'