... | ... | @@ -20,6 +20,9 @@ MUSHROOM_BLOCK and NOTE_BLOCK are considered as "solid" blocks, these blocks nee |
|
|
- `Type` - The type of custom block, defaults to mushroom (MUSHROOM_BLOCK, NOTE_BLOCK, TRIPWIRE, CHORUS)
|
|
|
- `Id` - The ID of the custom block.
|
|
|
- `Texture` - The path of the texture the block will use, or none if block is non solid
|
|
|
- `Textures` - Optional: Texture key and path the block will use (Needed if you want to assign different texture per face)
|
|
|
- `Parent` - Optional: Parent model that the block should use (Useful when having different textures per face)
|
|
|
- `Variants` - Optional: Gives the ability to have variant of the block (having different rotations)
|
|
|
|
|
|
```yaml
|
|
|
CustomBlock:
|
... | ... | @@ -31,7 +34,7 @@ MUSHROOM_BLOCK and NOTE_BLOCK are considered as "solid" blocks, these blocks nee |
|
|
## Putting in Resource Pack
|
|
|
Please refer to the [Resourcepack Generator](ResourcePack-Generator) wiki page for info.
|
|
|
|
|
|
## Example
|
|
|
## Examples
|
|
|
```yaml
|
|
|
TestBlock:
|
|
|
Id: STONE
|
... | ... | @@ -47,6 +50,39 @@ TestBlock: |
|
|
- sound{s=block.amethyst_block.break} @self ~onBlockBreak
|
|
|
```
|
|
|
|
|
|
This block will have a different texture on top
|
|
|
```yaml
|
|
|
TestBlock:
|
|
|
Id: STONE
|
|
|
Model: 5
|
|
|
Display: 'Multitexture'
|
|
|
Type: BLOCK
|
|
|
CustomBlock:
|
|
|
Type: NOTE_BLOCK
|
|
|
Id: 30
|
|
|
Parent: "minecraft:block/cube_top"
|
|
|
Textures:
|
|
|
top: block/top_texture
|
|
|
side: block/side_texture
|
|
|
```
|
|
|
|
|
|
This block will have two random rotation variant
|
|
|
```yaml
|
|
|
TestBlock:
|
|
|
Id: STONE
|
|
|
Model: 5
|
|
|
Display: 'Variant'
|
|
|
Type: BLOCK
|
|
|
CustomBlock:
|
|
|
Type: NOTE_BLOCK
|
|
|
Id: 30
|
|
|
Texture: block/exampletexture
|
|
|
Variants:
|
|
|
- y: 0
|
|
|
- x: 90
|
|
|
y: 90
|
|
|
```
|
|
|
|
|
|
This tripwire block will use the model generated from the item's `Generation` field
|
|
|
```yaml
|
|
|
TestTripwire:
|
... | ... | |