扩展 WorldGuard 以创建临时建造区域。在指定区域内放置的方块会在可配置的时间后自动消失。
支持的平台

功能特性
- WorldGuard 集成:添加自定义
temp-build 区域标志
- 方块自动消失:在 temp-build 区域内放置的方块会在设定的时间后消失
- 视觉反馈:随着消失倒计时进行,显示方块的损坏进度
- 可配置的掉落行为:选择消失的方块是掉落物品还是直接消失
依赖项
WorldGuard 标志用法
TempBuild 添加了一个名为 temp-build 的自定义 WorldGuard 标志。
设置临时建造区域
# 允许在区域内进行临时建造
/region flag <region-name> temp-build allow
# 禁用临时建造(默认行为)
/region flag <region-name> temp-build deny
⚠️ 重要提示
要使 temp-build 标志正常工作,必须确保没有其他 WorldGuard 标志阻止该区域内的方块放置。
如果 temp-build 已设置为 ALLOW,但玩家仍无法放置方块,请检查是否存在冲突的标志,例如 passthrough、build 或其他可能阻止方块放置的保护标志。
配置选项
| 选项 |
类型 |
默认值 |
描述 |
blockDecayTime |
Integer |
30 |
方块在消失前保持的时间(秒)。设置为 0 或负数可完全禁用消失功能。 |
dropBlocks |
Boolean |
true |
当为 true 时,计时器结束后方块会掉落其对应的物品。当为 false 时,方块直接消失。 |
protectFromExplosions |
Boolean |
false |
当为 true 时,该区域内的方块受爆炸伤害保护。 |
allowFireBurn |
Boolean |
false |
当为 true 时,火焰可以烧毁并销毁该区域内的方块。 |
allowFireIgnite |
Boolean |
false |
当为 true 时,可以在该区域内点燃火焰。 |
allowBlockSpread |
Boolean |
false |
当为 true 时,如火焰和蘑菇等方块可以在区域内传播。 |
allowReplaceNonCollidableBlocks |
Boolean |
true |
当为 true 时,玩家可以替换该区域内的非实体方块(如草、花朵等)。 |
allowLiquidFlow |
Boolean |
false |
当为 true 时,水和岩浆可以在区域内流动。 |
allowReplaceLiquids |
Boolean |
true |
当为 true 时,玩家可以在液体空间中放置方块。警告:这也意味着无法在水面上放置方块。 |
blockedBlocks |
List |
[] |
禁止在临时建造区域内放置的方块类型列表(例如 TNT, OBSIDIAN)。 |
命令
| 命令 |
描述 |
权限 |
/tempbuild reload |
重新加载插件配置 |
tempbuild.command.reload |
权限
| 权限 |
描述 |
默认值 |
tempbuild.command.reload |
允许重新加载插件配置 |
op |
Extension to WorldGuard to create temporary building zones. Blocks placed in designated regions automatically decay after a configurable time period.
Supported Platforms

Features
- WorldGuard Integration: Adds custom
temp-build region flag
- Automatic Block Decay: Blocks placed in temp-build zones disappear after configured time
- Visual Feedback: Shows block damage progress as decay timer counts down
- Configurable Drop Behavior: Choose whether decaying blocks drop items or vanish
Dependencies
WorldGuard Flag Usage
TempBuild adds a custom WorldGuard flag called temp-build.
Setting Up a Temporary Build Region
# Allow temporary building in a region
/region flag <region-name> temp-build allow
# Disable temporary building (default behavior)
/region flag <region-name> temp-build deny
⚠️ IMPORTANT
For the temp-build flag to work properly, you must ensure that no other WorldGuard flags are blocking block placement in the region.
If players still cannot place blocks despite temp-build being set to ALLOW, check for conflicting flags like passthrough, build, or other protection flags that may be preventing block placement.
Configuration Options
| Option |
Type |
Default |
Description |
blockDecayTime |
Integer |
30 |
Duration in seconds that blocks remain before decaying. Set to 0 or negative to disable decay entirely. |
dropBlocks |
Boolean |
true |
When true, blocks drop their items when the timer expires. When false, blocks simply vanish. |
protectFromExplosions |
Boolean |
false |
When true, blocks in the region are protected from explosion damage. |
allowFireBurn |
Boolean |
false |
When true, fire can burn and destroy blocks in the region. |
allowFireIgnite |
Boolean |
false |
When true, fire can be ignited in the region. |
allowBlockSpread |
Boolean |
false |
When true, blocks like fire and mushrooms can spread within the region. |
allowReplaceNonCollidableBlocks |
Boolean |
true |
When true, players can replace non-solid blocks (like grass, flowers, etc.) in the region. |
allowLiquidFlow |
Boolean |
false |
When true, water and lava can flow within the region. |
allowReplaceLiquids |
Boolean |
true |
When true, players can place blocks in liquid spaces. Warning: This also prevents placing blocks on water surfaces. |
blockedBlocks |
List |
[] |
List of block types (e.g., TNT, OBSIDIAN) that cannot be placed in temporary build regions. |
Commands
| Command |
Description |
Permission |
/tempbuild reload |
Reload plugin configuration |
tempbuild.command.reload |
Permissions
| Permission |
Description |
Default |
tempbuild.command.reload |
Allows reloading the plugin configuration |
op |
评论 0
登录后参与评分
还没有评论,来抢沙发吧