-
Notifications
You must be signed in to change notification settings - Fork 0
All Methods
JoniCraftHD edited this page Jul 31, 2026
·
5 revisions
-
presetType('string')-> defines if the preset is an Item or block -only block or item are a valid string! -
.texture('string')-> tells the texture location like'minecraft:block/stone' -
.overlay('string)-> same as texture just that the overlay is put over the base texture -works on both items and blocks! -
.dropsPreset('string')-> explained better here -
.soundType('string')-> defines the blocks sound type - all valid types are shown in the kubejs wiki -
.hardness('int')-> sets the mining hardness of the block -
.resistance('int')-> sets the resistance of blocks against explosions -
.lightLevel('int')-> lets the block emit light (0-15) -
.hasGravity('boolean')-> when set to true, the block will have falling physics like sand or gravel -
.maxStackSize('int')-> max stacksize of the item -
.rarity('string')-> sets the rarity of the item -
.noItem()-> makes the block not have a item form -
.tagBlock('string')-> adds a tag to the block -
.tagItem('string')-> adds a tag to the item -
.tagBoth('string')-> tags both the item and the item form of the block
-
.presets('string')-> defines which presets you want to use -
.displayName('string')-> defines the name ingame -
.tintOverlay('hex')-> tints the overlay in the hexcode (i would use white overlays to make the tinting easy, for example for ores 4