本模组为游戏添加了资源猪。资源猪是一种类似猪的生物,玩家可以用它来采集资源。本模组旨在供整合包作者使用,允许整合包作者定义可以采集哪些资源,以及资源猪的各种属性。
使用方法
资源猪是代表某种资源的改良版猪。资源猪可以通过以下两种方式帮助玩家生成资源。
- 击杀资源猪。这会掉落培根,培根可转化为对应的资源。默认情况下会掉落 1 到 3 块培根,每块培根对应 1 份输入资源。
- 挖掘松露。如果资源猪处于有效的维度中,并且站在它可以挖掘的方块上方,它就会开始挖掘松露。这些松露可以在不杀死猪的情况下转化为资源。默认情况下,4 个松露等于 1 份输入资源。
要获得资源猪,你需要一只普通的猪和一桶泥浆。默认情况下,一桶泥浆由水桶、泥土和一份输入资源合成。将泥浆桶应用到猪身上即可开始转化过程。另外,你也可以获取资源猪的刷怪蛋,但该选项在您的整合包中可能不可用。
技巧与窍门
- 对资源猪施用速度药水会使其挖掘更快,并找到更多的松露。更高的速度等级会使资源猪挖得更快。例如,速度 I 会使猪的速度翻倍,速度 II 会使猪的速度变为三倍。
- 只有当猪正在挖掘的位置上方的空间为空时,才能挖掘出松露。猪还必须处于正确的维度,并站在它可以挖掘的方块上方。
- 如果松露下方的方块被移除,松露会自动破碎。这意味着可以使用活塞等装置来自动化破碎松露的过程。
配置
可用的资源猪从 JSON 文件中加载,这些文件必须由整合包作者创建。这些文件从 `config/resourcehogs/types` 文件夹中加载。你可以在这里找到一个示例文件的样子。另一个包含所有默认值的示例可以在这里找到。
以下是对每个属性的简要说明。
- id - 此资源的 ID。必须为小写,且每种添加的资源类型必须唯一。这也应与使用的文件名匹配。
- inputs - 可用于制作资源猪的各种输入的数组。你可以使用
ore:oreDictName指定一个矿石字典输入,或使用mod:item:meta指定特定物品。 - output - 此资源的输出物品。这应是一个使用
mod:item:meta格式的特定物品。 - diggableBlocks - 用于定义猪可以挖掘的方块。这是一个使用
mod:id:meta格式的方块数组。 - renderBlock - 猪应该显示成的方块。使用
mod:id:meta格式。 - validDimensions - 此猪可以挖掘的维度 ID 数组。如果它在错误的维度中,它将不会挖掘。
- maxHealth - 猪的生命值数量。
- movementSpeed - 猪的正常移动速度。
- armorAmount - 给予猪的护甲保护量。
- digTickDelay - 猪正常挖掘出一个松露所需的刻数。
Tinkers Construct
本模组自动支持 Tinkers Construct。如果创建了资源类型,并且输出物品具有熔炼配方,玩家将在相同条件下熔炼培根和松露。例如,如果你创建一个以铁锭为输出的资源类型,在 Tinkers Construct 中你可以将铁锭熔炼成熔融铁,那么你也可以将松露和培根熔炼成熔融铁。默认情况下,1 块培根熔炼出的流体量与输出物品相同。松露产生的流体量为四分之一。
本项目由 Nodecraft 赞助。使用代码 DARKHAX 可获得首月服务 30% 的折扣!
This mod adds resource hogs to the game. A resource hog is a pig-like mob that the player can use to farm resources. This mod is intended to be used by modpack authors, and allows the modpack author to define which resources can be farmed, and various properties of the resource hog mob.
Using the mod
A resource hog is a modified version of a pig that represents a resource. The resource hog can help generate resources for the player through the following two ways.
- Killing the resource hog. This causes it to drop bacon which can be converted into the resource. By default one to three bacon will drop, and they are worth one of the input resource each.
- Digging for truffles. If the resource hog is in a valid dimension and is standing on top of a block that it can dig through, it will start to dig up truffles. These truffles can be turned into the resource without killing the pig. By default four truffles is equal to one input resource.
To get a resource hog, you need a normal pig and a bucket of mud. By default a bucket of mud is crafted with a water bucket, a piece of dirt, and one of the input resources. Applying the bucket of mud to the pig will start the conversion process. Alternatively you can get a spawn egg for the hog, however this option may not be available in your modpack.
Tips & Tricks
- Applying speed potions to a resource hog will cause it to dig faster, and find more truffles. Higher levels of speed will cause the resource hog to dig even faster. For example speed 1 will cause the pig to go twice as fast, and speed 2 will cause the pig to go three times as fast.
- Truffles can only be dug up if the space above where the pig is digging is empty. The pig must also be in the right dimension, and on top of a block that they can dig through.
- Truffles will automatically break if the block below them is removed. This means that things like pistons can be used to automate the process of breaking truffles.
Configuring
The available resource hogs are loaded from json files that the modpack author must create. These files are loaded from the config/resourcehogs/types folder. You can find an example of what the file should look like here. Another example with all the default values can be found here.
The following is a brief explanation of each property.
- id - The id for this resource. This must be lower case and unique for each resource type you add. This should also match the name of the file used.
- inputs - An array of the various inputs you can use to make a resource hog. You can use
ore:oreDictNameto specify an ore dictionary input, ormod:item:metato specify a specific item. - output - The item to output for this resource. This should be a specific item using the
mod:item:metaformat. - diggableBlocks - This is used to define what blocks the hog can dig in. This is an array of blocks using
mod:id:metaformat. - renderBlock - The block the hog should look like. This uses
mod:id:metaformat. - validDimensions - This is an array of dimension ids that this pig can dig in. If it's in the wrong dimension it wont dig.
- maxHealth - The amount of health the hog has.
- movementSpeed - How fast the pig is normally.
- armorAmount - An amount of armor protection to give the hog.
- digTickDelay - The amount of time in ticks it normally takes for the hog to dig up a truffle.
Tinkers Construct
This mod has automatic support for tinkers construct. If a resource type is created, and the output item has a smelting recipe, the player will be able to smelt the bacon and truffles under the same conditions. For example, if you make a resource type with an iron ingot as the output, in tcon you can smelt iron ingots into molten iron so you will be able to smelt the truffles and bacon into molten iron as well. By default 1 bacon smelts into the same amount of fluid as the output item. Truffles will produce 1/4th the amount of fluid.
This project is sponsored by Nodecraft. Use code DARKHAX for 30% off your first month of service!
下载 Resource Hogs
下载 Resource Hogs
下载 Resource Hogs
下载 Resource Hogs
下载 Resource Hogs
下载 Resource Hogs
下载 Resource Hogs
下载 Resource Hogs
下载 Resource Hogs
下载 Resource Hogs
- 修复了小猪被变成成年资源猪的问题。 - Tyler Hancock
衷心感谢我的 Patreon 支持者
- NillerMedDild
- Jonathan McManus
- Varitek
- Pongo Sapiens
- Darkosto
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
评论 0
登录后参与评分
还没有评论,来抢沙发吧