自定义生物蛋-开发者教程研习论坛-开发者资源-方块研习社

自定义生物蛋

概述

属于特殊的自定义物品,在支持自定义物品所有特性的基础上,还具有右键可以生成自定义生物的功能。

支持刷怪笼和发射器。

#注册

  1. 与自定义基础物品的注册1-6步相同
  2. 在behavior/netease_items_beh的json中设置custom_item_type为egg
  3. 添加生物蛋相关的定义,包括一个必填的netease:egg组件,组件的参数见json组件

avatar

复制 json

{
  "format_version": "1.10",
  "minecraft:item": {
    "description": {
      "identifier": "customitems:test_egg",
      "custom_item_type": "egg"
    },
    "components": {
      "netease:egg":{
        "entity": "customitems:chicken"
      }
    }
  }
}

#JSON组件

#网易components

  • netease:egg

    类型 默认值 解释
    entity str   生成生物的identifier

#demo解释

CustomItemsMod中定义了一个自定义生物蛋:

  • customitems:test_egg

    右键时会生成微软自定义生物”customitems:chicken”

请登录后发表评论

    没有评论内容