我的世界obsejingdongbianllidiann里哪个是锁定目标

微信:doyo_game
我的世界-探测玩家背包物品的方法
  我的世界里面对于命令方块的使用是游戏一大难点之一,很多时候命令方块可以简化玩家的建造流程,不过对玩家的代码知识要求比较高,下面是命令方块实现探测玩家背包的方法。
  探测玩家背包物品的方法
  教大家如何在MC1.8里探测玩家背包的物品。
  有2个做法:一个是用/clear,另一个是用/testfor。用testfor做更加高级,不过1.8更新后/clear也可以探测NBT什么,所以2个方法都可以。这个东西可以放在冒险地图里面。
  首先是clear。自从1.8更新后,clear的格式改变了。现在可以自定义清空数量和物品NBT了。现在的指令格式:
  /clear &玩家& &物品& [数据] [数量] [dataTag]
  /clear我就不详细多说了,这条指令在很早就有了,不过以前一直没法清空自定义数量,自定义NBT等。给大家举个例子:如果要清空玩家背包里的一个叫“Test”的石剑:
  那么指令就是:
  clear @a minecraft:stone_sword 0 1 {display:{Name:"Test"}}
  大家看见,指令里的1就是数量,后面的{display:{Name:"Test"}}意思就是石剑的NBT,也就是拥有自定义名字为“Test”的石剑。所以,当大家按下按钮后,如果背包里没有叫Test的石剑,那就是指令无效,不会给出输出。有的话就会情空掉一个石剑,然后给出输出。如果是要单纯物品探测的话,那请自行把数量改成0,然后后面用比较器进行输出。/clear比较基础我就不多深入讲解了。
  之后就是/testfor指令了。1.8又更新了点NBT,让/testfor更强大了。用testfor的好处就是可以自定义物品栏等等,还可以探测玩家已经选中的物品栏。指令:
  /testfor @p {Inventory:[{Slot:0b,id:minecraft:stone_sword,Damage:0s,Count:1b,tag:{display:{Name:"Test"}}}]}
  大家看见,这条指令还是探测刚才的一个叫“Test”的石剑。不过这次更加高级。NBT讲解:
  Inventory:探测玩家仓库背包。/testfor用的,如果要探测玩家背包一定要加入这个NBT。
  Slot:玩家物品的槽位。这行可选可不选。帖子下面会详细讲解槽位,单位是b。(数字后面一定要打b,比如:1b,0b等等)
  id:探测目标物品的id。本人这里打的是minecraft:stone_sword,也就是石剑的ID。大家自行修改。
  Damage:数据。这行默认为0,数据用来分辨多个相同物品。比如:多彩色的羊毛。单位是s,一定要加。
  Count:数量。单位是b,一定要加入。这个好像只对可叠加物品起效,比如有5个叠加的羊毛,就可以探测得到。5把石剑的话,如果不是叠加在一起,那就无发探测,导致输出失败。
  tag:这个我就不多说了,基础的NBT链接NBT。这个很多指令都可以用:summon,setblock等等。后面括号里的就是另外的NBT,控制石剑本身,而不和/testfor搞混。
  (本教程不会加入探测玩家选中槽位教程。上次已经发过一个了(SelectedItemSlot),有兴趣的点击这里查看)
  之后来说下背包槽位。大家知道,当打开背包后有很多很多槽位可以放物品。而/testfor探测背包有一项是可以探测玩家放入物品的槽位的。这个最大的用处就是可以探测玩家穿着什么装备什么。槽位的控制图:
  大家看见,0就是玩家选中的第一个槽位。之后100就是鞋子,101就是裤子,到103就是头盔。合成物品的是80,81,82和83。其他就不多说了,大家可以自己研究。玩家选中的槽位就是0-8。
  Slot讲解。大家看见指令里的是0b,也就是玩家第一个手拿的物品。(详情看玩家背包槽位分布图)。所以,Slot后面填写的就是0b-8b,这个探测不一定要是玩家选中了这个槽位,而是只要这个槽位里有达到要求的物品就可以了。配合SelectedItemSlot的话可以达到更好的效果。
http://www.doyo.cn/article/160300
阅读本文后,您的心情是:(选择后可查看结果)
顶285踩346
今日关注游戏我的世界 - 歌单 - 网易云音乐
播放:15次
网易云音乐多端下载
同步歌单,随时畅听320k好音乐
网易公司版权所有(C)杭州乐读科技有限公司运营:我的世界 - 歌单 - 网易云音乐
播放:1649次
网易云音乐多端下载
同步歌单,随时畅听320k好音乐
网易公司版权所有(C)杭州乐读科技有限公司运营:我的世界自定义背包物品教程
来源:游迅网编辑:西瓜妹
& 《我的世界》可以说红遍全球,它没有华丽的画面,没有什么游戏特效,但是它最大的优势就是在于它的游戏性,玩家在一个完全开放的世界,可以完全按照自己的想法建造,最近玩家通过NBT实现了自定义背包物品,到底怎样操作指令又如何使用呢,下面看看详细的我的世界自定义背包物品教程吧。
& 这个也不光是指令方块,可以在刷怪笼上运行,目的是可以放置一个刷钻石套装僵尸的刷怪笼。这个是使用了1.8的新NBT:BlockEntityTag。指令例子:
& /give @p minecraft:command_block 1 0
& {BlockEntityTag:{Command:&/setblock ~ ~1 ~ minecraft:gold_block 0 replace&}}
& 注意:版本要最起码14w07a。以上指令的意思就是给玩家一个指令方块。但是当玩家放置了这个指令方块后,里面就已经拥有自定义指令了,这条自定义指令就是:/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,Amplifier: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:},{id:19,lvl:},{id:20,lvl:},{id:17,lvl:},{id:18,lvl:},{id:34,lvl:}]}},
& {id:313,Count:1,tag:{ench:[{id:0,lvl:},{id:1,lvl:},{id:2,lvl:},{id:3,lvl:},{id:4,lvl:},{id:7,lvl:},{id:34,lvl:}]}},
& {id:312,Count:1,tag:{ench:[{id:0,lvl:},{id:3,lvl:},{id:1,lvl:},{id:4,lvl:},{id:7,lvl:},{id:34,lvl:}]}},
& {id:311,Count:1,tag:{ench:[{id:0,lvl:},{id:3,lvl:},{id:1,lvl:},{id:4,lvl:},{id:7,lvl:},{id:34,lvl:}]}},
& {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:Knockback_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,MinSpawnDelay:10,MaxSpawnDelay:100,MaxNearbyEntities:20}}
& 这条指令会给玩家一个普通的刷怪笼。但是玩家一旦放下,就会发现这个刷怪笼里的是钻石套装的无敌僵尸。于是玩家可以自己自定义方块,然后给方块自定义NBT,运用这个BlockEntityTag。
游戏类别:
游戏平台:/PC/
开发商:Microsoft
发行商:Microsoft
发行时间:日
游戏介绍:《我的世界:教育版(Minecraft: Education)》将可以允许教育工作者管控世界设置,与学生交流,在我的世界游戏中向学生传递项目和指示。它将展示我的世界中所有学生的视图、世界管理设置及聊天窗口列表等。甚至还有一个我的世界时钟将会展示世界各地的时间。教室模式为教育工作者提供了与学生互动及从一个中心用户界面进行管控设置的机会。游迅网我的世界玩家QQ群:,欢迎大家一起探讨交流
《王者荣耀》一经推出就深受广大玩家们的喜爱,就连很多明星们也很爱玩。由于自身喜欢或是节目需求,很多明星都Cos了《王者荣耀》英雄。
一位女施主找到禅师,见面后泪流满面,禅师:“女施主这是怎么了?为何如此?”女施主:“你还记得你姓什么吗?”禅师有些不自然的回答:“早已经忘了!”女施主抽噎着:“那你还记得西梁女儿国么?”禅师:啊!我想起来了,我想起来我是谁了,我要去取精,恕不奉陪!
昨天遇到一个哥们,他满面惆怅,抽着烟。对我说了句:兄弟,我回不了头了。我很是惊奇,担心的问他:是不是犯事了?他:昨晚上落枕了……
又到了每日囧图吐槽时间!年少时买了一条牛仔裤,把膝盖那块布剪掉,穿上感觉潮流时尚,当时我爸打电话叫我替他去参加家族一个葬礼。我就去了,那天不知道跪了多少次,膝盖跪渗血了,我不小心还跪在小石子上...
又到了每日囧图吐槽时间!昨天跟老妈说我失恋了,我的苍老师结婚了,我以后都不能看她了。老妈竟然跟我说没有苍老师还有其他老师,叫我不要伤心。呃,果然我跟老妈开始有代沟了...
老师对小明说:“乳就是小的意思,比如乳猪就是小猪,请你用乳字造个句。” 小明:“我家很穷,只能住40平米的乳房!” 老师晕:“这个不行,换一个” 小明:“我每天上学,都要跳过我家门口的一条乳沟。” 老师狂晕:“不行,再换一个!” 小明:“老师,我想不出来了,把我的乳头都想破了!”
又到了每日囧图吐槽时间!周杰伦结婚时,我把他几百首作品循环了一天。现在苍井空结婚……
一朋友是酒鬼,后来找了女票就嚷嚷着戒酒了,说女票不喜欢酒鬼。两个月后去女票家吃饭,女票老爸叫陪他喝几口,结果控制不住喝高了,搂着女票老爸的肩喊着:兄弟咱再喝两杯!后来女票就跟他分了,分了……
又到了每日囧图吐槽时间!今天晒账单,几十万,几百万的朋友,我都标记了,日后有什么难处,大家都是朋友,多照顾一下。以前都不知道你们这么有钱,有时侯我态度不好是我的不对,从现在开始我们重新认识一下,以后你就是我的好兄弟。
又到了每日囧图吐槽时间!据统计,情侣在冬天选择分手的比例要远远大于在夏天。有人说这是因为人们在冬天更懒惰,更脆弱,更没耐心,更喜欢逃避。其实真实原因是,冬天衣服太贵,节日太多,太特么费钱了!
48小时热点资讯
热门手游推荐From Minecraft Wiki
Strong almost beyond compare and able to stand huge blasts, glossy, black obsidian is forged in the very fires of the earth. What a block!
—Alex Wiltshire
Obsidian is a dark
known for its high blast resistance and strength.
Naturally occurring obsidian
Water pouring onto lava springs, forming obsidian
Obsidian is known as the sole block that can only be successfully mined with a .
Enchanting a pickaxe with "Efficiency" and using a beacon with Haste both drastically decrease the mining time. See the
for more information.
Using a water spring to mine obsidian.
Obsidian is formed when flowing
source block, and can be found naturally where water from a spring or lake has flowed over a nearby
Obsidian can be created when a
is generated in
or . This portal can then be mined, providing a way of obtaining obsidian renewably.
When a player enters , a platform of 25 obsidian blocks is generated for the player to spawn on. This platform can then be mined, and will be regenerated when the player reenters the End. Solid
can also be found on the surface, which will regenerate when the ender dragon is respawned. Obsidian also generates as a part of
in end cities.
Obsidian also occurs naturally where underwater springs flow onto lava, often at layer 10 or lower.
Obsidian also generates in
in a tree shape with a
in the middle of it.
Obsidian can be found in 26.0% of
blacksmith chests in stacks of 3–7, and in 8.0% of
chests in stacks of 2–4.
is mined with a pickaxe without the Silk Touch enchantment, it drops 8 obsidian.
Obsidian can be used to build explosion resistant structures. At 6,000, obsidian's explosion resistance is the highest you can obtain in Survival mode, other than
which have the same blast resistance. Obsidian cannot be pushed by pistons.
Obsidian can be used to create a nether portal frame, which can then be ignited using . The frame will be a vertical rectangle any size from 4×5 to 23×23. Note that the corners of the frame are not required.
Ingredients
 + +
 + +
Main article:
In-game description
Actual requirements (if different) Availability
Xbox points earned
Trophy type (PS)
EnchanterUse a book, obsidian and diamonds to construct an enchantment tablePick up an
output.YesYesYesYes20GSilver
Main article:
In-game description
Actual requirements (if different)
Internal ID
Ice Bucket ChallengeForm and mine a block of ObsidianHot StuffGet a block of
in your inventory.minecraft:story/form_obsidianEnchanterEnchant an item at an Diamonds!—minecraft:story/enchant_item
Added obsidian.
mode, obsidian was extremely tough to break and would drop one or two
blocks when broken.
?Obsidian was removed.
?Obsidian was restored.
It was used to mark the positions of the cardinal directions. This created two intersecting planes extending just above the surface of the solid material that surrounds them.
(This has long since been removed.)
was introduced, made using obsidian.
Obsidian could be mined with an iron pickaxe (since removed), or moved by .
was introduced, crafted using obsidian.
Obsidian mining time was decreased from 15 to 2.5 seconds.
Obsidian mining time was increased from 2.5 to 9.4 seconds.
Obsidian can be found in
was introduced, crafted using obsidian.
block got a crafting recipe using obsidian.
The wither's “blue wither skull” projectile was introduced, producing a special explosion that can destroy obsidian.
Obsidian can now be destroyed with explosives by summoning a
with custom data.
“Infiniobsidian” glitch (allowing conversion of redstone into obsidian) fixed during the implementation of the new block metadata format.
Obsidian can now be found inside chests in .
Obsidian now generates as part of the .
Slightly decreased yield from nether fortress chests.
Obsidian now generates in .
tweets an image of new textures for iron blocks, obsidian, and birch logs.
tweets image of an updated obsidian and a new diamond block texture.
Added Obsidian.
was added,
drops a block of regular obsidian when mined.
The newly added
structure generates a “spire” of obsidian when activated.
The “spires” generated by nether reactors are now made of
instead of obsidian.
Obsidian can now be used to form nether portals.
Obsidian is now used to craft .
Obsidian now requires 6.5 seconds to mine, rather than 3.
Obsidian is now used to craft .
Obsidian is now used to craft .
Obsidian now generates in .
Added obsidian.
Issues relating to “Obsidian” are maintained on the . Report issues there.
Obsidian is one of the hardest blocks to destroy in Minecraft. In reality,
is glass-like in texture and quite fragile.
In real life, obsidian is an extrusive igneous rock like , meaning that they are both formed from lava that has cooled down.
Destroying an obsidian block with a diamond pickaxe while underwater without standing on solid ground would take 3 minutes and 54 seconds. (Without the pickaxe, it takes 4 minutes and 10 seconds.) Either way, the player will run out of air long before the block is mined. (Unless a potion of water breathing is used)
It is a common misconception that enough TNT will destroy obsidian. Even though its explosion resistance rating is finite, additional TNT or other explosives will have no more effect on an individual block than only one (it would take 71.25 times the explosive power of TNT to destroy a block of obsidian). It is possible to hack or use / an explosion strong enough to destroy obsidian, but no such explosion appears naturally.
The "Blue Wither Skull"'s ability to destroy obsidian
its explosion is otherwise no stronger than a ghast's fireball.
Naturally found obsidian in a snowy biome
from Infdev
Naturally formed obsidian
Obsidian naturally formed without water on top
: Hidden category:

我要回帖

更多关于 jingdongbianllidian 的文章

 

随机推荐