your current location:首页 > news>How to create a machine that belongs to its own [mm] Masterful Machinery Minecraft Game

How to create a machine that belongs to its own [mm] Masterful Machinery Minecraft Game

2024-12-10 17:51:42|Myriagame |source:minecraft skins

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

The following is the entire process of creating a machine.

0. Creation of data packets

For the basic tutorial of the packet, please refer to this large video: https://space.bilibili.com/166572139? SPM_ID_FROM = 333.788.b_7657570696E666F.1 (can download a 1.16 packet as a reference)

1. Add block

Please go to Config/MasterFul_machnery/Controller Folder New .json file (you can go to other places to copy one, then clear it), and then refer to the following code:

{{

"Controllerid": "Basic", "Basic",

"Name": "basic",

"TextureOverride": "Minecraft: Block/Cactus_side",

"Ports": [[

{{

"Type": "MasterFulmachinery: Items",

"TextureOverride": "Minecraft: Block/Melon_side",

"Name": "basic ittem",

"ID": "Basic",

"Data": {{

"ROWS": 3,

"Columns": 3

}

},

{{

"Type": "MasterFulmachinery: Energy",

"Name": "Basic Energy",

"ID": "chungus",,

"Data": {{

"Capacity": 1000000000

}

},

{{

"Type": "MasterFulMachinery: Fluids",

"Name": "Small Fluid",

"ID": "Small", "Data": {

"Capacity": 10000

}

},

{{

"Type": "MasterFulmachinery: Mekanism_gas", "

"Name": "Gassy",

"ID": "Gassy",

"Data": {{

"CAPACITY": 100000

}

},

{{

"Type": "MasterFulmachinery: Mekanism_slurry",

"Name": "Mekslurry",

"ID": "Mekslurry",

"Data": {{

"Capacity": 1000000

}

},

{{

"Type": "MasterFulmachinery: Create_rotation",,

"Name": "spinny",

"ID": "spinny",

"Data": {{

"Stress": 1

}

},

{{

"Type": "MasterFulMachinery: PNCR_Pressure",

"Name": "Air",

"ID": "Air",

"Data": {{

"Volume": 5000,

"Dangerpressure": 15,

"CriticalPressure": 30

}

},

{{

"Type": "MasterFulmachinery: Astral_starlight",,

"Name": "Astral",

"ID": "Star",

"Data": {{

"Capacity": 1000

}

}

]

}

The above code is an example:

"Type" is the type of input and output, such as item (item), FLUID (fluid), Energy (Fe), etc.

"TextureOverride" is the material of the corresponding block, which can be customized according to the format (can not be added, the default is stone material);

"Name" is the name of the square, you can fill in it at will;

"ID" is the registered name of the block must be used by a lowercase letter;

"Data" is an internal capacity. When the type is the item, the "ROW" and "Columns" are the lines and columns in the warehouse, respectively.

For the remaining input types, such as gas, slurry, please refer to http://wiki.ticticBooom.live/t/example.

2. Add structure

After creating a new data packet, go to (the name of your data packet)/data/mm/recipes/structures (all the new folder names cannot be changed) to add a .json file (no longer repeated the knowledge used in the data package),Refer to the following code:

{{

"Type": "MasterFulmachinery: Machine_Struction",

"Controllerid": "Basic", "Basic",

"ID": "Example_struction",

"Name": "master machine",

"Layout": [[

[

"AAA",

"AAA",

"AAA"

], [[[[[

"Bib",

"Ofe",

"BCB"

],,,

[

"SSS",

"SSS",

"SSS"

]

],,,

"Legend": {{

"A": {

"Block": "Minecraft: Cobblestone"

},

"S": {

"Block": "Minecraft: Stone"

},

"B": {

"Block": "Minecraft: OAK_LOG"

},

"F": {

"Block": "Minecraft: Furnace"

},

"E": {

"Block": "MasterFulmachinery: Basic_small_fluids_output" "

},

"I": {

"Block": "MasterFulmachnery: Basic_basic_Items_input"

},

"O": {

"Block": "MasterFulmachinery: Basic_small_fluids_input"

}

}

}

The above is an example:

"Type" cannot be modified;

"Controllerid" is the Controllerid defined by the previous module;

"ID" is the registered name of the machine. You must use a lowercase letter or the line;

"Name" is the name of the machine, which can be customized;

The next code can be generated automatically, the specific method:

1 Enter the archive you add data packets and build your favorite mechanical structure;

2 Find the two items of Structure Scanner in the item bar (one is a block that can be placed, and the other is a tool);

3 Use Structure Scanner (Tool) Right -click the two endpoints of the diagonal of the mechanical pair line and put the tools in the Structure Scanner (block). At this time, you can show the range you checked;This code is stored in your paste board, and you can stick it.

3. Create a formula

Go to (the name of your data packet)/data/mm/recipes new .json file, refer to the following code:

{{

"Type": "MasterFulmachinery: Machine_process",, "

"Structureid": "Example_Struction",

"Controllerid": "Basic", "Basic",

"Ticks": 100,

"Inputs": [[

{{

"Type": "MasterFulmachinery: Items",

"Data": {{

"Items": "Minecraft: white_wool",

"Count": 2

}

}

],,,

"OUTPUTS": [[

{{

"Type": "MasterFulmachinery: Items",

"Data": {{

"Item": "Minecraft: String",

"Count": 4

}}

]

}

The above is an example (the formula is to input two white wool and output four lines):

"Type" cannot be modified;

"Structureid" is the mechanical registration name of your module;

"Controllerid" is registered for the controller of the module on the upper module;

"Ticks" is the working hours of the machine (20t = 1S);

"Input" is the input of "Type" as the input type, "iTeM" is the item registration name, and "count" is the input quantity;

"OUTPUT" is the input "Type" as the output type, "ITEM" is the registered name of the item, and "Count" is the output number;

For the remaining input and output types, such as gas, slurry, please refer to http://wiki.ticticBooom.live/t/example.

4. Fortune

Remember to enter instructions/RELOAD or exit for each time after completing the modification, otherwise the modification cannot be presented.If you cannot successfully add the grammar (https://www.sojson.com/) and check if there is a spelling error, please use the above code to be uncertain.EXAMPLES is mainly.I hope that the above tutorial can help everyone complete the beloved machinery.