2024-12-10 17:49:06|Myriagame |source:minecraft skins
This article is a component, and the tutorial comes from the official Wiki. This tutorial is only translated as a Wiki.
As a machine, of course, there are more than only the appearance, you can also write some functional components.
In Custom Machinery, you can write 4 components: Custommachnery: Item, CustomMachinery: Fluid, CustomMachinery: Energy, Custommachnery: Redstone.
These components must be written in the machine's JSON, and can be written without restrictions.
If you want to use them, then you need to follow the model below:
"components": [{{
// Component
},
{{
// Component
}
Elastic
]
Everything in this article is optional, so if you don't need to write it.
These components must be defined with Type.Such as "Type": "Custommachinery: Item"
energy
By default, the energy unit used by Custom Machinery is FE, so as long as you can extract FE or RF pipelines or machines, the machine energy of the module can be extracted.
Energy components are considered a unique component, so your machine can only allow a energy groove. If you try to make multiple energy tanks, you will only run the first one.
To define energy for machines, you need to write in JSON: "Type": "Custommachnery: Energy"
characteristic
Capacity (required)
You need to fill in your machine, how much can you accommodate.
// This machine can accommodate 10000FE"Components": [[
{{
"Type": "Custommachinery: Energy",
"Capacity": 10000
}
]
Maximum input
How much does you enter the machine for each of the machine.
// This machine can only accept 1000FE per one"Components": [[
{{
"Type": "Custommachinery: Energy",
"Maxinput": 1000
}
]
Maximum output
How much can this machine output per TICK out.
// This machine allows output 1000FE/T power"Components": [[
{{
"Type": "Custommachinery: Energy", "Maxoutput": 1000
}
]
example
// This machine allows saving 10000FE, and can only input and output 1000Fe/T"Components": [[
{{
"Type": "Custommachinery: Energy",
"Capacity": 10000, 10000,
"Maxinput": 1000,
"Maxoutput": 1000
}
]
Note: The FE consumption and increase generated by the formula will bypass the maximum restrictions without being included.
The maximum restrictions only calculate the energy of pipeline or machine extraction or input.
fluid
Generally speaking, the fluid of the Custom Machinery is compatible with all MOD fluids, so you can also use other MOD pipes or pumps to extract the fluid inside the machine.
You can use "Type": "CustomMachinery: Fluid" to add a liquid tank to the machine.
At the same time, this component is not unique, so you can add any amount of liquid storage tank.
characteristic
Capacity (required)
Please fill in an integer, 1 represents 1MB, 1000 represents a barrel (1000MB).
// A storage tank that can store 10,000MB"Components": [[
{{
"Type": "Custommachinery: Fluid",
"Capacity": 10000
}
]
ID (required)
Different from energy, because the fluid can be written into multiple, you need to write an ID for each fluid to distinguish different storage tanks.
// A liquid storage tank, where the ID is TANK1"Components": [[
{{
"Type": "Custommachinery: Fluid",
"ID": "tank1"
}
]
Maximum input
Each tick can enter the maximum speed of the fluid at this machine.
// A storage tank that can enter at a speed of 1000MB/T."Components": [[
{{
"Type": "Custommachinery: Fluid",
"Maxinput": 1000
}
]
Maximum output
The storage tank can output the maximum speed per tick.
// A storage tank that can output at a speed of 1000MB/T."Components": [[
{{
"Type": "Custommachinery: Fluid",
"Maxoutput": 1000
}
]
Filter
By default, a liquid tank can accept all fluids.
// A solution tank that only receives water"Components": [[
{{
"Type": "Custommachinery: Fluid",
"Filter": ["MineCraft: Water"]
}
]
At the same time, you can also use#representing labels, such as #Minecraft: Water represents a storage tank that only receives water and other water tags.
White list
On this basis, you can use Whitelist to select whether the filter is a whitelist. False is a blacklist, and True is a white list.
By default, Whitelist is True
// A storage tank that can be accepted except water"Components": [[
{{
"Type": "Custommachinery: Fluid",
"Filter": ["MineCraft: Water"]
"Whitelist": false
}
]
model
There are four modes of the storage tank, which are: input (input), output (output), both (input/output), none (none),
By default, the storage tank is Both mode, that is, it can input and output at the same time. If it is input, the storage tank can only be input and cannot be output.
If it is output, the storage tank can only be output and cannot be input. If it is None, this tank will not be done.
The pipes can only be pumped into the input mode storage tank, and the liquid is pulled out of the output mode storage tank.The barrel and the formula are the same.
// A fluid component that can only be input and cannot output."Components": [[
{{
"Type": "Custommachinery: Fluid",
"Mode": "Input"
}
]
Note: If you fix the mode, the previously defined "Maxinput" and "Maxoutput" may not work. For example, the mode of the mode is input tank. Even if Maxoutput defines numbers, it is still considered 0.
example
"components": [{{
"Type": "Custommachinery: Fluid",
"Capacity": 10000, 10000,
"ID": "tank1",
"Maxinput": 2000,
"Maxoutput": 1000,
"Filter": ["MineCraft: LAVA"],
"Whitelist": False,
"Mode": "Both"
}
]
A ID is TANK1, which can store a 10000MB fluid storage tank component. At the same time, it can input 2000MB/T, output 1000MB/T, and is acceptable to fluids other than magma.
thing
The items can allow machines and items to interact.
Each item component adds a slot to the machine, and each slot can accommodate any items. You can add any items component.
The definition of items is "Type": "Custommachinery: Item".
characteristic
ID (required)
The items also need to fill in the ID to distinguish different items slots.
// A item slot named Slot1"Components": [[
{"Type": "CUSTMACHINRY: Item",
"ID": "Slot1"
}
]
capacity
By default, an item slot can only accommodate one set of items (64). You can customize the number of accommodation of each grid, but cannot exceed one group.
// A slot of items that can only stack 4 items"Components": [[
{{
"Type": "Custommachinery: Item",
"Capacity": 4
}
]
Filter
Similarly, all the items can be stored by default.
You can use#to represent the item label.
// This slot only accepts diamonds and all wood."Components": [[
{{
"Type": "Custommachinery: Item",
"Filter": ["Minecraft: Diamond", "#Minecraft: Logs"]
}
]
White list
Like fluids, you can use Whitelist to show whether the filter is black/whiter list, FALSE is a blacklist, and TRUE is a white list.
By default, Whitelist is true (white list)
// This slot only accepts apples."Components": [[
{{
"Type": "Custommachinery: Item",
"Filter": ["MineCraft: Apple"],
"Whitelist": true
}
]
model
The items also contain four modes: input (input), output (output), both (input/output), none (none).
Under normal circumstances, the model of the item slot is Both.
Fully, pipelines, etc. can only be entered from the items slot of the INPUT/Both mode, and the items are drawn from the items of the Output/Both mode, and the formula is the same.
// A input slot, not allowed to output."Components": [[{{
"Type": "Custommachinery: Item",
"Mode": "Input"
}
]
Variant
You can use the variant attribute to define the special attributes of this item slot.
The item slot has three different variants:
CUSTMACHINERY: Default, the most basic items slot.
Custommachinery: Fuel, fuel slot, it only allows items with burning time and consumes them to provide motivation for machines.
CUSTMACHINRY: Upgrade, upgrade slot, only allows items defined as a custom machine upgrade.
By default, the slot is CUSTMACHICHINRY: Default, the most common one.
Note: Generally speaking, the fuel slot can be input and output, but if it is only defined as the output, it can only be put into the items through the formula, so it is recommended to change to the INPUT or Both type.
// A upgrade slot"Components": [[
{{
"Type": "Custommachinery: Item",
"Variant": "Custommachinery: Upgrade"
}
]
example
"components": [{{
"Type": "Custommachinery: Item",
"ID": "Fuel",
"Filter": ["MineCraft: Coal", "Minecraft: Charcoal"],
"Whitelist": true,
"Mode": "Input",
"Variant": "Custommachinery: Fuel"
}
]
An ID is a fuel slot of Fuel, and can only be put in coal or charcoal, and it is not allowed to take it out.
Red stone
This component is a definition of the interaction of red stone and does not store any content.
This component is completely optional. If you do not fill in, the default redstone control will be added:
The machine never stops, and the machine is not allowed to issue a redstone signal.
This component is unique, so you can only define a redstone component, otherwise the first redstone component is enabled.
You can use "Type": "Custommachnery: Redstone" to define red stone components.
characteristic
pause
// If the machine receives a redstone signal greater than 5, it will be suspended"Components": [[
{{
"Type": "CUSTMACHINERY: Redstone",
"Powrtopause": 5
}
]
The default value is 0, that is, never pause.
Run signal output
// The machine will generate 15 -level redstone signals during operation"Components": [[
{{
"Type": "CUSTMACHINERY: Redstone",
"CraftingPoweroutput": 15
}
]
The default value is 0, that is, never generate.
Leisure signal output
// The machine will generate 15 -level redstone signals during idle"Components": [[
{{
"Type": "CUSTMACHINERY: Redstone",
"IdlePoweroutput": 15
}
]
The default value is 0, that is, never generate.
Error signal output
// The machine will generate 15 -level redstone signals when an error occurs"Components": [[
{{
"Type": "CUSTMACHINERY: Redstone",
"ERROREDPOWEROUTPUT": 15
}
]
Comparison signal output
If there is a redstone comparator nearby, the machine will generate different signals according to the different choices:
Custommachinery: Item, consistent with the original box, the signal corresponding to the items in its slot.
Custommachinery: Fluid, the signal corresponding to the output from the liquid in the tank is empty, 15 is full, 8 is half.Custommachnery: Energy, corresponding signals corresponding to the energy in its buffer area, 0 is empty, 15 is full, 8 is half.
// The machine will generate the same redstone signal according to the fluid storage tank"Components": [[
{{
"Type": "CUSTMACHINERY: Redstone",
"ComparatorInputType": "Custommachinery: Fluid"
}
]
The default value is: CUSTMACHINRY: Energy, the redstone signal is output according to the number of energy, if not, it is 0.
Comparator signal ID
Above this, if the comparator is needed to accurately reach the specific fluid or item slot, the corresponding ID needs to be declared.
If you can't find the ID of the statement, the 0 redstone signal is output.
// The machine will find a fluid storage tank with ID to TANK1, and output the corresponding redstone signal according to the stored quantity"Components": [[
{{
"Type": "CUSTMACHINERY: Redstone",
"ComparatorInputType": "Custommachinery: Fluid"
"ComparatorInputid": "Tank1"
}
]
example
"components": [{{
"Type": "CUSTMACHINERY: Redstone",
"Powrtopaude": 15,
"CraftingPoweroutput": 7, 7,
"ERROREDPOWEROUTPUT": 14, 14,
"ComparatorInputType": "Custommachinery: Item",
"ComparatorInputid": "Input"}
]
A redstone control, specifically:
Output redstone signal 0 when you are free
Output Redstone signal 7 during production 7
Output Redstone signal 14 when errors occur
When receiving a 15 redstone signal, it is suspended
The nearby comparator will output signals in the item in the slot of the "Input" of the ID
National Service DNF Dark Ni
2025-01-28 09:19:27The new screenshot of the be
2025-01-28 09:18:57The 15th anniversary wallpap
2025-01-28 09:18:273DM Xuanyuan Sinicization Gr
2025-01-28 09:17:57French magazine is the first
2025-01-28 09:17:27The sneak game "Republic" wi
2025-01-28 09:16:57The story between humans and
2025-01-28 09:16:27Capture "Trinity 3: Artifact
2025-01-28 09:15:27Wind direction change "Myste
2025-01-28 09:14:57DICE's new project "Dream" w
2025-01-28 09:14:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:26Master Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25King Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25Guide Minecraft Skins
Minecraft Skins
2024-12-10 04:11:24Dark Knight Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Sparta Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Moncraft Skins of the War
Minecraft Skins
2024-12-10 04:11:22Red Witch Minecraft Skins
Minecraft Skins
2024-12-10 04:11:22Golden Cavaliers Minecraft S
Minecraft Skins
2024-12-10 04:11:22