Download OpolisJS — Minecraft Mods — MetaMods

OpolisJS

Active

Downloads

0

Last update

1 year ago
Client
Fabric
Quilt
Forge
Neoforge
Utils

OpolisJS - KubeJS Integration

This mod adds support for opolis and BBL mods to the KubeJS system, providing the ability to create custom recipes through scripts.

Available Recipe Types

With this mod, you can configure various resource processing mechanisms:

Catalogue

//Catalogue (output (ItemStack), input(SizedIngredient))
event.recipes.opolisutilities.catalogue("minecraft:gravel", "minecraft:emerald")

Drying

//Drying Table (output (ItemStack), input(SizedIngredient), duration(Integer))
event.recipes.opolisutilities.drying_table("minecraft:gravel", "minecraft:emerald", 600)

Soaking

//Soaking Table (output (ItemStack), input(SizedIngredient), duration(Integer))
event.recipes.opolisutilities.drying_table("minecraft:dirt", "minecraft:diamond", 1600)

Fluid Generator

//Fluid Generator (fluid (FluidStack))
event.recipes.opolisutilities.fluid_generator("200x minecraft:lava").id("opolisutilities:fluid_generator/lava")

Resource Generator

//Resource Generator (input (Ingredient))
event.recipes.opolisutilities.resource_generator("minecraft:diamond_block")

Speed Upgrades

//Speed Upgrades (input (Ingredient), tickRate(Integer))
event.recipes.opolisutilities.speed_upgrades("minecraft:flint", 120)

Summoning Creatures

//Summoning Block (input (SizeIngredient), catalyst (Ingredient), mob(String))
event.recipes.opolisutilities.summoning_block("minecraft:emerald", "minecraft:diamond", "minecraft:zombie")

Sprayer

//Sprayer (input (Ingredient), spraycan (Ingredient), output(ItemStack))
//Important sprayer information:
// - If not using a spray can item as the spraycan, the item must have the "caveopolis:spray_cans" tag to work in the slot
// - Any item that has a block version (for example, stone) will work both in the world and in the sprayer
event.recipes.caveopolis.sprayer("minecraft:emerald_block", "caveopolis:blue_spray_can", "minecraft:diamond_block")

Strainer

//Strainer (input (Ingredient), aboveBlock(String), output(ItemStack), minMeshTier(Integer), change(double)
//Important strainer information:
// - aboveBlock can be either a block EG "minecraft:stone" or a fluid EG "minecraft:water"

event.recipes.strainers.strainer("minecraft:emerald_block", "minecraft:cobblestone", "minecraft:diamond_block", 3, 0.8)

Mesh Upgrade

//Mesh Upgrade (input (Ingredient), meshDamageChance(Double))
//Important mesh upgrade information:
// - meshDamageChance closer to 1.0 means more likely to take damage when straining
event.recipes.strainers.mesh_upgrade("minecraft:emerald", 0.5)

Output Upgrade

//Output Upgrade (input (Ingredient), outputChanceIncrease(Double))
//Important output upgrade information:
// - outputChanceIncrease is added to the chance value of the recipe
event.recipes.strainers.output_upgrade("minecraft:emerald", 0.2)
Project members
benbenlaw

benbenlaw

Created: 29 Jun 2024

ID: 29323