Placement Preview

Quick rating

Community listing page, reviews here may not be monitored by the author.

Placement Preview

By masaOwner , masady

No reviews yet

A client-side mod to show a preview of the block-to-be-placed

No Theme
No Genre
QoL & Tweaks
Client Utility
Mod Loaders
Forge
Minecraft

Community voices

Reviews

List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Show per page
10
25
50
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

Compatibility

Supported Environments

Where It Runs
Client Only

Runs entirely on the client. Works on vanilla servers.

About

Project Details

Type
Mod
License
GNU Lesser General Public License v3.0 only
Latest Version
placementpreview-1.12.2-0.3.2.jar

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
Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

Description

A client-side mod for displaying a preview of the block that would be placed on right click.

Example:

Configuration

There are several configuration options available, either via the in-game config menu, or in the configuration file.

  • defaultStateGhost Should the ghost block rendering be enabled or disabled by default (when not holding any keys)
  • defaultStateWire Should the wire frame rendering be enabled or disabled by default (when not holding any keys)
  • enableRenderGhost The main enable for ghost block rendering
  • enableRenderWire The main enable for wire frame rendering
  • fakeWorldCopyRadius The radius of blocks that will be copied to the fake world. The change detection radius is one less than this value.
  • renderAfterDelay The preview will only activate after the cursor has been held over a block for an amount of time.
  • renderDelay The amount of time the cursor must be held over a block for the preview to activate.
  • renderOverlapping Render a ghost block preview over existing blocks. This also changes the way the changed block models are detected. (when false, only blocks that were modified in the fake world via setBlockState() are included, when true, all blocks in a radius of fakeWorldCopyRadius - 1 are compared to the real world by comparing the getActualState() reference. This means that things like changing fence connections of adjacent existing blocks will be shown.)
  • requireSneakForGhost Is holding sneak required to render the ghost blocks
  • requireSneakForWire Is holding sneak required to render the wire frame
  • resetHoverTimerOnPosChange Whether the hover delay will reset when the cursor moves over a different block.
  • toggleGhostWhileHoldingKey Whether to toggle the ghost block rendering state from what the defaultStateGhost is, while holding the key set in toggleKeyGhost
  • toggleWireWhileHoldingKey Whether to toggle the wire frame rendering state from what the defaultStateWire is, while holding the key set in toggleKeyWire
  • toggleKeyGhost The key that must be help for the ghost block rendering state to toggle from the defaultStateGhost. Can be "shift", "alt" or "ctrl".
  • toggleKeyWire The key that must be help for the wire frame rendering state to toggle from the defaultStateWire. Can be "shift", "alt" or "ctrl".
  • transparencyAlpha The alpha value of the ghost block, if useTransparency is true. 0 = completely transparent, 1 = completely opaque.
  • useTransparency Render the ghost blocks as transparent/translucent.


The rendering can be toggled on/off alltogether via the Toggle key, which is P by default.
The enableRenderGhost state can be toggled via the Toggle Ghost keybind (SHIFT + P by default).
The enableRenderWire state can be toggled via the Toggle Wire keybind (CTRL + P by default).

So to sum it up a bit:

  • The enableRender* options are the "master controls" and turning them off means nothing will be rendered no matter what the other options for that mode (ghost or wire) are.
  • Then the defaultState* options set the "default rendering state" (on vs. off) for that mode, when no keys are being pressed.
  • requireSneakFor* controls if sneaking is required for the rendering to activate for that mode.
  • toggle*WhileHoldingKey When enabled, the on/off state from the defaultState* will be toggled/reversed while the key set in the corresponding toggleKey* option is being pressed

So basically you can set it up to render one or both of the modes by default and be disabled while holding a key (ctrl or alt or shift), or make them require sneaking, or make them require holding ctrl or alt or shift, or make them be on by default but on a delay, or make them require sneaking and/or holding a key and still require a delay... You get the idea, I hope :p

Mod packs/permissions

  • Mod packs: go ahead!
  • Re-hosting the mod file otherwise is not cool, mmkay?

Short demonstration video (from version 0.1.0)

TBA

Description

A client-side mod for displaying a preview of the block that would be placed on right click.

preview example screenshot

example

Configuration

There are several configuration options available, either via the in-game config menu, or in the configuration file.

  • defaultStateGhost - Should the ghost block rendering be enabled or disabled by default (when not holding any keys)
  • defaultStateWire - Should the wire frame rendering be enabled or disabled by default (when not holding any keys)
  • enableRenderGhost - The main enable for ghost block rendering
  • enableRenderWire - The main enable for wire frame rendering
  • fakeWorldCopyRadius - The radius of blocks that will be copied to the fake world. The change detection radius is one less than this value.
  • renderAfterDelay - The preview will only activate after the cursor has been held over a block for an amount of time.
  • renderDelay - The amount of time the cursor must be held over a block for the preview to activate.
  • renderOverlapping - Render a ghost block preview over existing blocks. This also changes the way the changed block models are detected. (when false, only blocks that were modified in the fake world via setBlockState() are included, when true, all blocks in a radius of fakeWorldCopyRadius - 1 are compared to the real world by comparing the getActualState() reference. This means that things like changing fence connections of adjacent existing blocks will be shown.)
  • requireSneakForGhost - Is holding sneak required to render the ghost blocks
  • requireSneakForWire - Is holding sneak required to render the wire frame
  • resetHoverTimerOnPosChange - Whether the hover delay will reset when the cursor moves over a different block.
  • toggleGhostWhileHoldingKey - Whether to toggle the ghost block rendering state from what the defaultStateGhost is, while holding the key set in toggleKeyGhost
  • toggleWireWhileHoldingKey - Whether to toggle the wire frame rendering state from what the defaultStateWire is, while holding the key set in toggleKeyWire
  • toggleKeyGhost - The key that must be help for the ghost block rendering state to toggle from the defaultStateGhost. Can be shift, alt or ctrl.
  • toggleKeyWire - The key that must be help for the wire frame rendering state to toggle from the defaultStateWire. Can be shift, alt or ctrl.
  • transparencyAlpha - The alpha value of the ghost block, if useTransparency is true. Range: 0.0 - 1.0, where 0.0 = completely transparent, 1.0 = completely opaque.
  • useTransparency - Render the ghost blocks as transparent/translucent.

The rendering can be toggled on/off all together via the Toggle key, which is P by default. The enableRenderGhost state can be toggled via the Toggle Ghost keybind (Shift + P by default). The enableRenderWire state can be toggled via the Toggle Wire keybind (Ctrl + P by default).

So to sum it up a bit:

  • The enableRender* options are the "master controls" and turning them off means nothing will be rendered no matter what the other options for that mode (ghost or wire) are.
  • Then the defaultState* options set the "default rendering state" (on vs. off) for that mode, when no keys are being pressed.
  • requireSneakFor* controls if sneaking is required for the rendering to activate for that mode.
  • toggle*WhileHoldingKey - When enabled, the on/off state from the defaultState* will be toggled/reversed while the key set in the corresponding toggleKey* option is being pressed.

So basically you can set it up to render one or both of the modes by default and be disabled while holding a key (Ctrl or Alt or Shift), or make them require sneaking, or make them require holding Ctrl or Alt or Shift, or make them be on by default but on a delay, or make them require sneaking and/or holding a key and still require a delay... You get the idea, I hope :p

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

~50,000
Total Downloads
CurseForge
~48,000
Modrinth
~2,000
Last Updated
CurseForge
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works