属于 Minds of Chimera Project(开发中)
CodeBlocks | MOCPlaytimeTracker | MOCDBLib | RegenBlock | MOCGoodEats | MOC3DImporter | ImageImport | MOCKiosk | MOCRater | MOCFizziks | GravitySheep | MOCChemistry | MOCRegistry
RegenBlock 允许在 Minecraft 世界中创建具有特定重生计时器的区域。一旦区域内的方块被玩家破坏或放置了新方块,计时器结束后它将恢复到之前的状态。
示例用途
某些区域内自然资源的再生,将区域重置为早期状态——在我的服务器的教程区域中,有一座需要由玩家修复的断桥。但通常情况下,当玩家完成修复后,下一位进行教程的玩家看到的桥仍然是完好的;使用 RegenBlock 我能够“再生”那座旧的断桥。这在一定程度上可以作为反 griefing(防止恶意破坏)的手段,但它仅检查与玩家放置或破坏方块相关的事件,而不包括 TNT、岩浆火等。
权限
regenblock.self - 用于使用任何命令的全部或部分权限
命令
(所有命令均需 OP 权限)
- 选择
- /rb select (ex,ey,ez) - 开始/停止玩家的选择模式。ex/ey/ez 将在该方向上扩展选择范围。Y 轴为垂直方向。
- /rb listselection - 列出玩家当前的选择点。
- 编辑器
- /rb edit - 进入编辑器模式,允许你在区域内更改方块而不会触发重生机制。
- 信息
- /rb info - 打印角色前方区域的相关信息。
- /rb list - 列出所有区域
- 全局黑名单
- /rb blacklist add/remove (id id id ...) - 添加/移除指定的方块 ID。被列入黑名单的方块将被插件忽略,不会重新生成。
- 重载
- /rb reload - 重载配置文件。如果你通过 config.yml 更新了区域配置,请使用此命令进行重载。
- 区域管理
- /rb create (name) [re-spawn time] - 根据 /rb select 的选择创建一个区域
- /rb remove (name) - 从列表中移除区域
- /rb type [typeId] - 设置区域类型,0 表示普通区域,1 表示矿脉区域。矿脉区域仅向上方再生,并使用你通过 /rb spawnblock 指定的随机方块。
- /rb sync [0/1/2/3] - 设置区域是否一次性全部再生:0 为正常操作;1 表示所有方块基于最先被破坏的方块同时重生;2 与 1 相同,但基于最后被破坏的方块;3 表示方块按正常顺序再生,但时间偏移量基于最后被破坏的方块。
- /rb modify (name) [re-spawn time] - 修改现有区域
- /rb modify time (name) (re-spawn time) - 修改现有区域的重生时间
- /rb alarm time/message/radius (name) (value) - 更改区域的警报设置。在方块即将重新填充之前触发警报,以提醒玩家。
- /rb rblacklist (name) add/remove (id id id ...) - 为指定区域添加/移除提供的方块 ID。用于黑名单特定区域的方块。
- /rb feedback (name) (type) - 设置该区域的反馈类型。0 - 无,1 - 放置时,2 - 放置/破坏时
- /rb feedback set (string) - 设置区域反馈期间发送给玩家的消息字符串。使用 TIME 显示重生时间。
- /rb spawnblock (name) - 列出该区域的重生方块。
- /rb spawnblock add (name) [id chance id chance...] - 添加新的方块及其重生概率。概率总和无需达到 100。
- /rb spawnblock remove (name) [id id id...] - 移除方块。
- /rb repop (name) - 在给定区域内重新生成所有方块
API
可直接从 RegenBlock 类调用的方法。
public void regenBlock(Location location, Material material, byte data, Player player, Boolean isBreakEvent) location - 方块's 位置材质 - 恢复后应设置为哪种材质的方块
还原 方块 的 数据 - 数据 值
player - 破坏/放置该方块的玩家 isBreakEvent - 测试这是否为方块破坏或方块放置事件。
Part of the Minds of Chimera Project (dev)
CodeBlocks | MOCPlaytimeTracker | MOCDBLib | RegenBlock | MOCGoodEats | MOC3DImporter | ImageImport | MOCKiosk | MOCRater | MOCFizziks | GravitySheep | MOCChemistry | MOCRegistry
RegenBlock allows a creation of regions within Minecraft worlds that have a certain re-spawn timer assigned to them. Once a block in the region is destroyed by a player or a new block is placed it will regenerate to the old state after the timer is up.
Example uses
Regeneration of natural resources in certain areas, resetting of region to an earlier state - in a tutorial area on my server, there is a broken bridge that has to be repaired by the player, but after the player does so the bridge would normally remain fixed for the next player that does the tutorial, with RegenBlock I am able to "regenerate" old broken bridge. Can be possibly used as anti-griefing to some degree, but it will only check events associated with played placing or destroying blocks, not tnt, lava fire etc.
Permissions
regenblock.self - all or nothing permission for the use of any commands
Commands
(all at op level)
- Selection
- /rb select (ex,ey,ez) - Starts/stops player's selection mode. ex/ey/ez will expand selection in that direction. Y is vertical.
- /rb listselection - Lists player's current selection points.
- Editor
- /rb edit - Puts you into editor mode that allows you to change blocks in a region without triggering the re-spawn.
- Info
- /rb info - Print out information about the region in front of the character
- /rb list - lists all regions
- Global Blacklist
- /rb blacklist add/remove (id id id ...) - adds/removes supplied block IDs. Blacklisted blocks will be ignored by the plugin and not regenerated.
- Reload
- /rb reload - Reloads the configuration file. Use this if you updated regions through config.yml and have to reload it.
- Region management
- /rb create (name) [re-spawn time] - Creates a region based on your selection from /rb select
- /rb remove (name) - removes region from the list
- /rb type [typeId] - sets region type, 0 for normal, 1 for mine. Mine will regenerate only upwards and with random blocks that you specify with /rb spawnblock
- /rb sync [0/1/2/3] - sets region to regenerate all at once or not, 0 - normal operation, 1 - all blocks re-spawn at once based on first block broken, 2 - same as 1, but based on last block broken, 3 - blocks re-spawn in normal order, but shifted in time based on last block broken.
- /rb modify (name) [re-spawn time] - modify existing region
- /rb modify time (name) (re-spawn time) - modify existing region's re-spawn time
- /rb alarm time/message/radius (name) (value)- changes the region's alarm settings. Alarm will go off before blocks are due for re-pop to warn players.
- /rb rblacklist (name) add/remove (id id id ...) - adds/removes supplied block IDs for region. Blacklist blocks for a specific region.
- /rb feedback (name) (type) - sets feedback type for the region. 0 - none, 1 - on place, 2 - on place/remove
- /rb feedback set (string) - sets string sent to player during region feedback. Use TIME to show re-spawn time.
- /rb spawnblock (name) - lists region's spawn blocks.
- /rb spawnblock add (name) [id chance id chance...] - adds new blocks with spawn chance. Chances do not need to add up to 100.
- /rb spawnblock remove (name) [id id id...] - removes blocks.
- /rb repop (name) - Re-spawns all blocks in a given region
API
Method available directly from RegenBlock class.
public void regenBlock(Location location, Material material, byte data, Player player, Boolean isBreakEvent) location - block's location material - what material block should be set to once restored data - data value for the restored block player - player that broke/placed the block isBreakEvent - test if this is a BlockBreak of BlockPlace event.
下载 RegenBlock
下载 RegenBlock
下载 RegenBlock
下载 RegenBlock
下载 RegenBlock
下载 RegenBlock
下载 RegenBlock
下载 RegenBlock
下载 RegenBlock
下载 RegenBlock
添加了对爆炸和火焰的支持。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
使床在所有维度中爆炸的模组
插件
为 Armor Poser 模组添加兼容性
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
评论 0
登录后参与评分
还没有评论,来抢沙发吧