一个简单的插件,在放置或更新方块时对其应用重力。方块更新的示例包括树叶腐烂、爆炸或放置/破坏相邻方块。使用白名单或黑名单来控制哪些方块受影响,并选择在应用重力之前需要多少空间。
功能:
- 在方块更新或仅当它们被放置时应用重力。
- 将一种或多种方块类型列入黑名单以避免重力作用。
- 将一种或多种方块类型列入白名单以仅对这些方块应用重力。
- 通过权限控制重力适用的对象。(当“only-on-place”= true 时)
- 选择方块下落前所需的空间数量。
- 选择将应用重力的世界。
命令:
权限:
- gravity.apply - (仅在配置选项“only-on-place”设置为 true 时需要。 v0.6+)
配置:
- drop-item: true/false - 如果方块掉落到无效位置(例如落在火把上),允许掉落物品。
- clearance: 1 到 256 - 在应用重力之前,方块下方所需的空气方块数量。v0.6+
- only-on-place: true/false - 如果为 true,重力将仅应用于被放置的方块。v0.6+
- blacklist: true/false - 启用此选项以列出你不希望应用重力的方块类型。
- blacklist-blocks: 如果 blacklist 设置为 true,则此列表中的 材料名称 将避免重力作用。
- whitelist: true/false - 启用此选项以列出你希望应用重力的方块类型。
- whitelist-blocks: 如果 whitelist 设置为 true,则此列表中的 材料名称 将具有重力效果。
- enabled-worlds: 你希望应用重力的世界名称列表。
默认 config.yml
drop-item: true
only-on-place: false
clearance: 1
blacklist: false
blacklist-blocks:
- STONE
- NETHERRACK
- NETHER_BRICK
- ENDER_STONE
- LEAVES
- LEAVES_2
- BEDROCK
- JUKEBOX
- CAULDRON
- ENDER_PORTAL (IMPORTANT)
- ENDER_PORTAL_FRAME (IMPORTANT)
whitelist: true
whitelist-blocks:
- LOG
- GOLD_BLOCK
enabled-worlds:
- world
- world_nether
- world_the_end
禁用的方块:
- 已经具有重力效果的方块,如沙子、沙砾和龙蛋。
- 任何带有存储库存的方块,例如箱子、熔炉或酿造台。
- 带有存储数据的方块,例如告示牌。
兼容性:
Minecraft 1.3.* 至 1.7.* 版本以及可能的未来版本。
待办事项:
添加权限控制。 v0.2
添加配置黑名单以列出不应应用重力的方块。 v0.4
添加配置白名单以列出应应用重力的方块。 v0.5
添加配置选项,允许物品落在透明方块上不掉落。 v0.3
对所有方块应用重力,而不仅仅是放置的方块。 v0.6
仅对配置选项 "enabled-worlds" 中列出的世界应用重力。 v0.7
移除对方块 ID 的使用,改用 材质名称 (Material names)。v0.6
- 限制同时下落的方块数量,以防止因常见方块导致客户端或服务器崩溃。
注意事项:
- 对于 LogBlock 等日志插件,事件不会被取消,但会被记录为玩家放置了一个空气方块。
警告!
对常见方块应用重力可能导致客户端卡顿或世界损坏。例如,基岩或石头可能导致世界坍塌,从而产生大量的方块更新。某些方块可能会导致意外行为,例如 ENDER_PORTAL 和 ENDER_PORTAL_FRAME 方块可能导致服务器崩溃,因此请排除这些方块。
粗体文本 = 新功能或更改
视频展示:
Simple plugin that applies gravity to blocks when they are placed or update. A example of a block update could be a Leaf decaying, an explosion or when you place or break an adjacent block. Use the Whitelist or blacklist to control what blocks are affected and choose how much clearance is required before gravity is applied.
Features:
- Apply gravity to blocks when they update or just when they are placed.
- Blacklist a block type or list of block types to avoid gravity.
- Whitelist a block type or list of block types to ONLY apply gravity to.
- Control who gravity applies to with permissions. (When "only-on-place" = true)
- Choose how much clearance is required before a block can fall.
- Choose which Worlds gravity will be applied to.
Commands:
Permissions:
- gravity.apply - (Only required when config option "only-on-place" is set to true. v0.6+)
Configurations:
- drop-item: true/false - Allow items to drop if a block falls to an invalid location. For example onto a torch.
- clearance: 1 to 256 - The number of air blocks below the block before gravity is applied. v0.6+
- only-on-place: true/false - If true gravity will only apply to the block that was placed. v0.6+
- blacklist: true/false - Enable this to list block types you DO NOT want gravity to apply.
- blacklist-blocks: If blacklist is set to true the Material names in this list will avoid gravity.
- whitelist: true/false - Enable this to list block types you want gravity to apply.
- whitelist-blocks: If whitelist is set to true only the Material names on this list will have gravity.
- enabled-worlds: A list of World names that you want gravity to apply.
Default config.yml
drop-item: true
only-on-place: false
clearance: 1
blacklist: false
blacklist-blocks:
- STONE
- NETHERRACK
- NETHER_BRICK
- ENDER_STONE
- LEAVES
- LEAVES_2
- BEDROCK
- JUKEBOX
- CAULDRON
- ENDER_PORTAL (IMPORTANT)
- ENDER_PORTAL_FRAME (IMPORTANT)
whitelist: true
whitelist-blocks:
- LOG
- GOLD_BLOCK
enabled-worlds:
- world
- world_nether
- world_the_end
Disabled blocks:
- Blocks which already have gravity like sand gravel and Dragon Eggs.
- Any Block with a stored inventory like a Chest, Furnace or Brewing Stand.
- Blocks with stored data like a Sign.
Compatibility:
Minecraft Versions 1.3.* to 1.7.* and possibly future Versions.
TODO:
Add permissions. v0.2
Add a config blacklist to list the blocks NOT to apply gravity to. v0.4
Add a config whitelist to list the blocks to apply gravity to. v0.5
Add a config option to allow items to not drop if they land on a transparent block. v0.3
Apply gravity to all blocks, not just the block placed. v0.6
Apply gravity to only Worlds listed in config option "enabled-worlds". v0.7
Remove the use of block ID's and instead use the Material names.v0.6
- Limit the number of blocks falling at once, to prevent possible client or server crashes due to common blocks.
Notes:
- For logging plugins such as LogBlock, the event is not cancelled but will be recorded as if the player placed an air block.
WARNING!
Applying gravity to common blocks can cause client lag or World corruption. For example Bedrock or Stone could cause the world to collapse causing a huge number of block updates. Some blocks can cause unexpected behavior, for example ENDER_PORTAL and ENDER_PORTAL_FRAME blocks can cause server crashes so please exclude this block.
Bold text = New feature or change
Video Showcase:
评论 0
登录后参与评分
还没有评论,来抢沙发吧