Skip to content

All Methods

JoniCraftHD edited this page Jul 31, 2026 · 5 revisions

Preset Methods:

  1. presetType('string') -> defines if the preset is an Item or block -only block or item are a valid string!

  2. .texture('string') -> tells the texture location like 'minecraft:block/stone'

  3. .overlay('string) -> same as texture just that the overlay is put over the base texture -works on both items and blocks!

  4. .dropsPreset('string') -> explained at the bottom of this page !

  5. .soundType('string') -> defines the blocks sound type - all valid types are shown in the kubejs wiki

  6. .hardness('int') -> sets the mining hardness of the block

  7. .resistance('int') -> sets the resistance of blocks against explosions

  8. .lightLevel('int') -> lets the block emit light (0-15)

  9. .hasGravity('boolean') -> when set to true, the block will have falling physics like sand or gravel

  10. .maxStackSize('int') -> max stacksize of the item

  11. .rarity('string') -> sets the rarity of the item

  12. .noItem() -> makes the block not have a item form

  13. .tagBlock('string') -> adds a tag to the block

  14. .tagItem('string') -> adds a tag to the item

  15. .tagBoth('string') -> tags both the item and the item form of the block

  16. .namePrefix('string') -> adds text before the display name -like 'Raw ' now the raw appears before the display name (id leave a space after the text to not make it look like RawIron instead of Raw Iron

  17. .nameSuffix('string') -> same as prefix just after the display name

  18. .idSuffix('string') same as nameSuffix just in the item ID

Bulk Creator Methods

  1. .presets('string') -> defines which presets you want to use
  2. .displayName('string') -> defines the name ingame
  3. .tintOverlay('hex') -> tints the overlay in the hexcode (i would use white overlays to make the tinting easy, for example for ores)
  4. .tooltip('string') adds a simple tooltip -Text.gray('Shiny Object') for example

.dropPreset

drop preset makes blocks drop another preset item, if .dropPreset is used, then the item preset needs to be defined before the block preset for it to work!

Clone this wiki locally