跳到正文

Orb’d

作者:Lunatrixen

Redefining Origin Orbs!

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Ever had the thought it would be cool if you could assign specific origins to a special orb? Well now you can! introducing:

Orb’d

Orb’d is an Origins Addon which allows you to define custom Orbs of Origin through Json!

Implementation of data-driven orbs is quite simple and requires very little setup.

How do I define Custom Orbs?

In your datapack, create the following file path:
datapackname/data/namespace/orbs/
this is the file path for all custom orbs, meant to keep them all in one nice place.
Next up is the Json structure, its quite simple & small so no headaches required.

{
  "orb_name": "Fire Orb", // Name of Orb
  "orb_description": "Grants the powers of a Fire Elemental.", // Description of the orb
  "orb": "orbd:fire_orb", // ID of the orb, allows for unique ids (namespace:id)
  "origin": "origins:blazeborn" // Origin to turn into (in this case blazeborn)
}

What if I want Multiple Origins in an Orb?

Instead of using "origin": "origins:blazeborn" to define an origin, we can use "origins": ["namespace:id", ect] to define a set of origins that orb can turn you into. Using a multi-orb, it will put the player into a restricted Origins Menu for the specified origins. This also works with other origin layers (such as origins-classes and custom made layers.) Do not use both "origin" and "origins" in the same orb file. Do not try and cross layer either, it will not work.

{
  "orb_name": "Tri-Orb", // Name of Orb
  "orb_description": "Holds the power of 3 different Origins.", // Description of the orb
  "orb": "orbd:tri_orb", // ID of the orb, allows for unique ids (namespace:id)
  "origins": ["origins:blazeborn", "origins:arachnid", "origins:phantom"] // Origins to turn into 
}

I want Custom Textures though!

Defining custom textures for your custom orb is also pretty simple and only requires basic resource pack knowledge. Orb’d uses minecraft’s override system to keep things simple, however a new system will be put into place in the future, but for now this works.

{
  "parent": "item/generated", // Original model
  "textures": {
    "layer0": "origins:item/orb_of_origin" // Original texture
  },
  "overrides": [
    {
      "predicate": { "custom_model_data": 42700 }, // Custom model data
      "model": "item/fire_orb" // The model
    }
  ]
}

Do note other resource packs may conflict with other ones.

How do I give myself the Custom Orb?

You can use this command to grab your custom orb:

/give @s orbd:generic_orb{orb_id:"namespace:id"} 1

You Did it!

And thats it! You’ve completely defined a custom orb bound to one origin!

常见问题

Orb’d 支持哪些 Minecraft 版本?

Orb’d 支持 Minecraft Java 版 1.20.1,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Orb’d 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

Lunatrixen 的其他作品

查看全部 →