Download Placement Preview — Minecraft Mods — MetaMods

Placement Preview

Active

Downloads

0

Last update

2 years ago

Versions

1.10.2 — 1.12.2
Client
Forge
Control
Utils

Placement Preview

A client-side mod that displays a preview of the block that will be placed when right-clicking.

Preview example

Configuration

Various configuration options are available through the in-game settings menu or configuration file:

  • defaultStateGhost - Enable or disable transparent block rendering by default (without pressing any keys)
  • defaultStateWire - Enable or disable wireframe rendering by default (without pressing any keys)
  • enableRenderGhost - Main toggle for transparent block rendering
  • enableRenderWire - Main toggle for wireframe rendering
  • fakeWorldCopyRadius - Radius for copying blocks to the virtual world. Change detection radius is one less than this value
  • renderAfterDelay - Preview activates only after holding the cursor over a block for a certain time
  • renderDelay - Time the cursor must be held over a block to activate the preview
  • renderOverlapping - Display transparent block preview over existing blocks
  • requireSneakForGhost - Whether holding Shift is required to display transparent blocks
  • requireSneakForWire - Whether holding Shift is required to display wireframe
  • resetHoverTimerOnPosChange - Whether to reset the delay timer when moving the cursor to a different block
  • toggleGhostWhileHoldingKey - Whether to toggle transparent block rendering state relative to defaultStateGhost when holding the toggleKeyGhost key
  • toggleWireWhileHoldingKey - Whether to toggle wireframe rendering state relative to defaultStateWire when holding the toggleKeyWire key
  • toggleKeyGhost - Key for toggling transparent block rendering state (shift, alt, or ctrl)
  • toggleKeyWire - Key for toggling wireframe rendering state (shift, alt, or ctrl)
  • transparencyAlpha - Transparency value for transparent blocks when useTransparency is enabled (0.0 - completely transparent, 1.0 - completely opaque)
  • useTransparency - Display transparent blocks with transparency

Rendering can be completely enabled/disabled with the Toggle key (default P). The enableRenderGhost state is toggled with Toggle Ghost (default Shift + P), and enableRenderWire with Toggle Wire (default Ctrl + P).

Main operating principles:

  • The enableRender parameters are the main toggles - disabling them completely blocks the corresponding rendering mode
  • defaultState settings determine the default rendering state without pressing any keys
  • requireSneakFor* controls whether holding Shift is required to activate rendering
  • toggleWhileHoldingKey toggles the rendering state relative to defaultState when holding the corresponding key

Thus, you can configure one or both rendering modes to be displayed by default, disable them when holding keys, require holding Shift, use delays, or combine various activation conditions.

Project members
masa

masa

Developer

masady

masady

Created: 11 Jun 2023

ID: 12360