Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Endrous Edibles

Endrous Edibles

A teleportation engine with built-in consumable support

2,694
2
Food
Library
Transportation

Compatibility

Minecraft: Java Edition

1.20–1.20.1
1.19.x

Platforms

Fabric
Quilt

Supported environments

Server-side

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source Visit wiki Join Discord server

Creators

spadeteam
spadeteamOrganization

Details

Licensed MIT
Published 2 years ago
Updated last year
DescriptionGalleryChangelogVersions

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

Modrinth is open source.

main@4b75cb8

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.