Use Kubejs to add Compact Crafting Minecraft Game

This tutorial is set by the author to use the CC by-NC protocol.

Title: This confusing wiki

First of all, it is clear that this script file belongs to the modification of the recipe. Therefore, we must place the script file in Kubejs/Sever_scripts.

Secondly, the format of this script file should be like this:

<<<<] = "ass: none;">>>>> one ('reses', e => {{

E.cusom ({{

"Type": "CompactCrafting: Miniaturization",

"Recipesize": 3,

"Layers": [[

{"Type": "CompactCrafting: mixed", "Pattern": [

[A "," a "," a "], [a", "a", "a"], [a "," a "," a "]},

{"Type": "CompactCrafting: mixed", "Pattern": [

[A "," a "," a "], [a", "a", "a"], [a "," a "," a "]},

{"Type": "CompactCrafting: mixed", "Pattern": [

[A "," a "," a "], [a", "a", "a"], [a "," a "," a "]}],

"Catalyst": {"ID": '', "Count":},

"Components": {"a": {"type": "Compactcraft: block", "block": ''},

},

"OUTPUTS": [{"ID": '', "Count":}]})

})

The following is the explanation of each variable:

Type (Type)

It is the type of formula. Since it is a tutorial for CC, it must be:

 Compact covering: miniaturization 

Recipesize (recipesize)

This determines the size of your formula. It is best to use odd numbers, such as 3,5,7ETC, such as you set to 3, then the multi -block structure in the game should be the size of 3*3*3.Similarly to 9, correspond to 9*9*9.

Layers (layers)

This item is used to determine the composition of each layer of multiple block structures in your formula. The number of layers is determined to write the three layers in the three layers of the three layers. There are three definitions of the three layers in the 3rd layer.The

 Compact covering: Filled

compactCrafting: Hollow

compactCrafting: mixed

Filled said that this layer consists of only one material (that is, C), and the shape is ■, for example:

 "layers": [{{

"Type": "CompactCrafting: Filled",

"Component": "C"

}]

Hollow means that this layer is composed of only one material (that is, c), with a shape of the shape. Example:

 "layers": [{{

"Type": "CompactCrafting: Hollow",

"Wall": "C"

}]

Mixed means that this layer has a variety of materials (that is, C, D, E) hybrid composition. Example:

 "layers": {[

"Type": "CompactCrafting: mixed",

"Pattern": [[

[C "," c "," c "," c "," c "], [c", "e", "e", "e", "c"],

[C "," e "," d "," e "," c "],

[C "," e "," e "," e "," c "],

[C "," C "," C "," C "," C "]

]}

The type of each layer must be the same, otherwise it will make an error when/RELOAD (at least I will make an error). It is recommended to use the Mixed type

Catalyst

That is, catalysts, the significance is to start the correct multi -party fast structure when synthetic, start the micro -shrinkage field projector for synthesis. Example:

 "catalyst": {"id": 'minecraft: IRON_INGOT', "Count": 4} 

Components

Like the use of other magic -to -scripts, it is used to define the key in layes. Example:

 "components": {

"C": {

"Type": "CompactCrafting: Block",

"Block": "Minecraft: Coal_block"

}

}

Output

That is, the output result of the formula (note the appliance of the count), for example:

 "Output": [{{

"ID": "Minecraft: Diamond_block",,

"Count": 27

}]

These are the tutorials, please point out if there are advice, thank you