Minecraft Wiki Polska:Byli administratorzy
Atrybuty zostały dodane w wersji testowej 13w16a. Służą do dodawania specjalnych efektów do mobów oraz przedmiotów. Oprócz atrybutów istnieją jeszcze edytory które mogą zmieniać moc efektów. Atrybuty i edytory to ukryte wartości które można nadać za pomocą edytora tagów NBT lub stworzyć owe przedmioty z atrybutami wpisując odpowiednio spreparowaną komendą /give.
Atrybuty
Każdy atrybut kontroluje pewne wartości, wyrażane przez Nazwę. Atrybut zawsze ma swoją Bazową wartość, i może mieć Edytory. Atrybuty również mają swoją domyślność wartość(używaną w przypadku gdy spawnuje się mob z niezdefiniowaną bazą atrybutu) oraz zakodowane wartości minimalne oraz maksymalne. Edytory bazują na bazie atrybutu, ale kalkulowanie jest ograniczone zawsze minimalną i maksymalną wartością.
Atrybuty dostępne dla wszystkich żyjących istot
Atrybuty dotyczą zarówno mobów oraz graczy.
| Nazwa atrybutu | Opis | Domyślna baza | Minimalna wartość | Maksymalna wartość |
|---|---|---|---|---|
| generic.maxHealth | Maksymalne życie moba; tym wyższa wartość tym więcej punktów zdrowia może mieć mob. | 20.0 | 0.0 | 2147483647.0 (231 − 1) |
| generic.followRange | Maksymalna odległość przeliczana w blokach w której dany mob może "zauważyć" gracza lub innego moba. Wyjście z tej odległości spowoduje że dany mob zaprzestanie podążania za mobem/graczem. Aktualna wartość używana u wielu mobów to 16; dla zombie 40. | 32.0 | 0.0 | 2048.0 |
| generic.knockbackResistance | Odporność przed odrzutem atakujących, eksplozjami, i innymi obiektami. 1.0 to pełna odporność. | 0.0 | 0.0 | 1.0 |
| generic.movementSpeed | Prędkość poruszania się. Maksymalna prędkość mobów w blokach na sekundę jest nieco powyżej 43 razy ta wartość, ale jest zależne od warunków. | 0.7* | 0.0 | ∞ |
| generic.attackDamage | Obrażenia zadawane przez atakującego, wyrażana w punktach życia(1 = |
1.0 | 0.0 |
Atrybuty dla koni
Te atrybuty mogą być używane jedynie przez Konie.
| Nazwa atrybutu | Opis | Domyślna baza | Minimalna wartość | Maksymalna wartość |
|---|---|---|---|---|
| horse.jumpStrength | Wysokość skoku koni. | 0.7* | 0.0 | 2 |
Atrybuty dla Zombie
Te atrybuty są używane jedynie przez Zombie.
| Nazwa atrybutu | Opis | Domyślna baza | Minimalna wartość | Maksymalna wartość |
|---|---|---|---|---|
| zombie.spawnReinforcements | Szansa na spawn innego zombie w pobliżu po zaatakowaniu. | 0.0 | 0.0 | 1.0 |
W trakcie tłumaczenia. Chcesz pomóc? Przetłumacz! Dziękuję ~piotrex43 :D
Edytory
Modyfikatory oddziaływują na podstawową wartość Atrybutu, zwiększając lub zmniejszając ją. Należy pamiętać, że otrzymana wartość po modyfikacji jest ograniczona przez Minimum i Maksimum atrybutu . Jak Atrybuty, Modyfikatory mają Nazwę, jednak, ta nazwa nie definiuje zachowania Modyfikatora. Zamiast tego, zachowanie Modyfikatora jest determinowane przez jego Działanie. Modyfikatory posiadają również Stopień ich modyfikacji, i UUID (Universalny Unikatowy IDentyfikator).
Działania
Działanie Modyfikatora określa, jak wpływa na podstawową wartość Atrybutu. Istnieją trzy działania, "+- ilość", "+- ilość % (dodatkowo)", i "+- amount % (wielokrotnie)"[1]. Dla uproszczenia, będą one określane jako Działania 0, 1, and 2, ponieważ mają postać kodu i formatu NBT.
The mathematical behavior is as follows: Operation 0: Increment X by Amount, Operation 1: Increment Y by X * Amount, Operation 2: Y = Y * (1 + Amount) (equivalent to Increment Y by Y * Amount). The game first sets X = Base, then executes all Operation 0 modifiers, then sets Y = X, then executes all Operation 1 modifiers, and finally executes all Operation 2 modifiers.
Vanilla Modifiers
As stated before, a Modifier's Name can be anything, and this will not effect its behavior. The following are only known Modifier names and values used in Vanilla Minecraft (do not add modifiers to this table if you find them in custom maps, as map makers may create their own custom modifiers). Note that some UUIDs are generated on-the-fly, while others are represented as fixed strings in the code - these have been listed as well. Do not add UUIDs to this table for modifiers where they are not listed - if a UUID is not listed, this means that it is different every time the modifier is created!
| Nazwa Modyfikatora | Opis i Znane Wartości | Znane Zmodyfikowane Atrybuty |
|---|---|---|
| Bonus losowego odradzania | Generowany przy odradzaniu; liczba losowa z rozkładu Gaussa w zakresie od 0.0 do 0.05*. Dla Odporności Zombie na Odrzut, inna wartość pomiędzy 0.0 i 0.05* jest również generowana. | generic.followRange (Działanie 1; wszystkie moby), Odporność na Odrzut (Działanie 0; jedynie Zombie i Osadnicy) |
| Modyfikator narzędzia | Wartość zmienia się w oparciu o narzędzie. | generic.attackDamage (Działanie 0; wszystkie narzędzia; UUID CB3F55D3-645C-4F38-A497-9C13A33DB5CF) |
| Modyfikator broni | Wartość zmienia się w oparciu o broń. | generic.attackDamage (Działanie 0; wszystkie narzędzia; UUID CB3F55D3-645C-4F38-A497-9C13A33DB5CF (taki sam UUID jak Modyfikator narzędzia)) |
| 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) |
| 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) |
| potion.moveSpeed or potion.moveSpeed # (where # is the potion's level) | Fixed value of 0.2* when under the Speed effect, multiplied by the effect's level. | generic.movementSpeed (Operation 2; All living entities; UUID 91AEAA56-376B-4498-935B-2F7F68070635) |
| potion.moveSlowdown or potion.moveSlowdown # (where # is the potion's level) | 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) |
| potion.damageBoost or potion.damageBoost # (where # is the potion's level) | Fixed value of 3 when under the Strength effect, multiplied by the effect's level. | generic.attackDamage (Operation 2; All living entities; UUID 648D7064-6A60-4F59-8ABE-C2C23A6DD7A9) |
| potion.weakness or potion.weakness # (where # is the potion's level) | Fixed value of 2 when under the Weakness effect, multiplied by the effect's level. | generic.attackDamage (Operation 0; All living entities; UUID 22653B89-116E-49DC-9B6B-9971489B5BE5) |
| potion.healthBoost or potion.healthBoost # (where # is the potion's level) | 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) |
| Unknown synced attribute modifier | Unknown; created when client reads attribute data sent by server. | varies |
References
Przypisy
Poniżej znajduje się lista przypisów na tej stronie.