功能特性
- 定义不同的物品,每个物品具有不同的属性和生成几率。
- 在服务器上指定用于生成物品的存储方块。
- 以随机间隔生成战利品。
工作原理
首先,您必须在“loot.txt”文件中配置要在服务器上生成的所有物品。您可以创建一个新的“loot.txt”文件,也可以使用下载包中已预配置的示例文件。如果您使用下载的“loot.txt”,当然仍可以在文件末尾添加自定义物品。
完成战利品配置后,您需要创建一些战利品表(LootTables)。这些表将分配给世界中的箱子,以便它们能够生成随机战利品。打开“loottables.txt”,创建新的战利品表,并为它们添加相应的战利品内容。
配置文件完成后,即可进入游戏。此时,对着一个箱子并使用命令 "/lc set [战利品表名称]",其中“[战利品表名称]”需替换为您在“loottables.txt”中创建的某个战利品表的名称。
现在,该箱子应该开始生成随机物品了!
箱子会自动更新其中的物品,确保无需手动补充。为了确认一切配置正确且运行正常,请使用命令 "/lc update" 对箱子进行一次强制更新。
工作原理 2
控制战利品生成需要了解四个不同的组件: LootItem(战利品项):包含 ID、HypItem 类型、生成概率以及最小和最大绑定值。 LootTable(战利品表):作为不同 LootItem 的容器,用于将 LootItem 分组。 LootSupply(战利品供应源):这是某个带有库存的方块,是 LootItem 可以生成的地方。 LootClass(战利品类):包含一组 LootTables 和 LootSupplies,同时也保存一个时间间隔参数。这是用于控制生成过程的核心组件。
配置说明
在使用插件启动服务器一次后,它会在 plugins 文件夹中创建 4 个文件。这些文件分别是 config.yml、loot.txt、loottables.txt 和 lootchests.txt。config.yml 的含义一目了然,只需打开它并设置您需要的数值即可。
要配置 loot.txt,请参考以下示例:
loot.txt
每一行包含 9 个参数。
要配置 loottables.txt,只需在行首写入战利品表的自定义名称,然后添加您希望该战利品表包含的所有来自 loot.txt 的物品名称。另外,请记住目前名称是区分大小写的。
loottables.txt
请勿修改 lootchests.txt 文件,该文件由插件用于存储战利品箱子的位置信息,并会自动写入。
命令列表
安装方法
如果您下载的是 .jar 文件,只需将该文件放入您的 "/Server/plugins/" 文件夹中。
如果您下载的是 .zip 文件,请使用 WinRar 或类似程序打开它,并将 HypLoot.jar 拖入您的 "/Server/plugins/" 文件夹中。其他文件为可选的预配置文件,您可以根据需要使用,否则也可以自行配置。
Features
- Define different items, each with different properties and spawn rates.
- Assign storage blocks on the server for spawning of items.
- Spawn loot at a random interval.
How It Works
First, you must configure all the items you want to spawn on your server, in the "loot.txt" file. You can create a new "loot.txt" file, or you can use the already configured file that is included in the download. If you use the downloaded "loot.txt", you can of course still add your own items at the end of the file.
When you have configured the Loot, you must create some LootTables. These are what you assign to the chests in your world, so that they can spawn random Loot. Open up "loottables.txt", and create some new LootTables, and add appropriate Loot to all of them.
After you have finished configuring the files, you can go ingame. Now use the "/lc set [LootTable]" command while looking at a chest, where "LootTable" is replaced with the name of one of the LootTables you created in "loottables.txt".
Now this chest should begin spawning random items!
The chests will update the items automatically, making sure that the chests never needs to be refilled manually. To confirm that everything is configured correctly and is working, use the command "/lc update" to update the chests once.
How It Works 2
There are four different components you need to know about to control loot spawning. LootItem: A LootItem contains an id, a HypItem, a spawn percentage and a minimum and maximum bound. LootTable: The LootTable is a container for different LootItems. It is there to group LootItems together. LootSupply: This is a block somewhere, which has an inventory. This is a place where LootItems can spawn. LootClass: Collection of LootTables and LootSupplies, and also holds an interval. This is what you use to control the spawning process.
Configuration
After the server has been started once with the plugin, it should create 4 files in the plugins folder. The files are config.yml, loot.txt, loottables.txt and lootchests.txt. The config.yml is pretty self-explanatory. Just open it and set the values you want.
To configure loot.txt, take a look at the following example:
loot.txt
Each line takes 9 arguments.
To configure loottables.txt, simply write a custom name for the LootTable at the beginning of the line, and then add in all the Loot names from loot.txt which you want this LootTable to contain. And yeah, remember that names are currently case sensitive.
loottables.txt
Do not touch lootchests.txt, this file is used to store LootChest locations by the plugin and will be written to automatically.
Commands
Installation
If you downloaded a .jar file, simply put the file into your "/Server/plugins/" folder.
If you downloaded a .zip file, open it with WinRar or a similar program, and drag the HypLoot.jar into your "/Server/plugins/" folder. The other files are optional pre-configured files you can use if you wish, else you can configure your own.
下载 HypLoot
下载 HypLoot
下载 HypLoot
下载 HypLoot
下载 HypLoot
下载 HypLoot
下载 HypLoot
新增:添加了新命令“/hyploot”,可用于检查更新、重载配置文件并查看插件信息。
新增:添加了更新检测器,可关闭该功能。
其他:改进了“loot.txt”。
其他:对“config.yml”进行了若干修改,请确保您使用的是已更新的配置文件。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
插件
使床在所有维度中爆炸的模组
插件
为 Armor Poser 模组添加兼容性
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个高度兼容、功能完善且稳定的 TPA 模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧