promotional bannermobile promotional banner

JadeJS

this is an API layer between Jade and you KubeJS scripts

JadeJS

Jade extension for KubeJS. Customise the Jade block tooltip from KubeJS scripts.

Requirements

NeoForge, KubeJS and Jade (all required).

Features

  • Client-side event JadeEvents.blockTooltip, fired whenever Jade builds a block tooltip
  • Add text lines or Jade elements at the end of the tooltip or at a given index
  • Tag your lines and remove tooltip entries by tag
  • Replace the harvest tool display with your own list of items or item tags, with a valid/invalid mark
  • Jade binding: theme box styles, sprite boxes, color palettes, fluid objects, progress styles
  • JadeElements binding: text, spacer, item, fluid, progress bar, box and sprite elements

Example

Put this in kubejs/client_scripts/:

JadeEvents.blockTooltip(event => {
    if (event.blockId === 'minecraft:furnace') {
        event.addComponent(Text.of('Custom line'))
    }
})

Links

Source and issues: https://github.com/PalsFreniers/JadeJS

Link to KubeJS: https://www.curseforge.com/minecraft/mc-mods/kubejs

Link to Jade: https://www.curseforge.com/minecraft/mc-mods/jade

JadeJS Team

profile avatar
  • 1
    Projects
  • 17
    Downloads