Making Custom Blocks
Custom Block Definitions determine the properties of a block, including its custom model data.
Creating Custom Blocks
Custom block definitions go into plugins/Origami/custom/MY-CONTENT-PACK-NAME/blocks
If this directory is empty, then Origami will generate an example file for you. Below is a working example of a custom block, rainbow_block.yml
:
(Integer)
dropExperience
is how much XP should be dropped when the block is mined. XP can only be gained from a block if using the correct tool.(List of formatted strings)
lore
- lore to display on the custom item. Each entry uses the same formatting rules as thedisplayName
.(List of tools)
canBeMinedWith
- multiple "preferred tools" can be set here, with valid tool types being:pickaxes
,axes
,shovels
,hoes
, andswords
. A block can only be broken quickly or drop its items if one of the correct tools is used. Usually blocks in Minecraft only set one of these.(Integer)
toolLevelRequired
- specifies the minimum tool level allowed for mining the block. Wooden tools are level 1, Stone are level 2, etc.
(Boolean)
canBePushed
- if true, the block can be moved by Pistons and Sticky Pistons.(Boolean)
isAffectedByFortune
- if true, the Fortune enchantment will apply a multiplier to the amount of each dropped item. Useful when creating ores.
Model data
(String)
model
- the name of the custom model. A value ofrainbow
here would point to<server folder>/plugins/Origami/custom/MY-CONTENT-PACK-NAME/models/block/rainbow.json
Last updated