我的天下版本的更新給游戲帶來了不少新的變更,近來玩家經由過程NBT完成了自界說背包物品,究竟如何操作指令又怎樣應用呢,上面看看具體教程吧。
自界說背包物品方式
這個也不但是指令方塊,可以在刷怪籠上運轉,目標是可以放置一個刷鉆石套裝僵尸的刷怪籠。這個是應用了1.8的新NBT:BlockEntityTag。指令例子:
/give @p minecraft:command_block 1 0
{BlockEntityTag:{Command:”/setblock ~ ~1 ~ minecraft:gold_block 0 replace”}}
注重:版本要最最少14w07a。以上指令的意思就是給玩家一個指令方塊。然則當玩家放置了這個指令方塊后,里面就已擁有自界說指令了q win 娛樂城 ptt,這條自界說指令就是:/setblock ~ ~1 ~ minecraft:gold_block 0 replace 。BlockEntityTag的意思就是把在玩家物品欄里的物品自界說。之后不但是指令方塊,可以用在刷怪籠下面。指令例子:
/give @p minecraft:mob_spawner 1 0
{BlockEntityTag:{EntityId:Zombie,SpawnData:{ActiveEffects:[{Id:1,Amplifier:4,Duration:9999999},
{Id:5,Amplifier:9999999,Duration:9999999},
{Id:10,Amplifierall rights:9999999,Duration:9999999},
{Id:11,Amplifier:9999999,Duration:9999999},
{Id:12,Amplifier:9999999,Duration:9999999},
{Id:13,Amplifier:9999999,Duration:9999999}],
Equipment:[{id:276,Count:1,tag:{ench:[{id:16,lvl:90000000},{id:19,lvl:90000000},{id:20,lvl:90000000},{id:17,lvl:90000000},{id:18,lvl:90000000},{id:34,lvl:90000000}]}},
{id:313,Count:1,tag:{ench:[{id:0,lvl:90000000},{id:1,lvl:90000000},{id:2,lvl:90000000},{id:3,lvl:90000000},{id:4,lvl:90000000},{id:7,lvl:90000000},{id:34,lvl:90000000}]}},
{id:312,Count:1,tag:{ench:[{id:0,lvl:90000000},{id:3,lvl:90000000},{id:1,lvl:90000000},{id:4,lvl:90000000},{id:7,lvl:90000000},{id:34,lvl:90000000}]}},
{id:311,Count:1,tag:{ench:[{id:0,lvl:90000000},{id:3,lvl:90000000},{id:1,lvl:90000000},{id:4,lvl:90000000},{id:7,lvl:90000000},{id:34,lvl:90000000}]}},
{id:52,Count:1,AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:950.0,AttributeName:generic.attackDamage,Name:Attack_Cage},
{Operation:0,UUIDLeast:2,UUIDMost:2,Amount:950.0,AttributeName:generic.knockbackResistance,Name:Knockbaall in 娛樂城ck_Cage},
{Operation:0,UUIDLeast:4,UUIDMost:4,Amount:990.0,AttributeName:generic.maxHealth,Name:Health_Cage}]}],
Attributes:[{Name:generic.attackDamage,Base:1000},
{Name:generic.followRange,Base:250},
{Name:generic.knockbackResistance,Base:700}
{Name:generic.movementSpeed,Base:0.7},
{Name:generic.maxHealth,Base:1000}],
CustomName:”PotatoMaster101″,CustomNameVisible:1},
SpawnCount:2,SpawnRange:6,RequiredPlayerRange:128,Delay:10,Mgoo glinSpawnDelay:10,MaxSpawnDelay娛樂城遊戲體驗:100,MaxNearbyEntities:20}}
這條指令會給玩家一個平凡的刷怪籠。然則玩家一旦放下,就會發明這個刷怪籠里的是鉆石套裝的無敵僵尸。于是玩家可以本身自界說方塊,然后給方塊自界說NBT,應用這個BlockEntityTag。