resourcepack can now be bundled with a map, put it in the map save directory and name it “resources.zip”
资源包现在可以和一个地图绑定,只需要把资源包重命名为resources.zip并且放到地图的目录即可
Example: ".minecraft/saves/TheMapWithTheThing/resources.zip"
例子:“.minecraft/saves/TheMapWithTheThing/resources.zip”
The commands /testfor, /testforblock and /clear can now test for partial matches of NBT lists
/testfor、/testforblock和/clear现在可以测试部分NBT匹配了
Example: /testfor @p {Inventory:[{Slot:6b,id:"minecraft:diamond_sword"}],SelectedItemSlot:6}
例子:/testfor @p {Inventory:[{Slot:6b,id:"minecraft:diamond_sword"}],SelectedItemSlot:6}
Scoreboard objectives for fake players with a name starting with # will never show up on the sidebar
允许玩家用#创建假的scoreboard玩家,他永远不会出现在侧边栏里
New /scoreboard subcommands /scoreboard operation and /scoreboard test
新的计分板子命令:/scoreboard operation和/scoreboard test
The command /scoreboard operation can apply arithmetic operation to scores (+ – * / %) and accumulate player scores
/scoreboard operation允许玩家进行数学运算(四则运算以及%)并且叠加玩家分数
Example: /scoreboard players operation #teamscores redScore += @a[team=red] blueKills
例子:/scoreboard players operation #teamscores redScore += @a[team=red] blueKills
The command /scoreboard test can be used to test if a scoreboard value is between a min and a max value
/scoreboard test允许玩家检测一个计分板的值是否在一个值域里(可触发事件!!!)
Example: /scoreboard players test #global anObjective 12 19
例子:/scoreboard players test #global anObjective 12 19
New command /execute to execute commands in the context and at the position of other entities or players
新的命令:/execute可以以另一个实体的身份发送命令
Example: /execute @e[type=Chicken] ~ ~ ~ fill ~-1 ~-1 ~-1 ~1 ~1 ~1 minecraft:glass
例子:/execute @e[type=Chicken] ~ ~ ~ fill ~-1 ~-1 ~-1 ~1 ~1 ~1 minecraft:glass
New selector parameters for entity selectors to detect entity rotations with rxm – x rot min, rx – x rot max, rym – y rot min, ry . y rot max
新的用来检测实体旋转的命令符加参数:rxm=x轴旋转最小值,rx=x轴旋转最大值,rym=y轴旋转最小值,y轴旋转最大值
Example: @a[rxm=-15,rx=15,rym=-45,ry=45]
例子:@a[rxm=-15,rx=15,rym=-45,ry=45]
Players in team can now have a team based objective shown on the sidebar, depending on the team color
玩家现在可以根据他们所处的队伍显示侧边栏上的计分板分数,由队伍颜色决定
Example: /scoreboard objectives setdisplay team.yellow anotherObjective
例子:/scoreboard objectives setdisplay team.yellow anotherObjective
While debug overlay is on (press F3 to turn it on and off), looking at a block in the world will show the coordinates of that block
当F3界面开启时(单击F3以切换),对着一个方块看会显示那个方块的坐标
BlockItem instances can now hold a custom NBT tag that is merged into a block entity when it’s placed
具有自定义NBT标签的方块物品现在在放置时可以让那个方块继承它的NBT标签
Example: /give @p command_block 1 0 {BlockEntityTag:{Command:"setblock ~ ~ ~ minecraft:diamond_block"}}
例子:/give @p command_block 1 0 {BlockEntityTag:{Command:"setblock ~ ~ ~ minecraft:diamond_block"}}
In creative mode, players can create a copy of a BlockEntity in their hotbar, including all NBT data, with ctrl+[PICK_KEY] (usually ctrl+middle mouse button)
在创造模式里,玩家可以使用Ctrl+鼠标中键复制一个带有实体附加值的方块以及它的所有附加值
The /tellraw command can now insert values from scoreboards into messages
/tellraw命令现在可以从计分板中把分数导入聊天区域
Example: /tellraw @p {text:"Have ",extra:[{score:{name:"Searge",objective:"reward"}},{text:" diamonds"}]}
例子:/tellraw @p {text:"Have ",extra:[{score:{name:"Searge",objective:"reward"}},{text:" diamonds"}]}
New command /testforblocks to compare two areas of a map
新命令:/testforblock可以比较地图中的两个区域
Example: /testforblocks 100 64 100 107 69 107 0 64 0 masked
例子:/testforblocks 100 64 100 107 69 107 0 64 0 masked
Dispensers will place a commandblock instead of shooting it out
发射器现在将会放置命令方块而不是让它以物品形式掉落
Nametags for players in other teams can now be hidden with a team option
其他队伍里的玩家的名称现在可以被隐藏
Example: /scoreboard teams option red nametagVisibility hideForOtherTeam
例子:/scoreboard teams option red nametagVisibility hideForOtherTeam |