๐ถNoteBlock Mechanic
How to add your own blocks to the game
NOTEBLOCK-type allows for up-to 1149 custom blocks.
One per custom_variation
How to create a simple block?
Parent Models
The Nexo-item root configuration is the same as for any item (you can use any material like a diamond for example) and set a displayname, etc.
For the pack section you can use your own model or generated one.
To generate a block model just specify the parent model your block should use.
Supported parent_models for block are:
block/cube_all
, block/cross
, block/orientable
, block/orientable_vertical
and block/cube_column
.
Each of these parent models take a different amount of textures.
block/cube_all
takes 1 texture, block/cube_column
takes 2, block/cross
takes 1, block/orientable
takes 3 and block/orientable_vertical
takes 2.
For example, if you want to make a log block using the Directional Block mechanic, you should use block/cube_column
.
Block Mechanic configuration
To use this mechanic you need to tell to Nexo which model to use (to use the generated one, just put the name id of your item). You then need to use custom_variation which is not already used by another block. Valid custom_variation is 1..1149
Customize the breaking speed
You can customize the breaking speed and the most suitable tools with the hardness subsection.
drop.best_tool
dictates the "preferred tool" for this block which further tweaks the speed
Limited placing
You can customize what blocks a custom block/furniture can be placed on with limited_placing
subsection. You can use the roof
, floor
and wall
options to dictate where a block can be placed. By default, all are set to true
.
The type
specifies if it should only be allowed on or denied on specific blocks.
If type is ALLOW
the block can only be placed on the given blocks.
If the type is DENY
can be placed on all blocks not matching the given blocks.
The block_tags
can be found at this page. Useful if you want to allow/deny a group of blocks.
The block_types
are materials. Useful if you want to allow/deny a specific list block.
The nexo_blocks
are blocks defined in the nexo configuration.
This allows all custom blocks and furniture in here, but furniture requires a barrier-hitbox.
Beacon Base
You can also make a custom block work in beacons with the following:
A beacon will "activate" if any noteblock is in the pyramid, but the effect is only given when said noteblock(s) are base_beacon_blocks This is because it requires a Datapack that adds noteblocks to the given Tag, but it does not support individual blockstates
BlockLocker
You can use this to allow protection via BlockLocker Valid protectionTypes are CONTAINER, DOOR, ATTACHABLE
Storage
This is a sub-mechanic for furniture and noteblock mechanics, that let you make a custom storage container. Essentially a chest, closet or whatever you might want.
There's a few different types: STORAGE, PERSONAL, ENDERCHEST & DISPOSAL. STORAGE is similar to a normal chest. Anyone can open it and view the content of it. PERSONAL is essentially a custom enderchest, letting you edit the row-count and so on. ENDERCHEST is literally just the enderchest inventory, but letting you make a custom block/furniture to access it. DISPOSAL is a custom trashcan, letting you throw items in it, and they will be deleted when closed.\
Falling Blocks
This is a sub-mechanic that mimics sand & gravel for your custom block. Placing it next to another block, with no block beneath, will make it fall
Last updated