ModsFinder

DisplayDelightJS

by nhjr

DisplayDelightJS lets KubeJS scripts register placeable food blocks for Display Delight, a NeoForge library for displaying food on plates and in stacks.

NeoForgeClient and serverGNU Lesser General Public License v3.0 or laterOpen source1.21.1

What it does

Registering a placeable food takes three steps in a KubeJS script: an abbreviation for the mod id, a food block built with a custom BlockBuilder, and a food item tagged as placeable. The author describes this split as a technical requirement of the registration process. A full custom BlockBuilder reference is listed on the project wiki, and most of its methods work with the custom builder, except loot tables, since Display Delight uses hardcoded loot.

Food that stacks uses maxDisplayStack to set the maximum count, and its block model assets follow a numbered suffix pattern up to that maximum. Non-stackable food uses a regular placement model. The demo registers several items from the Fruits Delight example, showing both kinds of food in use.

The mod requires Display Delight and KubeJS, and it runs on client and server, so both the server and every player need it. Files are published for NeoForge 1.21.1 only, with 1.0 as the latest file, and the code is released under the GNU Lesser General Public License v3.0 or later, so it is open source.

Key features

  1. Placeable food blocks

    Scripts register food as placeable blocks, so foods can be set down and displayed in the world.

  2. Stackable and single foods

    Stackable foods use a maximum display stack value, while non-stackable foods place a single model.

  3. Custom BlockBuilder

    A custom block builder supplies the block properties, with most methods working as intended.

  4. Plate model handling

    The plate can be hidden by setting noModelModify, which lets a script build the plate model block manually.

Compatibility

Latest build for each game version and loader.

1.21.11.0
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 2

Display DelightAllows to place every food item in Farmer's Delight in 3D
Required
KubeJSEdit recipes, add new custom items, script world events, all in JavaScript!
Required

Use cases

Food decoration packs

Pack authors can add displayable foods to Display Delight through KubeJS scripts without writing Java code.

Example foods

The demo shows two working food displays and can serve as a starting template for new registrations.

Who it’s for: Modpack authors and script writers who already use KubeJS and Display Delight and want to add their own placeable foods.

Questions

Which dependencies does DisplayDelightJS need?

It requires Display Delight and KubeJS. Both must be installed next to DisplayDelightJS on NeoForge 1.21.1.

Does DisplayDelightJS need to be installed on both sides?

Yes. Installation covers the server and each player's game.

Why does the registration take three parts?

The author describes the split as a technical requirement: an abbreviation, the food block and the placeable food item are each registered in a separate step.

Do loot tables work with the custom BlockBuilder?

No. Most builder methods work, but loot tables are excluded because Display Delight uses hardcoded loot.

In the catalog

DisplayDelightJS is one of 3,514 Library mods on ModsFinder, and one of 1,449 Library mods for NeoForge. 32,366 mods support Minecraft 1.21.1.

Similar mods

What the author says

Display Delight looks great. However, you might want to have some mods other than its support list in your modpack, so I've introduced the ability to register more placable foods with KubeJS. This mod is dedicated for modpacks, feel free to use it anywhere. For non-stackable food block, the model assets are in their…
nhjr, on the Modrinth page

Official listing

Owner
nhjr
Published
2026-09-04
Updated on Modrinth
2026-09-05
Facts verified
2026-10-15

Tags