Endrous Edibles
This mod, inspired by Dimensional Edibles, offers excellent opportunities for datapack creators and mod authors to organize player transportation to predetermined locations or dimensions through food consumption.
Want a regular potato to teleport you to the End? Easy! Here's a configuration file example:
{
"edible": {
"item": "minecraft:potato"
},
"rules": [
{
"from": [
"!minecraft:the_end"
],
"destinations": {
"fountain": {
"pos": [0, 100, 0],
"world": "minecraft:the_end"
}
}
}
]
}
Prefer working with code? Here's the Java implementation:
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);
Features
- The system is not limited to just food - it's a full-fledged teleportation engine with API method support and commands for activating effects on players.
- While examples appear simple, the working logic can be quite complex. It's recommended to review the documentation before creating complex configurations.
- The mod was originally developed for the Atlas Greece project.
License
MIT © 2022 spadeteam