O modzie KubeJS Create
- Integracja Create dla KubeJS. Ten mod pozwala dodawać i prawidłowo edytować przepisy moda Create w skryptach KubeJS. Wszystkie obsługiwane typy przepisów i przykłady znajdują się poniżej. Więcej informacji znajdziesz na stronie Recipes.
Obsługiwane typy przepisów:
- createCrushing
- createCutting
- createMilling
- createBasin
- createMixing (obsługuje .heated() i .superheated())
- createCompacting (obsługuje .heated() i .superheated())
- createPressing
- createSandpaperPolishing
- createSplashing (Bulk Washing)
- createDeploying
- createFilling
- createEmptying
Uwaga: Bulk Smoking = waniliowy typ przepisu smoking, a Bulk Blasting = waniliowy typ przepisu blasting.
event.recipes.createCrushing(output[], input[]) Output nie musi być tablicą. Może to być items lub fluids. Input nie musi być tablicą. Może to być ingredients lub Fluid.of('minecraft:water', 1000) lub {fluidTag: 'some:fluidtag', amount: 1000}
- createMechanicalCrafting
event.recipes.createMechanicalCrafting(output, pattern[], {patternKey: input}) Ten typ przepisu jest taki sam jak zwykły przepis shaped z crafting table
- createSequencedAssembly
event.recipes.createSequencedAssembly(output[], input, sequence[]) // output[] to twoje przedmioty wyjściowe // input to twój przedmiot wejściowy // sequence[] to tablica sekwencji. Te sekwencje to "zwykłe" przepisy, które są obsługiwane.
Przykłady:
event.recipes.createCrushing([ '2x minecraft:cobblestone', 'minecraft:redstone', Item.of('minecraft:redstone').withChance(0.5) ], 'minecraft:redstoneore')
event.recipes.createMixing('create:chromaticcompound', [ 'forge:dusts/glowstone', 'forge:dusts/glowstone', 'forge:dusts/glowstone', 'create:powderedobsidian', 'create:powderedobsidian', 'create:powderedobsidian', 'create:polishedrosequartz' ]).superheated()
event.recipes.createFilling('create:blazecake', [ 'create:blazecakebase', Fluid.of('minecraft:lava', 250) ])
event.recipes.createEmptying([ 'minecraft:glassbottle', Fluid.of('create:honey', 250) ], 'minecraft:honeybottle')
event.recipes.createMechanicalCrafting('minecraft:piston', [ 'CCCCC', 'CPIPC', 'CPRPC' ], { C: 'forge:cobblestone', P: 'minecraft:planks', R: 'forge:dusts/redstone', I: 'forge:ingots/iron' })
event.recipes.createSequencedAssembly([ // rozpocznij przepis Item.of('6x create:largecogwheel').withChance(32.0), // ten przedmiot będzie wynikiem z określoną szansą Item.of('create:brassingot').withChance(2.0), // ten przedmiot będzie wynikiem z określoną szansą 'minecraft:andesite', // ten przedmiot będzie gwarantowanym wynikiem 'create:cogwheel', // ten przedmiot będzie gwarantowanym wynikiem 'minecraft:stick', // ten przedmiot będzie gwarantowanym wynikiem 'minecraft:ironnugget' // ten przedmiot będzie gwarantowanym wynikiem ], 'create:brassingot', [ // 'create:brassingot' to dane wejściowe. // przedmiot przejściowy ustawiony przez "transitionalItem('create:incompletelargecogwheel')" to przedmiot, który będzie używany podczas przepisu jako przedmiot, którego używa input, aby przejść do output. event.recipes.createDeploying('create:incompletelargecogwheel', ['create:incompletelargecogwheel', 'minecraft:planks']), // jak zwykła funkcja przepisu, jest używana jako krok sekwencji w tej tablicy. Input i output mają przedmiot przejściowy event.recipes.createDeploying('create:incompletelargecogwheel', ['create:incompletelargecogwheel', 'minecraft:woodenbuttons']), // jak zwykła funkcja przepisu, jest używana jako krok sekwencji w tej tablicy. Input i output mają przedmiot przejściowy event.recipes.createCutting('create:incompletelargecogwheel', 'create:incompletelargecogwheel').processingTime(50) // jak zwykła funkcja przepisu, jest używana jako krok sekwencji w tej tablicy. Input i output mają przedmiot przejściowy ]).transitionalItem('create:incompletelargecogwheel').loops(6) // ustaw przedmiot przejściowy i loops (liczbę powtórzeń)
Jeśli chcesz użyć własnego przedmiotu przejściowego w przepisach sequencedassembly, musisz zarejestrować go w zdarzeniu startup:
onEvent('item.registry', event => {
// Tekstura dla tego przedmiotu znajduje się w kubejs/assets/kubejs/textures/item/mypart.png
event.create('mypart', 'create:sequencedassembly').displayName('My Part')
Następnie użyłbyś …transitionalItem('kubejs:mypart')…
Uwaga! Przepisy Mysterious Conversion działają tylko po stronie klienta, więc jedynym sposobem na ich dodanie jest obecnie użycie refleksji z tym kodem w skryptach klienta (poza jakimkolwiek zdarzeniem):
let MysteriousItemConversionCategory = java('com.simibubi.create.compat.jei.category.MysteriousItemConversionCategory')
let ConversionRecipe = java('com.simibubi.create.compat.jei.ConversionRecipe')
MysteriousItemConversionCategory.RECIPES.add(ConversionRecipe.create('minecraft:apple', 'minecraft:carrot'))
MysteriousItemConversionCategory.RECIPES.add(ConversionRecipe.create('minecraft:goldenapple', 'minecraft:goldencarrot'))
Jak zainstalować KubeJS Create
With Millida Launcher
Install Millida Launcher
The launcher is free: download it at millida.net/launcher and sign in with any nickname.
Click “Install” on this page
The launcher opens and installs the mod for Minecraft 1.16.2–1.21.1 on Fabric, Forge or NeoForge automatically.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Fabric, Forge or NeoForge
The loader must match the game version of the mod file, for example Minecraft 1.21.1. After installing it, a separate profile appears in your launcher.
Download the file for your version
In the version list above, pick the file kubejs-create-neoforge-2101.3.1-build.18.jar (38 KB) for your game version and loader.
Put it in the mods folder
The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it.
Launch the loader profile
Open “Mods” in the main menu: KubeJS Create should be in the list.
Minecraft 1.21.1 runs on Java 21: with a different Java version the game may close right after launch.
Wersje
Z zależnościami
| Minecraft | Loader | Plik | Data | Akcje |
|---|---|---|---|---|
| 1.21 | NeoForge | KubeJS Create NeoForge 2101.3.1-build.1837.7 KB 196 | ||
| 1.20.1 | Forge | KubeJS Create Forge 2001.3.0-build.830.2 KB 112 | ||
| 1.20.1 | Forge | KubeJS Create Forge 2001.3.0-build.530.2 KB | ||
| 1.18.2 | Fabric | KubeJS Create Fabric 1802.2.4-build.2320.4 KB 49 | ||
| 1.19.2 | Fabric | kubejs-create-fabric-1902.2.4-build.11.jar23.1 KB | ||
| 1.16.3 | — | kubejs-create-1604.1.0.4.jar5.7 KB 9 |
FAQ
Which Minecraft versions does KubeJS Create work on?
There are files for 1.16.2–1.21.1, 9 versions in total. The newest is 1.21.1.
Is KubeJS Create for Forge or Fabric?
There are files for Fabric: 1.18.2–1.19.2, for Forge: 1.20.1 and for NeoForge: 1.21–1.21.1.
Does KubeJS Create need other mods?
The author lists no required dependencies: the Fabric, Forge or NeoForge loader is enough.
Which Java does KubeJS Create need?
Minecraft 1.21.1 runs on Java 21. If the game closes right after launch, the usual cause is the wrong Java version in the profile settings.
Where can I download KubeJS Create safely?
On this page: the file kubejs-create-neoforge-2101.3.1-build.18.jar (38 KB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: d4dce8f82f2d37545f085522a782c1bfda222154.
Opinie
Oceń KubeJS Create jako pierwszy


