your current location:首页 > news>Use Kubejs6 to modify some methods of sieves to mechanical power: Create Sifting Minecraft Game

Use Kubejs6 to modify some methods of sieves to mechanical power: Create Sifting Minecraft Game

2024-12-10 17:57:16|Myriagame |source:minecraft skins

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

Foreword

When I read the "mechanical power: sieve" (below "(below" sieved), when I put the source code of (below for the sieve), it was accidentally discovered that the author has been supporting the linkage of Kubejs from 1.18, so this chapter simply explains the Kubejs method provided by the sieve.

Because of my lonely dream, I will not Kubejs5, so I use Kubejs6 (test version 1.20.1) as an example below

About registration

Sieve provides two items to register

 StartuPEVENTS.Registry ("item", event => {

Event.create ("Mesh", "CreateSates: Mesh")

Event.create ("Advanced_mesh", "CreateSates: Advanced_mesh"))

})

As for the material and Sinicization, it is not the video content of this chapter, you can refer to how the material of the sieve is tidy.

About formula

There is only one method about formula sieve

<<<<<<] = "assh: none;">> serverersion

Const creates;

CreateSates; output [], input [], processingtime, iswater, minimumspeed);

});

output: Output item -must be filled in

Input: Enter item -must be filled in

processingtime: processing time

Iswater: Whether to soake in water -non -required -defaults False

minimumspeed: minimum processing speed -non -required -defaults 1.0


Why can the input objects be multiple? At the beginning, I also felt strange, and then when I checked the information, I found that the screen network is also in the input item. Well, it's not surprising.

Therefore, when passing into the input item, one value is our normal input item, and the item ID of the other value is available.

There are only one of the two sieves but only one added formula, because what screen is used depends on what sieve network you use, and only the high -end brass sieve network given by the sieve will be matched into the brass power sieve.

About reference

Reference information 1: Official information provides information

Reference materials 2: Kubejs1.20 document of lone dream