Minecraft Wiki
Register
Advertisement

Subjekty zahrnují dynamiku pohybujících se objektů světa Minecraftu.

Minecraft obsahuje také doplňkové subjekty, které přidávaní k některým blokům dodatečné informace mimo 4-bitová datová pole, popsaná v sekci hodnoty dat. Tyto doplňkové subjekty využívají např. cedule a truhly. Doplňkové subjekty nepatří mezi subjekty popsané na této stránce.

Obecné vlastnosti[]

Všechny subjekty mají tyto vlastnosti:

  • Pozici, rychlost a rotaci (jako podle Newtonovy fyziky).
  • Specifický obsah, který je uložen v trojrozměrné schránce s danou výškou a šířkou.
  • Momentální výdrž.
  • Když hoří, oheň snižuje výdrž a projevuje se pokrytím subjektu plameny.

Subjekty mohou být odtlačeny vodními proudy.

Subjekty nemohou procházet pevnými bloky. Většina subjektů také zabraňuje pokládání bloků na jejich pozici. Subjekt, který se přeci jenom dostane do struktury bloku se jím může volně pohybovat (např. spadne-li na subjekt písek nebo nachází-li po zavření dveří v jejich struktuře.

Subjekty jsou osvětleny v závislosti na úrovni světla bloku, ve kterém se nachází. Například když důlní vozík projede po nepřímé trati do pevného bloku, zčerná (pevný blok má vždy úroveň světla 0). Také šípy občas zčernají (hlavně jsou-li vystřeleny do stropu).

Typy subjektů[]

Následující typy subjektů se v současnosti nacházejí v Minecraftu.

Druh Pevný Kořist
při zabití
Zmizí Výdrž Šířka × Výška Poznámky
Hráči Ano Obsah inventáře Ne 20Heart × 10 0.6×1.8 Výjimka: Notch vždy zanechá červené jablko.
Živočichové Ano viz Kořist viz Spawn Různé Různé
Lodě Ano 2 Tyčky, 3 Prkna Ne 6HeartHeartHeart 1.5×0.6 Výdrž se stále rychle obnovuje.
Poškozuje se srážkami s bloky nebo jinými subjekty při velké rychlosti.
Důlní vozíky Ano (kromě kolizí s jinými subjekty) 1 Důlní vozík Ne 6HeartHeartHeart 0.98×0.7 Výdrž se stále rychle obnovuje.
Při posunutí na blok kolejí se k nim "přisaje".
Předměty Jen vůči lodím a důlním vozíkům - 5 minut 1Half Heart 0.25×0.25 Zničitelné explozí, ohněm, lávou nebo kaktusem.
Zkušenosti Ne - 5 minut 1Half Heart ? Stejně jako u předmětů; ale navíc přitahovaní hráčem.
Vystřelené šípy Jen vůči lodím ve vodě - 1 minuta 0.5×0.5 Při letu může poškodit jiné subjekty; zabodlý do bloku je neškodný.
Vyhozené sněhové koule, vejce Zničí se při nárazu - Ne 0.25×0.25 Vejci může při dopadu vytvořit slepici.
Vyhozený perla konce Zničí se při nárazu - Ne 0.25×0.25 Teleportuje hráče při dopadu.
Vyhozené oko konce Ne - Ne 0.25×0.25 Letí směrem k nejbližší pevnosti.
TNT připravené k odpálení. Ne - 4 sekundy nebo méně
(Exploduje)
0.98×0.98
Padající písek, štěrk nebo dračí vejce Ne Sebe jako předmět (před dopadam na zem) Po dopadu na zem nebo po cca 4 sekundách 0.98×0.98 Blok se přemění v předmět po dopadu na průchozí blok, např. pochodeň (neplatí u dračích vajec).
Háček Pouze vůči lodím a důlním vozíkům - 1 minuta ?
Výboj blesku Ne - Půl sekundy ?
Malby Ne 1 malba Ne Různé
Ohnivé koule duchů a blazů Ohnivé koule duchů se dají odrazit - 1 minuta 1.0×1.0 (Duch), 0.3125×0.3125 (Blaze)
Krystal konce Ano - Ne 1Half Heart Při zničení exploduje

Entities listed as “solid” obstruct the passage of other entities.

The size is in block lengths (usually considered to be 1 meter), and is the size of an axis-aligned bounding box with the specified width in both horizontal dimensions (X and Z) and the specified height in the Y dimension. This box does not rotate as the object rotates visually.

For a listing of numeric entity IDs, see Data values.

Motion of entities[]

Gravity works differently in Minecraft than the real world, as not everything is subject to the same acceleration. Additionally, there is a drag force proportional to velocity, again dependent on the entity.

Kind Acceleration
blocks/tick2
Acceleration
m/s2
Drag
1/tick2
Terminal velocity
blocks/tick
Terminal velocity
m/s
Players and other living entities 0.08 32 0.02 3.92 78.4
Items, falling blocks, TNT 0.04 16 0.02 1.96 39.2
Boats and Minecarts 0.04 16 0.05 0.76 15.2
Thrown Eggs, Snowballs, Potions, and Ender Pearls 0.03 12 0.01 3.00 60.0
Fired Arrows 0.05 20 0.01 5.00 100.0

Note that when thrown objects and arrows are simulated, the drag is applied before the acceleration, rather than after; this is why their terminal velocities are nice whole numbers where the others aren't.

Further notes[]

Paintings are entities, but they are unusual in that they are aligned to the block grid and completely immobile. Doors, portals and beds, the other objects larger than a single block, are actually groups of adjacent blocks.

Arrows, TNT, sand, and gravel are assumed to have infinite health because they are not destroyed by multiple TNT explosions (they can be fired out of cannons), nor by being on fire for long periods.

Boats and Minecarts[]

See also: Transportation (contains information about speeds)

Boats and minecarts appear to recover health over time. For example, they can be broken by hitting them quick, but cannot be destroyed by hits with unarmed hand with same pause after each hit. The amount of wobbling displayed by boats and minecarts when struck appears to indicate their current health.

Sand and Gravel[]

The following description refers to sand for brevity, but gravel behaves in exactly the same way.

Sand normally exists as a block. When a sand block's support is removed, it turns into a sand entity and falls down until it hits another object, at which point it places itself as a block in the nearest on-grid position, or turns into a sand resource if that position is occupied (such as by a torch). While sand ordinarily falls straight down, it can be redirected while falling by explosions.

If when the world is created, a cave is generated underneath sand, Minecraft will fail to update the block and the sand will remain floating until a block is changed under, above, or beside it. This latter fact means that a single falling sand block can trigger the collapse of an entire region of sand; therefore, sand ceilings should not be disturbed unless one is outside the area, standing over a torch, or prepared to dig out quickly once the sand has fallen.

Right-clicking[]

Entities with right-click actions (boats, minecarts, ocelots and wolves), unlike blocks with right-click actions (such as chests), do not stop the right-click action of a tool you are holding. For example, if you right-click on a tamed wolf with a water bucket in your hand, the wolf will sit, but you will also empty the bucket at the wolf.

Feeding food items to a wolf does not stop your eating action, despite the appearance otherwise. When tested by using a stack of 2 raw porkchop, and feeding them to the wolf, the wolf ate one and the player ate the other (edit: food is now stackable, but you would need to hold down the right mouse button to eat the food yourself). When using just a stack of one, the wolf gets the food before the player can, and the eating is canceled without a food item in that slot.

Riding[]

Entities may be riding on, or attached to, other entities. When this is the case, only the lower/"outer" entity's volume collides with other things, and only that entity can control movement. The currently possible combinations are:

It is possible to have multiple levels, such as a player on a pig in a minecart.

History[]

  • In Creative mode (Minecraft Beta 1.8 to Release 1.1), the player could interact with entities (attack or 'right-click' action) from far away — even if there were blocks in the way. This was very annoying (although, useful for long-range mob attacks). For example, when you tried to break a stone block, and there was a painting on the other side of the block, the stone would not break, but the painting would. Also, when you tried to place a block on a wall, and there was a minecart behind that wall, you would enter the minecart, as if you had clicked it directly, instead of placing the block.

References[]


Environment

Advertisement