⛏️Making Custom Blocks
Custom Block Definitions determine the properties of a block, including its custom model data.
Creating Custom Blocks
baseBlock: GLASS
displayName: '&cR&6a&ei&an&9b&bo&5w &6B&el&ao&9c&bk'
lore:
- <rainbow>It shimmers beautifully in the sunlight.</rainbow>
canBeMinedWith:
- pickaxes
timeToBreak: 40
toolLevelRequired: 2
drops:
- DIAMOND(1)
dropLootTable: null
canBePushed: true
isAffectedByFortune: true
placeSound: BLOCK_AMETHYST_BLOCK_PLACE
breakSound: BLOCK_AMETHYST_BLOCK_BREAK
model: rainbow
events:
- onRightClick: # <-- onRightClick is an event, see the events page for more info
commands:
# this is a list of Minecraft commands, executed as @s
- tellraw @s {"text":"The block reverberates majestically.","italic":true,"color":"gray"}
cooldown: 20 # <-- cooldown of 20 ticks (1 second)Model data
Last updated
