当前位置: 我的世界 > 游戏攻略 > 正文

我的世界1.12新成就系统JSON格式详解

小编:3F时间:2017-04-06 09:55回到游戏园首页

  我的世界1.12新成就系统JSON格式详解。那下面给大家分享的则是关于我的世界1.12快照版17w13a新成就系统的JSON格式的介绍哦~那 有感兴趣的玩家不妨进来看看下面的介绍吧!希望对大家有所帮助。

  游戏园我的世界官方群:325049520  256070479 欢迎各路喜爱我的世界的小伙伴们加入讨论!

  玩服务器的小伙伴们可以加入:141931866 群一起联机玩游戏哦!

  如果你是腐竹的话可以给我们投稿你的服务器哦~投稿地址点我进入

  如果你有心仪的作品或者心得分享的话,欢迎来游戏园投稿,大家可以点击>>>投稿<<<进行投稿哦~ 有奖品哦~

  简介

  1.12开始,成就(achievement,现在改叫advancement)已经从代码中分离出来,成为独立的json文件了。这让地图作者,modder和服主可以按照他们的喜好修改和添加advancement。

  advancement有众多的选项,可以使用从玩家的物品栏到所在的生物群系的触发器。还可以设置达成后的奖励,例如解锁配方,获得物品或者经验。一个新指令/advancement也被加入来配合这些文件。

  advancement使用json格式 http://json.org/ 在外部文件里保存advancement的信息。

  JSON结构

  以下是advancement文件里的所有可能键值(key)

  JSON

  {

  "criteria": {

  "custom_trigger_name": {

  "trigger": "namespace:trigger_name",

  "conditions": {

  "slots": {

  "occupied": 1,

  "occupied": {"min":1,"max":1},

  "full": 1,

  "full": {"min":1,"max":1},

  "empty": 1,

  "empty": {"min":1,"max":1}

  },

  "items": [

  {

  "item": "minecraft:stone",

  "count": 1,

  "count": {"min":1,"max":1},

  "data": 1,

  "data": {"min":1,"max":1},

  "potion": "minecraft:invisibility",

  "enchantments": [

  {

  "enchantment": "minecraft:sharpness",

  "levels": 1,

  "levels": {"min":1,"max":1}

  }

  ]

  }

  ],

  "item": {

  "item": "minecraft:stone",

  "count": 1,

  "count": {"min":1,"max":1},

  "data": 1,

  "data": {"min":1,"max":1},

  "potion": "minecraft:invisibility",

  "enchantments": [

  {

  "enchantment": "minecraft:sharpness",

  "levels": 1,

  "levels": {"min":1,"max":1}

  }

  ]

  },

  "levels": 1,

  "levels": {"min":1,"max":1},

  "recipe": "minecraft:chest",

  "position": {

  "x": 1,

  "x": {"min":1,"max":1},

  "y": 1,

  "y": {"min":1,"max":1},

  "z": 1,

  "z": {"min":1,"max":1}

  },

  "biome": "minecraft:void",

  "block": "minecraft:stone",

  "state": {

  "state_name": "state_value"

  },

  "entity": {

  "type": "minecraft:creeper"

  },

  "distance": 1,

  "distance": {"min":1,"max":1},

  "parents": [

  {

  "type": "minecraft:creeper"

  }

  ],

  "child": {

  "type": "minecraft:creeper"

  },

  "potion": "minecraft:invisibility",

  "level": 1,

  "level": {"min":1,"max":1}

  }

  }

  },

  "requirements": [["generic_trigger_name"]],

  "parent": "namespace:path/to/parent_advancement",

  "display": {

  "icon": "minecraft:stone_pickaxe",

  "title": "Display title",

  "frame": "task",

  "background": "minecraft:path/to/texture.png"

  },

  "rewards": {

  "recipes": ["namespace:path/to/recipe"],

  "loot": ["namespace:path/to/loot_table"],

  "experience": 1

  }

  }

分享到:更多

游戏信息

我的世界
我的世界类型:休闲娱乐平台:PC,iOS,安卓电脑版下载
  • 游戏大礼包
  • 手游开测表