基于密钥的保护、团队积分与冲突的理由。
如果任何人都能直接挖掘进入,要塞和城堡还有什么用?如果任何人都能直接挖穿它们,迷宫还有什么用?如果人们可以通过绕过挖掘来避开陷阱,设置陷阱还有什么意义?
我制作这个插件是因为我对 Minecraft 中缺乏游戏机制感到厌倦。

插件的基本原理:
首次加入时,你会发现自己身处一个无法破坏且无法逃脱的房间。通过按下四个按钮之一(北、东、南或西)来选择你的出生点。收集十个黑曜石方块并建造一颗“心”以获得保护。在“心”的前方放置三个方块作为密钥,并放入一个铁块、金块或钻石块作为燃料。只要背包中最左侧的三个槽位与密钥相同,你就拥有在该“心”保护体积内的权限(半径可配置)。如果没有正确的密钥,该体积将受到所选燃料所提供的保护等级的保护。在“心”上放置一块告示牌,并在第一行写上团队名称。多个“心”可以拥有相同的团队名称。即使属于同一团队,“心”也不需要共享密钥。所有放入“心”后方箱子的铁、金和钻石都计入团队积分。每次打开“心”后的箱子时,都会计算并显示积分。对于没有正确密钥的玩家来说,挖掘“心”保护体积内的区域会变得非常麻烦。此外,人造方块/物品(砖块、栅栏、门、熔炉、工作台等)不能通过挖掘被破坏,也不能被使用(按钮、拉杆和压力板除外)。然而,它们仍然容易受到 TNT 的伤害。
这意味着什么:
- 你可以建造令人惊叹的城堡和基地,实际上需要一些策略和战斗才能攻破。
- TNT 现在变得重要!
- 陷阱也变得重要!
- 你是应该挖掘并收集贵重材料,还是应该攻击并窃取其他团队的积蓄?
- 你是应该使用贵重材料来获取积分,还是制作工具?
- 通过将密钥分发给敌人、在不告知队友的情况下更改密钥、带着积累的财富逃跑等方式,存在大量的背叛和背后捅刀的空间。
- 没有命令!要么你知道正确的密钥,要么你不知道!
- 超过 30,000 种可能的密钥组合。
功能:
- 首次加入时,玩家可以选择服务器上的出生位置 [北、东、南、西](距离可配置)。
- 建造“心”以保护其周围的体积(半径可配置)。
- 铁块、金块和钻石块用作“心”的燃料,每种提供不同级别的保护:
- - 铁块 - 物品/人造方块不可挖掘,对于没有正确密钥的玩家更难挖掘。
- - 金块 - 同铁块,加上没有正确密钥的玩家无法建造。此外,在“心”保护体积内(等级可配置),62 级以上不会生成生物。
- - 钻石块 - 同金块,但在“心”保护体积内完全不会生成生物。
- 每个“心”都有一个用于权限的密钥和一个用于计分的箱子。
- 每个“心”可以通过告示牌分配给一个团队(仅告示牌的第一行有效)。
- 密钥设置在每个玩家的背包中(最左侧的三个槽位)。
- 如果两个“心”重叠,较早的那个具有优先权。
- 按下任何石头按钮以根据“心”箱子中的铁、金和钻石计算并显示每个团队的积分。
- 在受保护区域内,没有正确密钥的玩家挖掘会更加困难。
- 在受保护区域内,人造方块/物品不能通过挖掘被破坏(然而它们仍可能被 TNT 摧毁)。
说明:
将 HomeIsWhereTheHeartIs.jar 放入插件目录。
启动并停止服务器一次以生成配置文件。
已知问题:
- 有时当首次选择选定的出生区域时,该区域的区块加载速度不够快,导致玩家坠落身亡。这应该不太重要,因为所有玩家在加入时都没有物品,重生会将玩家放回正确的位置。
- 这是我第一次编写 Java 程序。我已经尽力修复所有错误,但仍期望发现错误或问题。
- 此外,设置 bestFuelMobCancel、betterFuelMobNerf 和 useHeartChest 目前未被使用。
未来开发:
- 我希望实现不允许同时携带盔甲和 TNT 的功能。这是因为 TNT 现在扮演着更重要的角色,能够识别可能携带 TNT 的敌人将增加游戏的趣味性。
更新日志:
版本 1.4
在此版本中添加了一些新功能:
noPVP 和 noTNT 燃料:
这些是可以用作“心”燃料的方块。在具有 noPVP 燃料的“心”半径内,拥有正确密钥的玩家不会死亡。如果“心”具有 noTNT 燃料,则该半径内的所有爆炸都将被取消。它们可以在 config.yml 文件中进行配置。
如果你想禁用此功能,我建议将 noPVP 设置为方块 137(命令方块),将 noTNT 设置为 7(基岩),因为这些方块除非作弊否则玩家不应该能够获得。noPVP 的默认值为 133(绿宝石块),noTNT 的默认值为 22(青金石块)。
领先团队的附魔书奖励:
每经过一个游戏日夜周期(24000 刻),积分最高的团队将在其“心”所属的箱子中获得一本带有随机附魔和随机等级的附魔书。如果箱子中没有剩余空间,则不会有附魔书。如果一个团队有多个“心”,接收附魔书的箱子将是随机选择的。
版本 1.3.2
将许多之前硬编码的内容移至配置文件中。以下设置现已可配置:
- cancelMob: 50,51,52,53,54,55,56,57,58,59,60,61,62,63
- breakProtectedItems: 25,26,27,28,29,33,34,45,47,54,55,58,61,62,63,64,65,66,67,68,69,70,71,72,77,84,85,91,93,94,95,96,98,101,107,108,109,112,113,114,116,117,118,120
- useProtectedItems: 26,54,58,61,62,64,95,96,107,116,117
- allowedBlocks: 46,51,77
- blockSubstitution: 121>98,42>41,53>5,57>42,87>48,1>4,5>24,43>44,41>24,89>88,48>89,44>82,24>12,4>13
- 修复了几个因未检查心脏所在实际世界而误用默认世界的 bug。这些 bug 会导致非标准世界中的心脏出现异常,使分数仅计算与玩家同一世界中宝箱的内容等。我相信已修复所有相关问题。
- 此版本会创建新的配置文件,因此你应该停止服务器,删除(或移动)当前的配置文件,然后重新启动服务器。
Version 1.3
- 新增配置项 useSpawnBox。如果你不希望使用玩家首次生成并选择目的地的房间,请将其设置为 false。
- 你必须在 config.yml 文件中添加 useSpawnBox 字段。它应直接位于 "Spawn:" 下方。不要忘记保留开头的两个空格。如果你不熟悉编辑 yml 文件,建议停止服务器,删除 config.yml,更新 .jar 文件并重新启动服务器。这样会创建一个全新的 config.yml 文件。
- 燃料消耗功能已实现但未经过充分测试。在配置中将 consumeFuel 设置为 true 以启用该功能。consumeCheckInterval 设置服务器检查心脏是否已消耗燃料的频率。consumeTime 设置一块燃料被消耗所需的时间。数值 20 代表一秒。默认的 consumeTime 为 24000,即 20 分钟(一个完整的 Minecraft 昼夜循环)。
- 优先消耗心脏中最好的燃料
- 按下按钮不再计算并显示分数。现在需通过心脏背面的其中一个箱子来操作。这意味着如果没有访问心脏的权限,你将无法查看分数。
Version 1.2
- 默认配置现在为英文
- 在未持有正确密钥的情况下,在由金质或钻石质燃料保护的区域放置 TNT,现在会生成点燃的 TNT 实体。
Version 1.1
Keybased protection, team score and a reason for conflicts.
What's the use of fortresses and castles if anybody can just mine right in? What's the use of labyrinths if anyone just mine right through them? Why build traps if people just bypass them by mining around them?
I made this plugin because I got tired of the lack of game play mechanics in Minecraft.

Basic premises of plugin:
On first join find yourself in a indestructible room without escape. Select your spawn location by pushing any of four buttons (nort, east, south or west). Gather ten blocks of obsidian and build a heart for protection. In front of the heart you set the key (three blocks) and put one block of iron, gold or diamond to fuel the heart. As long as the three leftmost slots in your inventory is the same as the key you have permission within the hearts protected volume (radius configurable). Without the correct key the volume is protected by the level of protection offered by the choice of fuel. Put a sign on the heart and write a team name on the first line. Several hearts can have the same team name. Hearts do not need to share the key even if they belong to the same team. All iron, gold and diamond put in the chest behind the heart counts as team points. Points are calculated and displayed every time a chest behind a heart is opened. For players without the right key it becomes cumbersome to mine within a hearts protected volume. Also man made blocks/items (bricks, fence, doors, ovens, crafting tables etc) can't be destroyed by mining or be used (buttons, levers and pressure plates are excluded). However they are still vulnerable to TNT.
What does this mean:
- You can build amazing castles and bases that actually takes some cunning and fighting to break into.
- TNT now matters!
- Traps now matters too!
- Should you mine and collect valuable material or should you attack and steal from other teams savings?
- Should you use valuable material for score or to make tools?
- Lots of room for betrayal and backstabing through distributing key to enemy, changing key without team mates knowledge, running off with amassed treasure etc.
- No commands! Either you know the right key or you don't!
- More than 30,000 possible key combinations.
Features:
- On first join players get to choose their spawn location on the server [north, east, south, west] (configurable distance).
- Build heart to protect volume around heart (configurable radius).
- Iron, Gold and Diamond block used as fuel for heart, each with different level of protection:
- - Iron block - Items/manmade blocks unmineable and harder to mine for players without the right key.
- - Gold block - Same as iron plus players without the right key can't build. Also no mobspawn above level 62 within hearts protected volume (configurable level).
- - Diamond block - Same as gold but no mobspawn at all within hearts protected volume.
- Each heart has a key for permission and a chest for score.
- Each heart can be assigned to a team through a sign (Only first line on sign matters).
- Keys are set in each players inventory (the three leftmost slots).
- If two hearts overlap the oldest one has precedence.
- Push any stone button to calculate and display score per team, based on iron, gold and diamond in heart-chests.
- In protected areas mining is more cumbersome for players without the right key.
- In protected areas man made blocks/items cannot be destroyed by mining (However they can still be destroyed by TNT).
Instruction:
Put HomeIsWhereTheHeartIs.jar in plugin directory.
Start and stop server once to generate config file.
Known issues:
- Sometimes the chunks for the selected spawn area is not loaded fast enough when chosen for the first time, and the player falls to his death. This shouldn't matter too much as all players have no items on join and a respawn puts the player back in the correct location.
- This is my first ever Java programming. I have tried to squash all bugs but expect to find bugs/issues.
- Also the settings bestFuelMobCancel, betterFuelMobNerf and useHeartChest are currently unused.
Future development:
- I would like to implement so that armor and TNT can not be carried at the same time. This because TNT now has a much more powerfull role and being able to spot enemies likely to carry TNT would add to the game play.
Changelog:
Version 1.4
In this release some new stuff has been added:
noPVP and noTNT fuel:
These are blocks which can be used as fuel for a heart. Within the radius of a heart with noPVP fuel, no players with the right key can die. If the heart has noTNT fuel, then all explosions within the raidus will be cancelled. They can be configured in the config.yml file.
If you want to disable this functionality I recommend setting noPVP to block 137 (command block) and noTNT to 7 (bedrock) as these blocks shouldnt be available to players unless they cheat. Default values for noPVP is 133 (Block of Emerald) and for noTNT it is 22 (Block of Lapis Lazuli).
Enchanted book perk for the leading team:
Once every ingame day/night cycle (24000 ticks) the team with the most score will get an enchanted book with random enchantment and random level in the chest beloging to their heart. If there is no space left in the chest there will be no book. If a team has several hearts the receiving chest will be randomized.
Version 1.3.2
Moved lots of previously hardcoded stuff to the config. The following are now configurable:
- cancelMob: 50,51,52,53,54,55,56,57,58,59,60,61,62,63
- breakProtectedItems: 25,26,27,28,29,33,34,45,47,54,55,58,61,62,63,64,65,66,67,68,69,70,71,72,77,84,85,91,93,94,95,96,98,101,107,108,109,112,113,114,116,117,118,120
- useProtectedItems: 26,54,58,61,62,64,95,96,107,116,117
- allowedBlocks: 46,51,77
- blockSubstitution: 121>98,42>41,53>5,57>42,87>48,1>4,5>24,43>44,41>24,89>88,48>89,44>82,24>12,4>13
- Fixed a couple of bugs where I accidentally (sloppily :)) used the default world without checking the actual world of the heart. This bugged out hearts in other worlds than the standard, made score only calculate contents of chests in the same world as the player and so on. I believe I have fixed them all.
- This version creates a new config, so you should stop the server, delete (or move) your current config and then restart the server.
Version 1.3
- New config value, useSpawnBox. Set to false if you do not want to use the room where players first spawn and choose their destination.
- You MUST add the field useSpawnBox to the config.yml file. It should be directly below "Spawn:". Dont forget the two leading spaces. If you're not familiar with editing yml files it's better to stop the server, delete config.yml, update the .jar file and start the server again. Then a completely new config.yml file will be created.
- Fuel consumption is implemented but not thouroughly tested. Set consumeFuel to true in config to enable. consumeCheckInterval sets how often the server should check if a heart has consumed its fuel. consumeTime is how long before a block of fuel is consumed. A value of 20 is one second. Default consumeTime is 24000 which is 20 minutes (One complete MC day cycle).
- The best fuel in a heart is consumed first
- Pressing a button no longer calculates and shows score. This is now done by using one of the chests on the backside of a heart. This means that you can not check score if you do not have access to a heart.
Version 1.2
- Default config now in English
- Placing TNT in area protected by either gold or diamond fuel without having the right key now places primed TNT entity.
Version 1.1
评论 0
登录后参与评分
还没有评论,来抢沙发吧