介绍
Usage
This mod adds a new data type called push_to_craft. Put the files into a push_to_craft directory in your datapack or data folder of your mod (beneath the recipes or tags directories).
A valid json file is built like this:
additions: _Array_ – Defines all items or tags that you want to add to the targets- Entries are item ids as _Strings_. You can use tags by prepending a
#. targets: _Array_ or _String_ – Defines which items and tags to target in the recipes- Entries are item ids or tags as _Strings_.
recipes: _Object_ – Gives conditions for which items to choosetypes: _Array_ – optional – Defines which recipe serializers to target- Entries are recipe serializer ids as _Strings_
ids: _Array_ – optional – Defines which recipes to target- Entries are _Strings_ that are either of these:
- Exact recipe ids à la
minecraft:anvil - Namespace specific regular expression that only mark the last part of the id as regex à la
minecraft:.* - A complete regular expression beginning and ending with a forward slash à la
/.*craft:.*/
Example
This allows you to use blackstone in favor of cobblestone everywhere:
{
"additions": [
"minecraft:blackstone"
],
"targets": [
"minecraft:cobblestone"
],
"recipes": {}
}
This allows you to use emeralds and all kinds of planks as alternatives to diamonds and iron ores in crafting and smelting recipes:
{
"additions": [
"minecraft:emerald",
"#minecraft:planks"
],
"targets": [
"minecraft:diamond",
"minecraft:iron_ore"
],
"recipes": {
"types": [
"crafting_shaped",
"crafting_shapeless",
"blasting"
],
"ids": [
"minecraft:/.*/"
]
}
}
Modders
If you’re a modder and like to use this in your projects you can do so using my maven:
repositories {
maven {
name "Siphalor's Maven"
url "https://maven.siphalor.de"
}
}
dependencies {
modCompile "de.siphalor:pushtocraft-1.15:+"
// Optionally you can include this mod into your jar
include "de.siphalor:pushtocraft-1.15:+"
}
常见问题
Push To Craft 支持哪些 Minecraft 版本?
Push To Craft 支持 Minecraft Java 版 1.15–1.19.2,共 11 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Push To Craft 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
Siphalor 的其他作品
查看全部 →Mouse Wheelie (Fabric)
一个“小巧”的客户端模组,提供物品滚动、物品栏整理、物品补充等功能!
Amecs (Fabric)
通过提供修饰键和多功能按键,改进你的按键与操作设置。
Wandering Collector
流浪商人会把遗失的物品交易给玩家。
Amecs
通过提供修饰键,让一个按键实现多种功能,从而改善按键与控制设置。
评论
登录后评论和评分