Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicCrucible MythicCrucible
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 53
    • Issues 53
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicCrucibleMythicCrucible
  • Wiki
  • Custom Blocks

Custom Blocks · Changes

Page history
Update Custom Blocks authored Sep 07, 2024 by evlad's avatar evlad
Hide whitespace changes
Inline Side-by-side
Showing with 37 additions and 1 deletion
+37 -1
  • Custom-Blocks.md Custom-Blocks.md +37 -1
  • No files found.
Custom-Blocks.md
View page @ 60b462ec
......@@ -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:
......
Clone repository
Home
Changelogs
Commands / Permissions
FAQ / Common Issues
Guides
Usage
  • Installation
  • Item Options
  • Item Skills
  • Item Durability
  • Crafting Recipes
    • Workbenches
  • Item Updater
  • Ammo System / Guns
  • Dynamic Lore Generation
  • ResourcePack Generator
  • World Generation
Item Types
  • Blocks
  • Furniture
    • Paint Brush
  • Bags
  • Hats
Mechanics
  • Item Mechanics
  • Item Targeters
  • Item Triggers
  • Item Conditions
Placeholders
  • Placeholders