Skip to content

Commit 7985e11

Browse files
Merge pull request #18 from dethstroek/master
Diamond Paxel to Netherite Paxel
2 parents 19b7833 + 014cfc5 commit 7985e11

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

7.85 KB
Loading
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// kubejs/server_scripts/example.js
2+
// This is just an example script to show off multiple types of recipes and removal methods
3+
// Supports /reload
4+
5+
// Listen to server recipe event
6+
onEvent('recipes', event => {
7+
// Add a smithing recipe that combines 2 items into one (in this case apple and gold ingot into golden apple)
8+
event.shapeless('kubejs:netherite_triple_ingot', ['3x minecraft:netherite_ingot'])
9+
event.smithing('easypaxellite:netherite_paxel', 'easypaxellite:diamond_paxel', 'kubejs:netherite_triple_ingot')
10+
})

kubejs/startup_scripts/script.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// priority: 0
2+
3+
console.info('Hello, World! (You will only see this line once in console, during startup)')
4+
5+
onEvent('item.registry', event => {
6+
// Register new items here
7+
// event.create('example_item').displayName('Example Item')
8+
event.create('netherite_triple_ingot').displayName('Netherite Triple Ingot').group('misc').maxStackSize(64)
9+
})
10+
11+
onEvent('block.registry', event => {
12+
// Register new blocks here
13+
// event.create('example_block').material('wood').hardness(1.0).displayName('Example Block')
14+
})

0 commit comments

Comments
 (0)