Attribute

Από Minecraft Wiki
Μετάβαση σε: πλοήγηση, αναζήτηση

Attributes are a system of buffs/debuffs which are properties on mobs and players. Attributes also have modifiers which adjust the strength of their effect.

Applying attributes[επεξεργασία | επεξεργασία κώδικα]

When applied to an item, a modifier will adjust the corresponding attribute if the item is held or worn.[1][2] Attributes/modifiers can be added to items or mobs without the use of third-party NBT editing software by adding data tags to the give and summon commands.

The following command will give the closest player a diamond sword which does 20 (Heart.svgHeart.svgHeart.svgHeart.svgHeart.svgHeart.svgHeart.svgHeart.svgHeart.svgHeart.svg) extra damage. If you change the operation from 0 to 1 it will MULTIPLY the attack damage instead.

美国在2014年的新增工作岗位被设定为300万个—这是自1999年以来最大的增加量。新增工作岗位的增加预计在2015年将会对得到持续,这将确保消费者支出得到持续的动力;同时汽油价格的下降也将为家庭支出节省额外的开支用以购买其他的商品和服务。详见:汽油价格在2014年下降美国将会节省140亿美元开支。
时隔多年,贝尔蒙特如今已是一位白发苍苍的老人。没能现场观看1950年世界杯的决赛,他从不感到后悔。那次决赛过后没几天,他的母亲就去世了。“我当时决定放弃观看比赛的机会,事实证明这样做是正确的。”他对记者说。

Mr Cook has added three women to what was previously a white-male-dominated executive team and changed Apple’s board charter to commit to seeking out candidates from minorities when appointing directors.
7. “飞翔莲花”(Flying Lotus),《你死了》(You’re Dead), Warp。新融合乐绝不会对旧融合乐说抱歉,这只是升级而已。身为制作人的“飞翔莲花”既注重延续性,也注重破坏、模糊之美与跳跃剪辑的喧闹。他对死亡的组曲式沉思为不虔敬的智慧留出空间,《永远不能抓住我》(Never Catch Me)这首歌的歌词由肯德里克·拉玛(Kendrick Lamar)创作,堪称年度最佳。

《失常》,导演查理·考夫曼(Charlie Kaufman)与杜克·约翰逊(Duke Johnson)。

楼市利好政策显效?18城房价回升北上广深领涨

这是自去年9月以来进口最大单月跌幅,也意味着中国进口已在过去15个月里连续同比收缩。
在美国股市整体被“踩下刹车”的情况下,特斯拉的股价还在一路狂飙。自今年年初至今,其股价已经上涨了80%,目前每股约262美元,接近该公司有史以来的最高值,市值达到320亿美元。

“I thought it would be impossible to replace Steve, and to some extent that’s true,” says Professor Michael Cusumano of MIT’s Sloan School of Management. “But internally the spirit is still alive and the company is organising around a less confrontational culture. We have to give Tim credit for that.”

Attributes[επεξεργασία | επεξεργασία κώδικα]

An individual attribute controls some property, described by its name. An attribute always has a base value, and may have any number of modifiers. Attributes also have a default value (used when spawning a mob with an undefined attribute base), and hard-coded minimum and maximum values. Modifiers act on an attribute's base, but the calculated value is always capped by the minimum and maximum.

Minimum and maximum are inclusive unless specified otherwise or they are equal to 1.7x10308.

The nations of the world have agreed to try to limit the warming to 3.6 degrees Fahrenheit, which would require that emissions slow down and then largely stop in the next 30 years or so. If they continue on their present course through the century, scientists say, the earth could warm by as much as 10 degrees Fahrenheit above the preindustrial level, which would likely be incompatible with human civilization in its current form.
遇到别人我能很轻松地和他/她交谈
Temperatures in 2015 also shattered the previous record set in 2014 by 0.13C, according to Nasa.

Attributes available on all living entities[επεξεργασία | επεξεργασία κώδικα]

常宇:北京冬奥会展示中心6月1日正式开放

Attribute Name Description Default Base Minimum Maximum
generic.maxHealth The maximum health of this mob (in half-hearts); determines the highest health they may be healed to. 20.0 0.0 1.7x10308
generic.followRange The range in blocks within which a mob with this attribute will target players or other mobs to track. Exiting this range will cause the mob to cease following the player/mob. Actual value used by most mobs is 16; for zombies it is 40. 32.0 0.0 2048.0
generic.knockbackResistance The chance to resist knockback from attacks, explosions, and projectiles. 1.0 is 100% chance for resistance. 0.0 0.0 1.0
generic.movementSpeed Speed of movement in some unknown metric. The mob's maximum speed in blocks/second is a bit over 43 times this value, but can be affected by various conditions, such as: being ridden (if a horse), sprinting, fleeing (if a passive mob), attacking (if an enderman or zombie pigman), being led by a leash, being under the effect of a Speed or Slowness potion, being a baby zombie, or being a witch and drinking a potion. Speed in blocks per second can be calculated with the following equation, where x is the movementSpeed attribute y = 43.178x-0.02141
Mob generic.movementSpeed Blocks per second
Player 0.1 4.3m/s
running Player 0.15 6.5m/s
Horse random speed between 0.1125 and 0.3375 random speed between 4.85m/s and 14.55m/s
Llama 0.175 7.5m/s
Cow, mooshroom, snow golem 0.2 8.6m/s
Zombie villager, blaze, sheep, husk, zombie, zombie pigman 0.23 9.9m/s
Creeper, polar bear, iron golem, stray, endermite, witch, chicken, silverfish, skeleton, pig, wither skeleton 0.25 10.8m/s
Enderman, elder guardian, cave spider, rabbit, killer rabbit, ocelot, spider, wolf 0.3 12.9m/s
Vindicator 0.35 15.1m/s
Magma cube, slime 0.4 17.2m/s
Villager, giant, guardian, evoker 0.5 21.6m/s
Wither 0.6 25.9m/s
Ender dragon, bat, ghast, shulker, squid, vex 0.7 30.2m/s
0.7* 0.0 1.7x10308
generic.attackDamage Damage dealt by attacks, in half-hearts. This attribute is not found in iron golems.[Verify] 2.0 0.0 1.7x10308
generic.armor Armor defense points. 0.0 0.0 30.0
generic.armorToughness Armor Toughness. 0.0 0.0 20.0

Attributes for players[επεξεργασία | επεξεργασία κώδικα]

These attributes are only used by players.

Attribute Name Description Default Base Minimum Maximum
generic.attackSpeed Determines speed at which attack strength recharges. Value is the number of full-strength attacks per second. 4.0 0.0 1024.0
generic.luck Affects the results of loot tables using the quality or bonus_rolls tag (e.g. when opening chests or chest minecarts, fishing, and killing mobs). 0.0 -1024.0 1024.0

Attributes for horses[επεξεργασία | επεξεργασία κώδικα]

These Attributes are only used by Horses.

Attribute Name Description Default Base Minimum Maximum
horse.jumpStrength Horse jump strength in some unknown metric. 0.7* 0.0 2

Attributes for zombies[επεξεργασία | επεξεργασία κώδικα]

These Attributes are only used by zombies.

Attribute Name Description Default Base Minimum Maximum
zombie.spawnReinforcements Chance that a zombie will spawn another zombie when attacked. 0.0 0.0 1.0

Properties of unknown attributes[επεξεργασία | επεξεργασία κώδικα]

《财富》美国500强公司苹果(Apple))已宣布,将从现金中拿出300亿美元用于股票回购。这个消息让投资者很高兴:股价暴涨,甚至在消息发布一周后,这只股票相对于标准普尔指数在这7天上涨了12%。苹果有一项规模更大、总额高达1300亿美元的资本回报计划,将一直延续到2015年,而这些回购就是这项计划的一部分。
马特·达蒙凭借他在《火星救援》中扮演的被困宇航员一角而荣获喜剧类最佳男主角奖项。

Attribute Name Description Default Base Minimum Maximum
Any non-Vanilla Attribute name Unknown. 0.0 0 1.7x10308

Modifiers[επεξεργασία | επεξεργασία κώδικα]

Modifiers act upon the base value of an attribute, increasing or decreasing it. Note that the resulting value after modification is capped by the attribute's minimum and maximum. Like attributes, modifiers have a name, however, this name does not define the modifier's behavior. Instead, a modifier's behavior is determined by its operation. Modifiers also carry an amount to their modification, and a UUID (Universally Unique IDentifier).

Operations[επεξεργασία | επεξεργασία κώδικα]

An international medical journal's retraction of 107 research papers from China, many of them by clinical doctors, has reignited concerns over academic credibility in the country.

“这让编辑以为文章发送给了该学科真正的评审人。我们与真正的评审人进行调查和沟通后,他们确认并没有对论文做过评审。
The Internet has flattened the world, and Facebook has banded us together as one big family. Our grandfathers inherited regions, my generation inherited nations, you have inherited the world. You are now only 4.74 people away from any human being and an average of two days away from any inhabited corner of the world. So travel. Africa, Europe, India, China or Brazil, go where you can learn the most, embrace what can teach you the most.
But the declines continued, and now it’s all over, red rover.

adj. 受影响的,受感动的,受疾病侵袭的 adj. 做
Colliding Neutron Stars
[is't?bli?t]
“An interviewer walked inta closet instead of the meeting room.”

Operation 2: Multiplicative. For every modifier, multiplies the current value of the attribute by (1 + x), where x is the amount of the particular modifier. Functions the same as Operation 1 if there is only a single modifier with operation 1 or 2. However, for multiple modifiers it will multiply the modifiers rather than adding them. For example, modifying an attribute with {Amount:2,Operation:2} and {Amount:4,Operation:2} with a Base of 3 results in 45 (3 * (1 + 2) * (1 + 4) = 45).[3]

The People’s Bank of China has long intervened in foreign-exchange markets to hedge against excessive volatility. Since August, however, such intervention has expanded from the domestic spot market, which covers daily transactions, to include the offshore renminbi market in Hong Kong, as well as both onshore and offshore futures markets, traders say.
你的阑尾终究可能不是一个无用的进化副产物。你的阑尾不像智齿那样,事实上它可能发挥着重要的生物学功能,恰好现在人类还没准备好放弃阑尾的这种功能。
2013美国就业前景最好的州:亚利桑那州,德州
Joakim Noah, meanwhile, proved to be so untradeable that he couldn't even generate a rumor.
The film pulls heavily from the life of Arthur Bremer, who shot presidential candidate and segregationist George Wallace in 1972. Similarly to his film counterpart, Bremer shot Wallace shortly after being rebuffed by a young girl. Overall, though, his life was much less exciting than that of De Niro's character, with the biggest commonality between the two being that neither actually succeeds in killing a politician.
007电影中,反派人物往往没有自己的主题曲,但是《金枪人》中克里斯多弗·李扮演的暗杀者出场时有一段轻快动人的绝妙曲调,衬托出暗杀者如地狱使者般帅气冷酷。LuLu的演唱完全演绎出这个反派斯卡拉孟加的过人之处。即使这首歌在今天来说欢快得有点可笑,但这也增添了它的魅力。

Vanilla modifiers[επεξεργασία | επεξεργασία κώδικα]

Restaurants and other retailers across the United States are offering free or discounted items and service to the nation's military veterans Wednesday in honor of the annual Veterans Day holiday observance.
顾名思义,这个真人秀节目还专门拍摄学生们的母亲,展现母亲如何教育孩子与他人竞争。
7.Drones
Sixty Vocab:
鉴于她的成功,她再也无法过上平凡人的生活。
比蒂还在台上就遣责了这个因为给错信封而导致的史诗级巨大失误,他说他打开信封就看到了“《爱乐之城》中的爱玛?斯通”的名字。
其关于朋友间爱情、事业、友谊的主题仍然与今天的年轻人息息相关。
2. The Hammocraft
Ford's F-series pickup, the reigning champion for the last quarter-century, held off a strong challenge from Chevrolet's redesigned Silverado to remain the nation's No. 1 selling vehicle. The race to become the best-selling car, an all-Japanese final, belonged again to the Toyota (TM) Camry, which beat out the Honda (HMC) Accord.
平均工作经验:12个月

Modifier Name Description and Known Values Known Attributes Modified
Random spawn bonus Generated upon spawning; a random number from a Gaussian distribution ranging from 0.0 to 0.05*. For Zombie Knockback Resistance, another value between 0.0 and 0.05* is also generated. generic.followRange (Operation 1; all mobs), Knockback Resistance (Operation 0; Villagers and Zombies only)
Tool modifier Value varies based on tool. generic.attackDamage (Operation 0; all tools; UUID CB3F55D3-645C-4F38-A497-9C13A33DB5CF), generic.attackSpeed (Operation 0; all tools; UUID FA233E1C-4180-4865-B01B-BCCE9785ACA3)
Weapon modifier Value varies based on weapon and weapon tier. generic.attackDamage (Operation 0; all tools; UUID CB3F55D3-645C-4F38-A497-9C13A33DB5CF), generic.attackSpeed (Operation 0; all tools; UUID FA233E1C-4180-4865-B01B-BCCE9785ACA3) (same UUIDs as Tool modifier)
Sprinting speed boost Fixed value of 0.3* used by all mobs (including players) when sprinting. generic.movementSpeed (Operation 2; all living entities; UUID 662A6B8D-DA3E-4C1C-8813-96EA6097278D)
Fleeing speed boost Fixed value of 2 used by all passive mobs when fleeing. generic.movementSpeed (Operation 2; all passive mobs; UUID E199AD21-BA8A-4C53-8D13-6182D5C69D3A)
Attacking speed boost Fixed value of 6.2* for Endermen and 0.45* for Zombie Pigmen; exists only when attacking. generic.movementSpeed (Operation 0; Endermen - UUID 020E0DFB-87AE-4653-9556-831010E291A0, Zombie Pigmen - UUID 49455A49-7EC5-45BA-B886-3B90B23A1718)
Covered armor bonus Fixed value of 20.0 for Shulker exists only when fully closed. generic.armor (Operation 0; Shulker; UUID 7E0292F2-9434-48D5-A29F-9583AF7DF27F)
Horse armor bonus Value varies based on the armor of the horse (None = 0; Iron = 5; Gold = 7;Diamond = 11) generic.armor (Operation 0; EntityHorse; 556E1665-8B10-40C8-8F9D-CF9B1667F295)
Baby speed boost Fixed value of 0.5; exists only for baby Zombies and baby Zombie Villagers. generic.movementSpeed (Operation 1; Baby Zombies; UUID B9766B59-9566-4402-BC1F-2EE2A276D836)
Drinking speed penalty Fixed value of -0.25 for Witches when drinking a potion. generic.movementSpeed (Operation 0; Witches; UUID 5CD17E52-A79A-43D3-A529-90FDE04B181E)
Random zombie-spawn bonus Generated upon spawning; a random number between 0.0 and 1.5. generic.followRange (Operation 2; Zombies)
Leader zombie bonus Has a (small) random chance of being generated on a zombie when spawned. For Spawn Reinforcements Chance, random number between 0.5 and 0.75. For generic.maxHealth, random number between 1.0 and 4.0. zombie.spawnReinforcements (Operation 0; Zombies), generic.maxHealth (Operation 2; Zombies)
Zombie reinforcement caller charge Fixed value of -0.05* created each time a zombie spawns another zombie as reinforcement. zombie.spawnReinforcements (Operation 0; Zombies)
Zombie reinforcement callee charge Fixed value of -0.05* created for each zombie spawned as a reinforcement. zombie.spawnReinforcements (Operation 0; Zombies)
effect.moveSpeed or effect.moveSpeed # (where # is the potion's amplifier) Fixed value of 0.2* when under the Speed effect, multiplied by the effect's level (amplifier + 1). generic.movementSpeed (Operation 2; All living entities; UUID 91AEAA56-376B-4498-935B-2F7F68070635)
effect.moveSlowdown or effect.moveSlowdown # (where # is the potion's amplifier) Fixed value of -0.15* when under the Slowness effect, multiplied by the effect's level. generic.movementSpeed (Operation 2; All living entities; UUID 7107DE5E-7CE8-4030-940E-514C1F160890)
effect.digSpeed or effect.digSpeed# (where # is the potion's amplifier) Fixed value of 0.1* when under the Haste effect, multiplied by the effect's level. generic.attackSpeed (Operation 2; All living entities; UUID AF8B6E3F-3328-4C0A-AA36-5BA2BB9DBEF3)
effect.digSlowDown or effect.digSlowDown# (where # is the potion's amplifier) Fixed value of -0.1* when under the Mining fatigue effect, multiplied by the effect's level. generic.attackSpeed (Operation 2; All living entities; UUID 55FCED67-E92A-486E-9800-B47F202C4386)
effect.damageBoost or effect.damageBoost # (where # is the potion's amplifier) Fixed value of 3 when under the Strength effect, multiplied by the effect's level. generic.attackDamage (Operation 0; All living entities; UUID 648D7064-6A60-4F59-8ABE-C2C23A6DD7A9)
effect.weakness or effect.weakness # (where # is the potion's amplifier) Fixed value of -4 when under the Weakness effect, multiplied by the effect's level. generic.attackDamage (Operation 0; All living entities; UUID 22653B89-116E-49DC-9B6B-9971489B5BE5)
effect.healthBoost # (where # is the potion's amplifier. May be 0.) Fixed value of 4 when under the Health Boost effect, multiplied by the effect's level. generic.maxHealth (Operation 0; All living entities; UUID 5D6F0BA2-1186-46AC-B896-C61C5CEE99CC)
effect.luck or effect.luck# (where # is the potion's amplifier) Fixed value of 1 when under the Luck effect, multiplied by the effect's level. generic.luck(Operation 0; All living entities; UUID 03C3C89D-7037-4B42-869F-B146BCB64D2E)
effect.unluck or effect.unluck # (where # is the potion's amplifier) Fixed value of -1 when under the Unluck effect, multiplied by the effect's level. generic.luck(Operation 0; All living entities; UUID CC5AF142-2BD2-4215-B636-2605AED11727)
Unknown synced attribute modifier Unknown; created when client reads attribute data sent by server. varies

History[επεξεργασία | επεξεργασία κώδικα]

Official release
1.6.113w16aAdded attributes.
1.7.213w36aAttributes/modifiers can be added to items or mobs without the use of third-party NBT editing software by adding data tags to the give and summon commands.
1.915w34bAdded attack speed attribute.
15w36dAdded armor attribute.
15w44bAdded luck attribute.
1.9.1-pre1Added armorToughness attribute.
Pocket Edition Alpha
0.12.1build 1Added attributes.

References[επεξεργασία | επεξεργασία κώδικα]