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
typethis property can have these value:
REAL_NOTEuses a real block (note_block), no lag, no entities, 100% real blocks.
downsides:
no support for transparency.
max of 750 blocks in total.
REALuses a real block (mushroom), no lag, no entities, 100% real blocks. (although it's advised to use
REAL_NOTEwhich is more stable).downsides:
max of 191 blocks in total
REAL_TRANSPARENTuses a real block (chorus), no lag, no entities, 100% real blocks, also with transparency support!
downsides:
max of 63 blocks in total
REAL_WIREuses a real block (tripwire), no lag, no entities, 100% real blocks.
downsides:
max of 127 blocks in total.
TILEuses tile blocks (modified spawner with custom skin). It's not an entity but it have some downsides. Good thing is that you can create infinite blocks, there is no amount limit like REAL blocks.
downsides:
not a 100% real block, it's a retextured spawner
texture/model vanishes on high distance, so it will reveal the spawner vanilla texture
it could cause clientside lag if A LOT of blocks are in the player field of view, but only on lowend PCs.
FIREthis is a special type of block, it's the fire block.
downsides:
only a max of 14 custom fires is possible, so be sure to create only the ones you need.
REALandREAL_NOTEare meant to be used for decorative blocks and ores.TILEblocks for trade machines and machinery/rare decorative blocks. You should not useTILEblocks for ores because it may cause a bit of lag on chunk generation. They are not adviced to be used for populators or decorators.
rotx and roty
rotx and rotyThis allows you to specify a rotation for a particular model. This is an option for expert users. The specified rotation is STATIC, it's not dynamic. This is useful only if you want to create multiple variants of the same block without having to create a separate model manually.
placeable_on_water
placeable_on_waterThis allows to make some blocks placeable directly on water surface.
placeable_on_lava
placeable_on_lavaThis allows to make some blocks placeable directly on lava surface.
shift_up
shift_upThis allows to make some blocks placed 1 block up. This is useful for REAL_WIRE blocks to create tall plants.
custom_variants
custom_variantsSpecial property which allows to specify custom variants for that block. Accepts the same properties shown in the Minecraft wiki models page.
Example:
drop_when_mined
drop_when_minedAvailable since ItemsAdder 4.0.9
Older versions use cancel_drop with inverted true/false.
Controls if the block is dropped when mined. Useful if you have any mineral that will drop out of the block (loots), to avoid exploits.
drop_on_shears
drop_on_shearsAvailable since ItemsAdder 4.0.9
Controls if the block is dropped when using shears.
drop_on_silk_touch
drop_on_silk_touchAvailable since ItemsAdder 4.0.9
Controls if the block is dropped when using silk touch enchanted tools.
Tools blacklist and whitelist
You can set "_PICKAXE" so every pickaxe will match the list rule, also "_AXE" as the plugin checks if the material name contains the word you set in the rule. It also works for custom items ids, so for example if you set "ruby_" every ruby tool will work (ruby_pickaxe, ruby_axe...)
break_tools_blacklist
break_tools_blacklistBlacklist of tools that cannot break this block
break_tools_whitelist
break_tools_whitelistWhitelist of tools that can break this block
events_tools_blacklist
events_tools_blacklistBlacklist of tools that cannot run events on this block (placed_block.interact)
events_tools_whitelist
events_tools_whitelistWhitelist of tools that cannot run events on this block (placed_block.interact)
Other options
hardness
hardnessHardness of the block, it makes it more difficult to be mined. Refer to my blocks to get some examples (check blocks.yml file inside itemsadder namespace).
blast_resistance
blast_resistanceExplosion resistance (by default is hardness * 3)
no_explosion
no_explosionTotally immune from explosions, ignoring blast_resistance
sounds
soundshit, step and fall sounds require ItemsAdder 3.6.3b or greater.
You can specify custom sound names instead of vanilla sound. You can specify both Spigot sounds or vanilla Minecraft sounds names.
Example using vanilla sounds
Example using custom sounds
permission_suffix
permission_suffixThis property allows you to enable permissions for the block place and block break events. This setting is not specified by default because we want players to be able to break and place blocks freely. Players would need explicit permissions if you specify these properties:
ia.user.block.break.iasurvival.ruby_oreia.user.block.place.iasurvival.ruby_ore
Use 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
This has a downside, you can only set the experience drop to custom blocks, not to vanilla blocks.
2. Add the exp drop to loots
This is the best way because you can also apply this to vanilla blocks types and you can add as many as exp settings you want. This allows you to add more randomness and dynamicity to your drops.
Last updated
Was this helpful?