作者:rebot | 分类:模组
Minecraft 版本: 1.20 1.20.1
平台: fabric quilt
标签: food library transportation
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);
MIT © 2022 spadeteam
请登录后举报
暂无评论,抢个沙发吧~