Язык

Endrous Edibles

Endrous Edibles

Modrinth

A teleportation engine with built-in consumable support

3.4k загрузок 3 подписчиков обновлено 36mo ago
последняя v1.1.0+1.20 Modrinth
Fabric Quilt 1.19 – 1.20.1 FoodLibraryTransportation

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

Версии

Release
1.1.0+1.20
fabric, quilt · 1.20, 1.20.1 · 36mo ago
- Updated to 1.20
2.8k
Release
1.1.0+1.19.3
fabric, quilt · 1.19.3, 1.19.4 · 41mo ago
*See 1.19 changelog*
161
Release
1.1.0+1.19
fabric, quilt · 1.19, 1.19.1, 1.19.2 · 41mo ago
### Features - New location type: `mirror`; no change to the player's X and Z but chooses a new Y based on the topmost block at the target position ###…
151
Release
1.0.0+1.19.3
fabric, quilt · 1.19.3 · 41mo ago
- Initial version on 1.19.3
133
Release
1.0.0+1.19
fabric, quilt · 1.19, 1.19.1, 1.19.2 · 41mo ago
- Initial version on 1.19 to 1.19.2
139

Комментарии 0

Пока нет комментариев. Будь первым, кто поделится мнением.

Скачать Endrous Edibles

Файлы отдаются напрямую с первоисточника. Modgrid не хранит и не изменяет их.