2024-12-10 17:45:40|Myriagame |source:minecraft skins
Get started quickly
In order to use this module, you must create a naming space called Minecraft in your texture package and create an MBP folder in the inside.
Block model overwriting
Overrides list
In the MBP folder, you can write a model of a block.
For example, write a grass square, there will be a file named Grass_block.json in Assets/Minecraft/MBP folder.
The files of each block to be written will have the following content
{{"Overrides": [[
Elastic
]
}
This Overrides list determines what the model is to be written.And different models in a block will have different conditions. If the conditions meet the conditions, the square will display a specific model.
An example, here is used to write the model of the stone with a deep slate model:
{{"Overrides": [[
{{
"When": {{
"Coordinate_range": {"axis": "y", "min": 77, "max": 79}
},
"Apply": "Minecraft: Deepslate"
}
]
}
When the coordinates of the stone are greater than 77 but less than 79, they will be covered as a model of deep slate.
In addition, Apply can be a list. If so, it randomly selects a model of a blocking block in the list.
Similar to the random model of Blockstates.
Apply list
Each element in the Apply list can be a string, or one as an object, such as Minecraft: Stone, or it can also be written as an object {"Model": "Minecraft: Stone"}.
When using the object, you can specifically explain its weight is Weight.The value of its weight determines how big the probability of this model is adopted.
For example, one -fifth of the probability will allow the covered blocks to use My_Resource_pack: CUSTOM_STONE model. The rest will use the second model:
{{"Overrides": [[
{{
"When": {"coordinate_range": {"axis": "y", "min": -4, "max": 4}
},
"Apply": [
"My_resource_pack: Custom_stone",
{"Model": "My_resource_pack: Custom_stone2", "Weight": 4}
]
}
]
}
Adjacent block (Adjacent Block)
summary
To detect whether the coordinates of a block are adjacent to/not close to a block and match the block.You can modify the state, label and some additional attributes.
Object information
ID is adjacent_block,
There are the following parameters:
Status, string (optional);
Whether it is solid (is_solid), Boolean value (optional);
Whether it is a transparent block (IS_TRANSParent), Boolean value (optional);
Whether it is a complete block (is_full_block), Boolean value (optional);
Coordinates offset, a three -dimensional vector.
example
Detect whether the following is dirt:
{{"Overrides": [[
{{
"When": {{
"Adjacent_block": {
"State": "Minecraft: DIRT", "Offset": {"x": 0, "y": -1, "z": 0}
}
},
"Apply": [
... ...
]
}
]
}
Detect whether the following is not a transparent cube:
{{"Overrides": [[
{{
"When": {{
"Adjacent_block": {
"IS_TRANSPARENT": False,
"Offset": {"x": 0, "y": -1, "z": 0}
}},,
"Apply": [
... ...
]
}
]
}
Coordinate Range
summary
The detection block is placed in a certain coordinate interval or in a specific location.
Object information
ID is coordinate_range,
There are the following parameters:
Axis (AXIS), a string, the effective value is x, y, and z;
Maximum value (MAX), plastic surgery;
Minimum value (min), plastic surgery.
example
To detect whether its location is within the range of Y77 to Y79:
{{"Overrides": [[
{{
"When": {{
"Coordinate_range": {{
"Axis": "y",
"Min": 77,
"Max": 79
}
}, "Apply": [
... ...
]
}
]
}
Group (in biome)
summary
The detection block is in a certain group.
Object information
ID is biome,
The parameters are as follows:
Group ID (Identifier), string.
example
Detect whether it is in the plain:
{{"Overrides": [[
{{
"When": {{
"Biome": {
"Identifier": "Minecraft: Plains"
}
},
"Apply": [
... ...
]
}
]
}
IS Block State
summary
The detection block is certain.
Object information
ID is state,
The parameter is a string.
example
The testing step is the upper half of the brick:
{{"Overrides": [[
{{
"When": {{
"State": "Minecraft: OAK_SLAB [TYPE = TOP]" "
},
"Apply": [
... ...
]
}
]
}
Whether it is item (IS Item)
summary
Whether the block is rendered as an item on the backpack or falling on the ground.
Object information
ID is IS_ITEM,
The parameters are Boolean.
example
If it is TRUE, the square will be rendered into a item instead of the rendering model in the backpack:
{{"Overrides": [[
{{
"When": {{
"IS_ITEM": "False"
},
"Apply": [
... ...
]
}
]
}
Light Range Abstract
The test is in the interval of a certain light brightness.
Object information
ID is Light_range,
There are the following parameters:
Maximum value (MAX), plastic surgery;
Minimum value (min), plastic surgery.
example
The detection block is in the interval with a brightness of 0 and the brightness of 7.
{{"Overrides": [[
{{
"When": {{
"Light_range": {
"Min": 0,
"Max": 7
}
},
"Apply": [
... ...
]
}
]
}
Logic Operators
summary
Allow you to use AND (and door), or (or door), and not (non -door) to customize more situations.
example
"not": []
"" ": []
"or": []
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