your current location:首页 > news>Use Kubejs5 (version 1.18.2) to increase the formula mechanical power of "mechanical power: sieve": Create Sif

Use Kubejs5 (version 1.18.2) to increase the formula mechanical power of "mechanical power: sieve": Create Sif

2024-12-10 17:50:23|Myriagame |source:minecraft skins

This tutorial is set by the author's setting without permission.

Required module

Kubejs

Create

Create siting

Tutorial text

 Onevent ('recipes', event => {

// From a part of the sand, there can be a 50%probability to sieve the base rock, the 10%probability to sieve the red stone, use the wire sieve, the sand scavenging time 20ticks, water content content

Event.recipes.createsiftersifting ([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[

// Output items, the right side is the probability of the item

Item.of ('Minecraft: Bedrolk'). Withchance (0.5),

Item.of ('Minecraft: Redstone'). WithChance (0.1)

], [[[[[

// Enter the item, the left side is the item, and the right side is the corresponding screen

'Minecraft: Sand', 'Createsifter: String_mesh'

// Add .waterLogged () later to become a water -containing formula, and add the .processingtime (int Time) to specify the time of the screen items used

])).

// If the output item becomes not a probability limit, you can try to add .tojson () behind the WithChaance (FIGURE) of the output item

})