Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_NtlsPMR3.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
Endrous Edibles - 墨喵 Minecraft 资源
Endrous Edibles 图标

Endrous Edibles

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.1.0+1.20
本资源为搬运资源,原资源地址: https://modrinth.com/mod/ended
资源信息

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);

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

下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
PvP Crosshair By Zent

价格:0 墨喵币
下载量:0

查看详情
Purely Optimized

价格:0 墨喵币
下载量:0

查看详情
Yung's optimization - LoL inc

价格:0 墨喵币
下载量:0

查看详情
Not Enough Flowers

价格:0 墨喵币
下载量:0

查看详情