逗游网:值得大家信赖的游戏下载站!
发布时间:2020-11-12 09:41 来源:我的世界中文论坛 作者:dwch 编辑:潘东子
技术性修改
收起技术性修改
Removed /replaceitem command
移除了 /replaceitem 命令
Added /item command
添加了 /item 命令
Added item modifiers, which reuse loot table functions syntax to describe item modification in /item command
添加了物品修饰符,它重用了战利品表函数表达式以描述 /item 命令中物品的修改
Data pack version is now 7
数据包版本现在是 7
Loot tables can now access scoreboard values by UUID
战利品表现在可以通过 UUID 访问计分板
Loot table values inside random number generators can now be nested
随机数生成器内的战利品表值现在可以嵌套了
Default mode of structure blocks is now Load. Data is now hidden (but can be accessed by clicking mode button while holding alt key)
结构方块的默认模式现在是加载。数据现在是隐藏的(但是按住 Alt 键按模式按钮就能看到)
物品修饰符
The function part of loot tables can now be defined as separate data pack resource in item_modifiers directory.
Such files can contain a single function (i.e single JSON object) or an array of functions.
战利品表中的函数部分现在可以作为独立数据包资源定义出来,在 item_modifiers 目录下。
这些文件可以包含单个函数(例如,单个 JSON 对象),或成组的多个函数。
命令
item
Modifies item or block inventory.
修改物品或方块的物品栏。
This command has three forms:
该命令有三个形式:
/itemreplace[] - same as old replaceitem
/itemreplace[] - 和过去的 replaceitem 一样
/itemmodify- modifies item (without copying).
/itemmodify- 修改物品(不复制)
/itemcopy[] - copies item for source to target(s), optionally applying modifier
/itemcopy[] - 从源到目标复制物品,修饰符的应用是可选的
Possible sources and targets:
可能的源和目标:
entity
block
For example,/item block ~ ~ ~ container.0 copy entity @s enderchest.0 will copy first item from player’s enderchest to first slot of container player is currently standing on.
例如,/item block ~ ~ ~ container.0 copy entity @s enderchest.0 会把玩家末影箱中的第一个物品复制到玩家现在站着的容器的第一个槽里。
战利品表
新条件
value_check
Checks range of value.
检查值的范围。
Parameters:
参数:
value - see “New value providers” section (currently combination of random generators and score)
value - 请参见“新的值提供器”一节(现在是随机数产生器和 score 的结合)
range - min/max range
range - 最小/最大范围
修改的条件
score
entity parameter has now been replaced with target .
It can either contain value from old entity field (like this) or be an score holder name in form {'name': '...'}.
entity 参数现在被 target 参数取代了。
它既可以包含之前 entity 字段的值(比如 this),也可以是 {'name': '...'} 形式的 score holder。
修改的函数
set_damage
This function now has add parameter. If true, change will be relative to current damage. If false, damage will be replaced with current value (default behavior)
该函数现在有 add 参数。若为 true,会以当前伤害为基准做相对修改。若为 false,会以当前值覆盖伤害(默认的行为)
set_count
This function now has add parameter. If true, change will be relative to current item count. If false, item count will be replaced with current value (default behavior)
该函数现在有 add 参数。若为 true,会以当前物品计数为基准做相对修改。若为 false,会以当前值覆盖物品计数(默认的行为)
copy_nbt
source parameter can now be set to {'storage':}, to access command storage.
source 参数现在可以设置为 {'storage':},以访问命令空间。
新函数
set_enchantments
Modifies enchantments on item
修改物品的附魔
参数
enchantments - map of enchantment id to level value (can be score or random number)
enchantments - 附魔 id 到等级值的映射(可以是 score 或随机数)
add - if true, change will be relative to current level. If false, level will be replaced with current value (default behavior)
add - 若为 true,会以当前附魔等级为基准做相对修改。If false,会以当前值覆盖物品计数(默认的行为)
新的值提供器
Note: value providers can be used in same places as random number generators.
注意:值提供器可以用在和随机数发生器相同的地方
score
Returns scaled scoreboard value.
返回缩放后的计分板值。
参数
score - scoreboard name
score - 计分板名称
target - same as target in score predicate
target - 与 score 谓词中的 target 一致
scale - scaling factor (float)
scale - 缩放因子(浮点数)
数据包
Changes to data packs for version 7:
数据包版本 7 的修改:
Removal of /replaceitem(replaced with /item replace)
移除了 /replaceitem(以 /item replace 加以替代)
score loot table condition:entity parameter has been replaced with target
score 战利品表条件:entity 参数已被 target 加以替代
资源包
Changes to resource packs for version 7:
资源包版本 7 的修改:
Drowned texture mirroring has changed (see MC-174685)
溺尸的贴图镜像问题已被修正(参见 MC-174685)
slots for the game mode selector are now 26 pixels instead of 25
游戏模式选择器的槽现在是 26 像素而不是 25 了
上一篇: 荒野大镖客2线上11月11日周更内容一览
下一篇: 怪物猎人世界冰原免费组合DLC内容介绍