切片器 (Slicer)
本模组旨在增强 Farmer's Delight 与 Create 之间的大部分兼容性。 虽然它专为配合 Farmer's Delight 使用而设计,但即使没有该模组也能正常运行,并为其他模组添加了一些兼容功能。

自动切割
本模组的主要功能是 切片器 (Slicer),这是一台类似于 Create 中的 机械搅拌机 (Mechanical Mixer) 或 机械压力机 (Mechanical Press) 的机器。
它会自动注册来自 Farmer's Delight 的所有切割配方。从这个意义上说,它是一个自动化的 砧板 (Cutting Board)。
为了使用它,需要使用 右键点击 将正确的工具放入机器中。
默认情况下,只允许使用刀具和斧头,但可以通过修改 sliceanddice:allowed_tools 物品标签来覆盖此行为。
一个向该标签添加剪刀的示例数据包可在 此处 找到。
自动烹饪
所有来自 Farmer's Delight 且需要烹饪锅的配方都被添加为加热的搅拌配方。

洒水器 (Sprinkler)
洒水器是一个方块,当通过管道提供流体时,它会将其分布在下方的一个小区域内。
不同的流体可能具有不同的效果。
- 熔岩会对下方的实体造成少量火焰伤害
- 水会使下方区域变湿,使游戏认为那里正在下雨。
- 药水会对下方的实体施加其效果,持续短时间
- 液体肥料(一种新流体)会对方块施加骨粉的效果。
后者旨在实现无需依赖天气即可种植 Neapolitan 的 香蕉丛 (Banana Fonds),但它也可能对其他模组的方块产生其他影响。
洒水器可以在结构体上工作,并在每次移动到新的方块时应用其效果。 它们也可以在由 Create Simulated 创建的物理结构体中工作。

Overweight Farming
如果存在 Overweight Farming,则会添加一些兼容功能。
这包括使用发射器进行上蜡的配方,
以及在 JEI 中显示对超重作物进行斧头剥皮的操作。

自定义配方
如果您想使用数据包添加自定义配方,这也是可以做到的, 并且适用于单个配方以及序列组装配方的步骤。 这些示例可以在 示例数据包 中找到。
自定义洒水器动作
洒水器中哪种流体产生何种效果是由数据驱动的,可以修改或扩展。 您可以在此处找到内置的动作 here。
洒水器 JSON 文件的结构
```json
{
"action": {
// 将要执行的动作。自定义动作可以注册到 `sliceanddice:sprinkle_action` 注册表中。
"type": "sliceanddice:damage",
// 一些参数,取决于上面设置的动作类型
"amount": 0.5,
"damage_type": "minecraft:in_fire"
},
"fluid": {
"fluid": "minecraft:lava"
}
}
```
对于开发者
依赖该模组时,你可以从我的 Maven 仓库中引入它,这样可以自动包含传递性依赖。
此外还有一个 api 包,在某些用例下(例如仅添加自定义洒水器或洒水动作时),编译时只需使用该包即可。
如果新版本正在开发中,可能也会发布带有 -SNAPSHOT 后缀的版本,你可以使用这些版本提前预览即将推出的更改。
repositories {
maven {
url = uri("https://thedarkcolour.github.io/KotlinForForge/")
content { includeGroup("thedarkcolour") }
}
maven {
url = uri("https://maven.ryanhcode.dev/releases")
content { includeGroupAndSubgroups("dev.ryanhcode") }
}
maven {
url = uri("https://registry.somethingcatchy.net/repository/maven-public/")
content { includeGroup("com.possible-triangle") }
}
}
dependencies {
compileOnly("com.possible-triangle:sliceanddice-api:$sd_version")
runtimeOnly("com.possible-triangle:sliceanddice-neoforge:$sd_version")
}
在底层,Slice & Dice 使用了 atmosphere 库,而该库本身仍处于早期开发阶段。
Slicer
This mod enables a variety of features to create better compatibility between mostly Farmer's Delight and Create. While it is designed to work with Farmer's Delight, it does work without it and also adds some compatibility features for other mods.

Automatic Cutting
The Main feature of the mod is the Slicer, a machine similar to the Mechanical Mixer or Mechanical Press from Create.
It automatically registers all cutting recipes from Farmer's Delight. In that sense, it is an automatic Cutting Board.
In order to use it, the correct tool has to be placed into the machine, using Right-Click.
By default, only knives and axes are allowed, but this behaviour can be overwritten by modifying the sliceanddice:allowed_tools item tag.
An example datapack which adds shears to this tag can be found here
Automatic Cooking
All recipes from Farmer's delight requiring the Cooking Pot are added as heated mixing recipes.

Sprinkler
The Sprinkler is a block which, when provided with a fluid using a pipe, will distribute it in a small area below.
Different fluids can have different effects.
- Lava applies a small amount of fire damage to entities below
- Water makes the area below wet, making the world think it's raining there.
- Potions apply their affect for a short duration to entities below
- Liquid Fertilizer, a new fluid, applies a bonemeal affect to blocks.
The latter is meant to enable growing of Banana Fonds from Neapolitan without being dependent on the weather, but it could possibly have other effects on other mods too.
Sprinklers work on contraptions and apply there effect every time they are moved to a new block. The also work in physics contraptions created by Create Simulated.

Overweight Farming
If present, some compatibility features for Overweight Farming is added.
This includes waxing recipes using the deployer,
as well as showing the axe-stripping of overweight crops in JEI.

Custom Recipes
If you want to add custom recipes using a datapack, this can also be done and works for both single recipes and steps of a sequences assembly recipe. Examples for these can be found in the example datapack.
Custom Sprinkler Actions
What effect which fluid in the sprinkler has is data-driven an can be modified or extended. You can find the build-in actions here.
shape of a sprinkler JSON file
```json
{
"action": {
// the action that will be executed. custom actions can be registered to the `sliceanddice:sprinkle_action` registry.
"type": "sliceanddice:damage",
// some parameters, depending on what action type has been set above
"amount": 0.5,
"damage_type": "minecraft:in_fire"
},
"fluid": {
"fluid": "minecraft:lava"
}
}
```
For Developers
When depending on the mod, you can include it from my maven, which will have the benefit of including transient dependencies.
There is also an api package, which should be enought at compile time for some use-cases,
for example when only adding a custom sprinkler or sprinkle action.
When a new release is already being worked on, there might also be -SNAPSHOT versions being published, which you can use to already get a look at upcoming changes.
repositories {
maven {
url = uri("https://thedarkcolour.github.io/KotlinForForge/")
content { includeGroup("thedarkcolour") }
}
maven {
url = uri("https://maven.ryanhcode.dev/releases")
content { includeGroupAndSubgroups("dev.ryanhcode") }
}
maven {
url = uri("https://registry.somethingcatchy.net/repository/maven-public/")
content { includeGroup("com.possible-triangle") }
}
}
dependencies {
compileOnly("com.possible-triangle:sliceanddice-api:$sd_version")
runtimeOnly("com.possible-triangle:sliceanddice-neoforge:$sd_version")
}
Under the hood, slice & dice uses the library atmosphere, which itself is still early in development.
下载 Create Slice & Dice
下载 Create Slice & Dice
下载 Create Slice & Dice
下载 Create Slice & Dice
下载 Create Slice & Dice
下载 Create Slice & Dice
下载 Create Slice & Dice
下载 Create Slice & Dice
下载 Create Slice & Dice
下载 Create Slice & Dice
- 修复了机关装置上的洒水器在服务器端崩溃的问题 (#303)
- 修复了药水洒水器偶尔无法正常工作的问题 (#302)
- 添加了支持可附魔机械收割机像刀具一样掉落物品的功能 (#301)
- 更新了大气层以解决末影人在雪地里受到伤害的问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
AE2:一款流行的自动化与存储模组
模组
基于 GTCEu 1.12.2 的现代 GregTech
模组
让你能够在世界中的任何位置定位结构。
模组
简单的原版生物群系更新,包含有趣的怪物、方块等更多内容!
模组
为你的终界增添新生物群系、神秘仪式和全新生物
评论 0
登录后参与评分
还没有评论,来抢沙发吧