Block
Block properties
specific_properties:
block:
placed_model:
type: REAL_NOTE
break_particles: BLOCK
rotx: 0
roty: 0
drop_when_mined: true
light_level: 12 # make block emit light
# tools you can't use to break block (accepts partial name of material/customitem)
break_tools_blacklist:
- WOODEN_PICKAXE
- STONE_PICKAXE
- IRON_PICKAXE
# tools you can use to break block (accepts partial name of material/customitem)
break_tools_whitelist:
- DIAMOND_PICKAXE
- PICKAXE
- pickaxe
hardness: 2
blast_resistance: 1 # explosion resistance (by default is hardness * 3)
no_explosion: false # totally immune from explosions, ignoring blast_resistance
sound: # customizable sounds of the block
break:
name: BLOCK_WOOD_BREAK
volume: 1
pitch: 0.9
place:
name: BLOCK_WOOD_PLACE
volume: 1
pitch: 0.9placed_model
placed_modeltype
typerotx and roty
rotx and rotyplaceable_on_water
placeable_on_waterplaceable_on_lava
placeable_on_lavashift_up
shift_upcustom_variants
custom_variantsdrop_when_mined
drop_when_mineddrop_on_shears
drop_on_shearsdrop_on_silk_touch
drop_on_silk_touchTools blacklist and whitelist
break_tools_blacklist
break_tools_blacklistbreak_tools_whitelist
break_tools_whitelistevents_tools_blacklist
events_tools_blacklistevents_tools_whitelist
events_tools_whitelistOther options
hardness
hardnessblast_resistance
blast_resistanceno_explosion
no_explosionsounds
soundsExample using vanilla sounds
Example using custom sounds
permission_suffix
permission_suffixUse the official files editor to read all the properties
Files editorDrop experience from block
1. Add the experience drop directly in the custom block creation
2. Add the exp drop to loots
最終更新