Used in Block Registry
Sets the block's display name.
(No longer supported in 1.20+, see
Set the item's material to an available material from the Materials List:
Set block map color.
Set block sound type. You can also use one of these shortcut methods:
Adds more blockstates to the block, like being waterlogged or facing a certain direction.
Adds a tag to the block, e.g
Adds a tag to the block's item, if it has one, e.g
Adds both block and item tag if possible, e.g
Sets the block's Hardness value. Used for calculating the time it takes for the block to be destroyed.
Set's the block's resistance to things like explosions
Shortcut to set the resistance to MAX_VALUE and hardness to -1 (like bedrock)
Sets the block's light level (0.0 - 1.0).
Sets whether the block is opaque. Full, opaque blocks will not let light through.
Sets whether the block renders as a full block. Full blocks have certain optimizations applied to them, such as not rendering terrain behind them. If you're using
.box()to make a custom hitbox, please set this to
true, the block will use certain block tags to determine whether it should drop an item when mined. For example, a block tagged with
#minecraft:needs_iron_toolwould drop nothing unless it was mined with an axe or pickaxe that was at least iron level.
Sets the render type.
Recolors a block to a certain color
Textures all 6 sides of the block to the same texture.
The path must look like
kubejs:block/texture_name(which would be included under
Texture one side by itself.
Specify a custom model.
The path must look like
'kubejs:block/texture_name'(which would be included under
Removes the associated item. Minecraft does this by default for a few blocks, like nether portal blocks. Use this if the player should never be able to hold or place the block.
scale16 boolean defaults to true.
Sets a custom hitbox for the block, affecting collision. You can use this multiple times to define a complex shape composed of multiple boxes.
Each box is a rectangular prism with corners at (x0, y0, z0) and (x1, y1, z1)
You will probably want to set up a custom block model that matches the shape you define here.
The final boolean determines the coordinate scale of the box. Passing in
truewill use the numbers 0-16, while passing in
falsewill use coordinates ranging from 0.0 to 1.0
Removes the default full-block hitbox, allowing you to fall through the block.
Tells the renderer that the block isn't solid.
Allows the block to be waterloggable.
The block will not drop itself, even if mined with silk touch.
Sets the slipperiness of the block. Affects how much entities slide while moving on it. Almost every block in Vanilla has a slipperiness value of 0.6, except slime (0.8) and ice (0.98).
A modifier affecting how quickly players walk on the block.
A modifier affecting how high players can jump off the block.
A function to run when the block recieves a random tick.
Modify certain properties of the block's item.
See Item Registry for more info.
Pass in a custom loot table JSON directly
Pass in a custom blockstate JSON directly
Pass in a custom model JSON directly
true, the block is not counted as a valid spawnpoint for entities
Whether the block will suffocate entities that have their head inside it
Whether the block counts as blocking a player's view.
Sets whether the block will conduct redstone. True by default.
Sets whether the block is transparent or not
Batches a bunch of methods to make blocks such as glass
.defaultCutout()but using translucent layer instead