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

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 renderingenableRenderWire– The main enable for wire frame renderingfakeWorldCopyRadius– 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 viasetBlockState()are included, when true, all blocks in a radius offakeWorldCopyRadius - 1are compared to the real world by comparing thegetActualState()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 blocksrequireSneakForWire– Is holding sneak required to render the wire frameresetHoverTimerOnPosChange– 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 thedefaultStateGhostis, while holding the key set intoggleKeyGhosttoggleWireWhileHoldingKey– Whether to toggle the wire frame rendering state from what thedefaultStateWireis, while holding the key set intoggleKeyWiretoggleKeyGhost– The key that must be help for the ghost block rendering state to toggle from thedefaultStateGhost. Can beshift,altorctrl.toggleKeyWire– The key that must be help for the wire frame rendering state to toggle from thedefaultStateWire. Can beshift,altorctrl.transparencyAlpha– The alpha value of the ghost block, ifuseTransparencyistrue. Range:0.0 - 1.0, where0.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 thedefaultState*will be toggled/reversed while the key set in the correspondingtoggleKey*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
常见问题
Placement Preview 支持哪些 Minecraft 版本?
Placement Preview 支持 Minecraft Java 版 1.10.2–1.12.2,共 6 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
Placement Preview 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
masa 的其他作品
查看全部 →MaLiLib
一个客户端模组的前置库。包含 masa 客户端模组的大部分通用/共享代码,并为依赖模组之间添加了一些互操作支持。
Litematica
一款客户端蓝图模组,为创造模式建造提供额外功能
Tweakeroo
各类客户端微调,如自动补货、快捷栏切换/循环、灵活/快速放置方块等。
MiniHUD
一个“迷你F3”HUD模组,还带有光照等级、出生点区块、史莱姆区块等各种叠加显示。
评论
登录后评论和评分