截图
介绍
Inspired by Dimensional Edibles, this mod is the perfect solution for data pack creators and mod authors alike for transporting players to preset locations or dimensions via food.
Want to make potatoes teleport you to the End? Sure, here’s the JSON file:
{
"edible": {
"item": "minecraft:potato"
},
"rules": [
{
"from": [
"!minecraft:the_end"
],
"destinations": {
"fountain": {
"pos": [0, 100, 0],
"world": "minecraft:the_end"
}
}
}
]
}
Oh, you want to use code instead? I got you:
Edible edible = EdibleBuilder.create()
.edible(Ingredient.ofItems(Items.POTATO))
.addRule(RuleBuilder.create()
.addSource(new Identifier("minecraft:the_end"), false)
.addDestination("fountain", DestinationBuilder.create()
.world(World.END)
.location(0, 100, 0)
.build())
.build())
.build(new Identifier("example:end_potato"));
EndrousEdiblesAPI.registerEdible(edible);
Notes
- You don’t have to use this for food. At its core, this is a teleportation engine. There are both API methods and a command for retrieving and triggering edibles on players.
- This example is very straightforward, but edibles’ control flow can quickly become complex. I recommend reading the wiki—don’t worry, it’s light—before creating anything.
- This mod was created for Atlas Greece.
License
MIT © 2022 spadeteam
常见问题
Endrous Edibles 支持哪些 Minecraft 版本?
Endrous Edibles 支持 Minecraft Java 版 1.19–1.20.1,共 7 个版本,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。
Endrous Edibles 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
spadeteam 的其他作品
查看全部 →
Calibrated Access
A balanced solution for remote block interaction
Purpeille
Endgame resource expansion; ancient technology; a journey of allegiance
The Printer
Duplicate items at the cost of experience and time
Ochetgenyo
Decorate your walls with an ancient language
评论
登录后评论和评分