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
updated to reflect changes made in the generation system authored Nov 08, 2023 by Lxlp's avatar Lxlp
Show whitespace changes
Inline Side-by-side
Showing with 16 additions and 20 deletions
+16 -20
  • Custom-Blocks.md Custom-Blocks.md +16 -20
  • No files found.
Custom-Blocks.md
View page @ f052f417
Custom Blocks
---------
Crucible allows people to create "custom blocks" using the extra block states from mushroom blocks, note blocks, or tripwires.
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).
Custom Block Options
-----------------
All options are placed under a "CustomBlock" section on an item.
## Custom Block Options
All options are placed under a `CustomBlock` section on an item.
### Base Options
- `Type` - The type of custom block, defaults to mushroom (MUSHROOM_BLOCK, NOTE_BLOCK, or TRIPWIRE)
- `Id` - The ID of the custom block.
- `Texture` - The path of the texture the block will use
Putting in Resource Pack
------------------------
Crucible can automatically generate the blockstate and model files for you to put in your resource pack. It will only generate files for the types of blocks that have custom blocks configured for them.
To do so, simply type `/crucible generate` in the console or in-game and the files will generate in `plugins/MythicCrucible/resourcepack`.
By default, the block models will generate pointing to:
- `block/custom/mushroom_#` for mushroom blocks
- `block/custom/noteblock_#` for noteblocks
... where # is the ID that has been configured.
```yaml
CustomBlock:
Type: MUSHROOM_BLOCK
Id: 18
Texture: block/stars1
```
So for example, default you'd want to put a texture file for Mushroom block 1 in your resource pack located in:
- `assets/minecraft/textures/block/custom`, named `mushroom_1.png`
## Putting in Resource Pack
Please refer to the [Resourcepack Generator](ResourcePack-Generator) wiki page for info.
Example Configuration
---------------------
```
## Example
```yaml
TestBlock:
Id: STONE
Model: 5
......@@ -37,11 +31,13 @@ TestBlock:
CustomBlock:
Type: MUSHROOM_BLOCK
Id: 30
Texture: block/exampletexture
CustomBlockSkills:
- sound{s=block.amethyst_block.place} @self ~onBlockPlace
- sound{s=block.amethyst_block.break} @self ~onBlockBreak
```
## WorldEdit Support
You can place custom blocks using worldedit via the following syntax:
```
......
Clone repository
  • Home
  • Changelogs
  • Commands / Permissions
  • FAQ / Common Issues
Usage
  • Installation
  • Item Options
  • Item Skills
  • Item Durability
  • Crafting Recipes
    • Workbenches
  • Ammo System / Guns
  • Dynamic Lore Generation
  • ResourcePack Generator
Item Types
  • Blocks
  • Furniture
    • Paint Brush
  • Bags
  • Hats
Mechanics
  • Item Mechanics
  • Item Targeters
  • Item Triggers
  • Item Conditions
Placeholders
  • Placeholders
  • Placeholders.yml