Mod

Preview Placement

Quick rating

Preview Placement

No reviews yet

Renders placement previews for block items specified in resource pack files

Mod Loaders
NeoForge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

About

Project Details

Type
Mod
Latest Version
preview_placement-26.1.2.0.jar
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID

Resources

External Links

Source Issues Wiki Discord

About

Description

Preview Placement is a minecraft/neoforge mod which renders previews of blocks about to be placed for specific items specified in resource packs.

This mod is entirely client side, installing it on a server will do nothing (but it won't crash the server either, so it's safe to embed this mod in content mods that exist on both sides).

The purpose of this is so blocks with complicated orientation-placement behavior (like More Red's logic gates or Hyperbox's hyperboxes, which can be oriented 24 different ways depending on where the player clicks) can show the player how the block will be placed.

Placement Preview Files

Placement Preview files specify which items should render placement previews and what model should be rendered for each blockstate which can be placed.

Placement Preview files must have file paths of the form assets/<modid>/preview_placement/placement_preview/<item>.json, where modid:item is the id of a BlockItem item.

They have a json format similar to variant blockstate files, mapping blocks to blockstate selectors to rotated item models. For example:

// assets/minecraft/preview_placement/placement_preview/dirt.json
{
    "minecraft:dirt": { // block id
        "": {"model": "preview_placement:dirt_preview"} // model field refers to an *item json*, not a model json
    }
}

Multiple block ids can be specified, for items such as torches that can place different kinds of blocks.

Another example:

// assets/morered/preview_placement/placement_preview/and_gate.json
{
    "morered:and_gate": {
        "facing=down,rotation=0": {
            "model": "morered:and_gate_preview"
        },
        "facing=down,rotation=1": {
            "model": "morered:and_gate_preview",
            "y": 90
        },
        "facing=down,rotation=2": {
            "model": "morered:and_gate_preview",
            "y": 180
        },
        "facing=down,rotation=3": {
            "model": "morered:and_gate_preview",
            "y": 270
        },
        "facing=east,rotation=0": {
            "model": "morered:and_gate_preview",
            "x": 270,
            "y": 90
        },
        "facing=east,rotation=1": {
            "model": "morered:and_gate_preview",
            "y": 180,
            "z": 270
        },
        "facing=east,rotation=2": {
            "model": "morered:and_gate_preview",
            "x": 90,
            "y": 270
        },
        "facing=east,rotation=3": {
            "model": "morered:and_gate_preview",
            "z": 270
        }
    }
}

Model fields refer to item jsons, not model jsons.

Blockstate selectors do not need to be exhaustive, states not covered by any selector will have no previews rendered.

Placement Preview jsons can only be created for items which extend BlockItem.

Only variants format is supported, not multipart, and random models are not currently supported.

Referenced item jsons do not have to refer to any registered item:

// assets/preview_placement/item/dirt_preview.json
{
  "model": {
    "type": "model",
    "model": "preview_placement:block/dirt_preview"
  }
}

Placement Preview Models

Preview Placement provides a preview_placement:placement_preview model loader which can take an existing model and render it translucently:

// assets/preview_placement/models/item/dirt_preview.json
{
    "loader": "preview_placement:placement_preview",
    "model": {
        "parent": "block/dirt"
    }
}

Config

A config file is created in the (minecraft instance)/config/preview-placement-client.toml which has the following values by default:

#Render preview of items specified in preview_placement/placement_preview asset folder before placing them
showPlacementPreview = true
#Opacity of the render preview for models using the preview_placement:placement_preview model loader. Higher value = less transparent, lower = more transparent
# Default: 0.5
# Range: 0.0 ~ 1.0
previewPlacementOpacity = 0.5

Depending on the Mod

Mods that wish to depend on Preview Placement can view the dependency setup on github: https://github.com/Commoble/preview_placement

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
Created
Last synced
When ModDex last fetched and imported data for this project from CurseForge or Modrinth. High-traffic and active projects are checked more often.
Next pipeline sync