Skip to main content Link Menu Expand (external link) Document Search Copy Copied

This page contains examples only, with no comments in the code. All examples here are exact copies of vanilla Create recipes as they are in-game, with the only difference being that this is implemented with KubeJS. Individual recipes are spaced out only for the sake of legibility.

This was written with KJS 6.1 in mind as of July 24th, 2023.

Another option is to go to the Create Customized repository on my GitHub for better syntax colors and viewing.

Create Customized - create.js

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
ServerEvents.recipes(event => {
    event.shaped('create:andesite_alloy', [
        'NA',
        'AN'
    ], {
        N: 'minecraft:iron_nugget',
        A: 'minecraft:andesite'
    }).id('create:crafting/materials/andesite_alloy')

    event.shaped('create:andesite_alloy', [
        'NA',
        'AN'
    ], {
        N: 'create:zinc_nugget',
        A: 'minecraft:andesite'
    }).id('create:crafting/materials/andesite_alloy_from_zinc')

    event.shapeless('create:depot', [
        'create:andesite_alloy',
        'create:andesite_casing'
    ]).id('create:crafting/kinetics/depot')

    event.shaped('8x create:shaft', [
        'A',
        'A'
    ], {
        A: 'create:andesite_alloy'
    }).id('create:crafting/kinetics/shaft')

    event.shapeless('create:cogwheel', [
        'create:shaft',
        '#minecraft:planks'
    ]).id('create:crafting/kinetics/cogwheel')

    event.shapeless('create:large_cogwheel', [
        'create:cogwheel',
        '#minecraft:planks'
    ]).id('create:crafting/kinetics/large_cogwheel_from_little')

    event.shapeless('create:large_cogwheel', [
        'create:shaft',
        '#minecraft:planks',
        '#minecraft:planks'
    ]).id('create:crafting/kinetics/large_cogwheel')

    event.shaped('create:wrench', [
        'GG',
        'GC',
        ' S'
    ], {
        G: '#forge:plates/gold',
        C: 'create:cogwheel',
        S: '#forge:rods/wooden'
    }).id('create:crafting/kinetics/wrench')

    event.recipes.createMechanicalCrafting('2x create:crushing_wheel', [
        ' AAA ',
        'AAPAA',
        'APSPA',
        'AAPAA',
        ' AAA '
    ], {
        A: 'create:andesite_alloy',
        P: '#minecraft:planks',
        S: '#forge:stone'
    }).id('create:mechanical_crafting/crushing_wheel')

    event.recipes.createSequencedAssembly([
        Item.of('create:precision_mechanism').withChance(120.0),
        Item.of('create:golden_sheet').withChance(8.0),
        Item.of('create:andesite_alloy').withChance(8.0),
        Item.of('create:cogwheel').withChance(5.0),
        Item.of('minecraft:gold_nugget').withChance(3.0),
        Item.of('create:shaft').withChance(2.0),
        Item.of('create:crushed_raw_gold').withChance(2.0),
        'minecraft:iron_ingot',
        'minecraft:clock'
    ], 'create:golden_sheet', [
        event.recipes.create.deploying('create:incomplete_precision_mechanism', ['create:incomplete_precision_mechanism', 'create:cogwheel']),
        event.recipes.create.deploying('create:incomplete_precision_mechanism', ['create:incomplete_precision_mechanism', 'create:large_cogwheel']),
        event.recipes.create.deploying('create:incomplete_precision_mechanism', ['create:incomplete_precision_mechanism', '#forge:nuggets/iron'])
    ]).transitionalItem('create:incomplete_precision_mechanism').loops(5).id('create:sequenced_assembly/precision_mechanism')

    event.recipes.createCrushing([
        'create:powdered_obsidian',
        Item.of('minecraft:obsidian').withChance(0.75)
    ], 'minecraft:obsidian').processingTime(500).id('create:crushing/obsidian')

    event.recipes.createSequencedAssembly([
        'create:sturdy_sheet'
    ], 'create:powdered_obsidian', [
        event.recipes.createFilling(['create:unprocessed_obsidian_sheet'], ['create:unprocessed_obsidian_sheet', Fluid.of('minecraft:lava', 500)]),
        event.recipes.createPressing('create:unprocessed_obsidian_sheet', 'create:unprocessed_obsidian_sheet'),
        event.recipes.createPressing('create:unprocessed_obsidian_sheet', 'create:unprocessed_obsidian_sheet')
    ]).transitionalItem('create:unprocessed_obsidian_sheet').loops(1).id('create:sequenced_assembly/sturdy_sheet')

    event.recipes.createFilling([
        'minecraft:redstone'
    ], [
        'create:cinder_flour'
        Fluid.of('create:potion', 25, '{ Bottle: "REGULAR", Potion: "minecraft:strength" }')
    ]).id('create:filling/redstone')
})