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 Apr 03, 2024 by evlad's avatar evlad
Hide whitespace changes
Inline Side-by-side
Showing with 24 additions and 3 deletions
+24 -3
  • Custom-Blocks.md Custom-Blocks.md +24 -3
  • No files found.
Custom-Blocks.md
View page @ 26384a69
Crucible allows people to create "custom blocks" using the extra block states from mushroom blocks, note blocks, or tripwires. Crucible allows people to create "custom blocks" using the extra block states from mushroom blocks, note blocks, tripwires or chorus plants.
Items that are configured to be blocks will have their corresponding block placed in the world where the player is looking when right-clicked, and will drop the original item when broken by default (unless configured otherwise). Items that are configured to be blocks will have their corresponding block placed in the world where the player is looking when right-clicked, and will drop the original item when broken by default (unless configured otherwise).
...@@ -6,10 +6,12 @@ Items that are configured to be blocks will have their corresponding block place ...@@ -6,10 +6,12 @@ Items that are configured to be blocks will have their corresponding block place
## Custom Block Options ## Custom Block Options
All options are placed under a `CustomBlock` section on an item. All options are placed under a `CustomBlock` section on an item.
MUSHROOM_BLOCK and NOTE_BLOCK are considered as "solid" blocks, these blocks need a path to the texture to generate itself, other blocks (TRIPWIRE and CHORUS) are non solid this means you can omit the `Texture` field and Crucible will use the model assigned to the item
### Base Options ### Base Options
- `Type` - The type of custom block, defaults to mushroom (MUSHROOM_BLOCK, NOTE_BLOCK, or TRIPWIRE) - `Type` - The type of custom block, defaults to mushroom (MUSHROOM_BLOCK, NOTE_BLOCK, TRIPWIRE, CHORUS)
- `Id` - The ID of the custom block. - `Id` - The ID of the custom block.
- `Texture` - The path of the texture the block will use - `Texture` - The path of the texture the block will use, or none if block is non solid
```yaml ```yaml
CustomBlock: CustomBlock:
...@@ -37,9 +39,28 @@ TestBlock: ...@@ -37,9 +39,28 @@ TestBlock:
- sound{s=block.amethyst_block.break} @self ~onBlockBreak - sound{s=block.amethyst_block.break} @self ~onBlockBreak
``` ```
This tripwire block will use the model generated from the item's `Generation` field
```yaml
TestTripwire:
Id: PAPER
Model: 5
Display: 'Tripwire plant'
Generation:
Model: block/tripwire_plant
Type: BLOCK
CustomBlock:
Type: TRIPWIRE
Id: 0
```
## WorldEdit Support ## WorldEdit Support
You can place custom blocks using worldedit via the following syntax: You can place custom blocks using worldedit via the following syntax:
``` ```
//set mythic:ItemName //set mythic:ItemName
```
If you have a custom namespace replace `mythic` by your namespace:
```
//set mynamespace:ItemName
``` ```
\ No newline at end of file
Clone repository
  • Home
  • Changelogs
  • Commands / Permissions
  • FAQ / Common Issues
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