Cambios

Saltar a: navegación, buscar

Entidad

11 146 bytes añadidos, 00:14 12 ago 2014
Página creada con «{{traducir}} Las '''entidades''' son todos aquellos objetos dinámicos y en movimiento del mundo de Minecraft. == Comportamiento general == Todas las entidades tienen est...»
{{traducir}}
Las '''entidades''' son todos aquellos objetos dinámicos y en movimiento del mundo de Minecraft.

== Comportamiento general ==

Todas las entidades tienen estas propiedades:
* A position, velocity, and rotation (as according to ordinary Newtonian physics).
* A specific volume they occupy, which is a 3-dimensional box with a fixed height and width (square when viewed from the top, and not rotating).
* Current [[health]].
* Whether they are on [[fire]]. Fire reduces health gradually and displays flames covering the entity.

Most entities can be pushed around by [[water]] currents.

Entities cannot pass through solid blocks. Most types of entities prevent blocks from being placed in the space they occupy, except for resources (dropped items) which are automatically pushed out of the block to open air. Also, if an entity ''does'' overlap a block, such as due to falling [[sand]] or a [[door]] being swung, then it is free to move out of the solid block but not back in. (For example, if a door is closed on you, you can jump up and stand on top of the bottom half-door block, if there is air above the door.)

Entities are lit according to the light level of the block their position is in. For example, if a [[minecart]] runs over a non-straight track directly into a solid block, it will turn black (since solid blocks always have a light level of 0), and [[arrow]]s are sometimes seen to turn black (especially if fired shallowly into the ceiling).

==Tipos de entidades==

The following types of entities currently exist in Minecraft. <!-- Please keep the notes to how this entity differs from entities overall, not general descriptions of game functions. -->
{| class="wikitable sortable"
!| Kind
!| Solid
! class="unsortable" | Drops<br>when killed/destroyed
!| Despawns
!| Health
!| Width × Height
!| ID
! class="unsortable" | Notes
|-
!| [[The Player]]
|| Yes
|| Their inventory
|| No
|style='width:100px'| {{hp|20}} (Varies with [[attribute]]s)
|| 0.6×1.8
|| N/A
|| Special case: [[Notch]] also drops an [[Apple]].
|-
!| [[Mob]]s
|| Yes
|| see [[Drops]]
|| see [[Spawn]]
|| Varies
|| Varies
|| see [[Data values/Entity IDs|Entity IDs]]
|-
!| [[Boat]]s
|| Yes
|| [[Sticks]] and Wooden [[Planks]] if crashed, [[Boat]] if hit by a player
|| No
|| {{hp|6}}
|| 1.5×0.6
|| Boat (41)
|| Recovers health quickly over time.<br>Takes damage from colliding with blocks or other entities at high speed.
|-
!| [[Minecart]]s
|| Yes (except to other entities)
|| 1 [[Minecart]]
|| No
|| {{hp|6}}
|| 0.98×0.7
|| MinecartRideable (42), MinecartChest (43), MinecartFurnace (44), MinecartTNT (45), MinecartHopper (46), MinecartSpawner (47), MinecartCommandBlock (40)
|| Recovers health quickly over time.<br>Snaps to [[rails]] if in a block occupied by them.
|-
!| [[Item (entity)|Items]]
|| Only to boats and minecarts
|| None
|| 5 minutes
|| {{hp|5}}
|| 0.25×0.25
|| Item (1)
|| Destroyed by explosions, fire, lava, cacti, and falling anvils, but cannot be struck.
|-
!| [[Experience Orb]]
|| No
|| None
|| 5 minutes
|| {{hp|5}}
|| 0.3×0.3
|| XPOrb (2)
|| Same behaviors as dropped items; also attracted to the player.
|-
!| Projectile [[arrow]]s
|| Yes (to boats in water and minecarts on rails)
|| n/a
|| 1 minute
|| ∞
|| 0.5×0.5
|| Arrow (10)
|| Damages other entities if moving; harmless when stuck in a [[block]].
|-
!| Projectile [[snowball]]s, [[Egg|chicken egg]]s
|| Breaks on impact
|| n/a
|| No
|| ∞
|| 0.25×0.25
|| Snowball (11)
|| Eggs may spawn a [[chicken]] on impact. (1/8 chance)
|-
!| Projectile [[Ender Pearl]]
|| Breaks on impact
|| n/a
|| No
|| ∞
|| 0.25×0.25
|| ThrownEnderpearl (14)
|| Teleports player on impact.
|-
!| Thrown [[Eye of Ender]]
|| No
|| [[Eye of Ender]] after flight (1:5 chance of shattering)
|| No
|| ∞
|| 0.25×0.25
|| EyeOfEnderSignal (15)
|| Floats towards the [[End portal]] in the closest stronghold.
|-
!| Launched [[Firework Rocket]]
|| No
|| n/a
|| Varies (explodes)
|| ∞
|| ?
|| FireworksRocketEntity (22)
||
|-
!| Primed [[TNT]]
|| No
|| n/a
|| 4 seconds [[TNT#Primed TNT|or fewer]]<br>(Explodes)
|| ∞
|| 0.98×0.98
|| PrimedTnt (20)
||
|-
!| [[Entity#Falling_Blocks|Falling sand]]
|| No
|| Itself as an [[Item (entity)|item]] (unless hits ground)
|| Once entity hits ground or ~4 seconds
|| ∞
|| 0.98×0.98
|| FallingSand (21)
|| Drops itself when landing in a non-solid block such as a [[torch]].
|-
!| [[Fishing Rod]] bobber
|| Only to boats and minecarts
|| n/a
|| 1 minute
|| ∞
|| ?
|| ?
||
|-
!| [[Lightning bolt]]
|| No
|| n/a
|| Half a second
|| ∞
|| ?
|| LightningBolt
||
|-
!| [[Paintings]] and [[Item Frames]]
|| No
|| 1 [[Painting]] or [[Item Frame]] (if [[Item Frame]], will drop item inside)
|| No
|| ∞
|| Varies
|| Painting (9), ItemFrame (18)
|| Drops as an item when struck
|-
!| [[Ghast]] and [[Blaze]] Fireballs
|| Explodes on impact/deflected on hit
|| n/a
|| 1 minute
|| ∞
|| 1.0×1.0 (Ghast), 0.3125×0.3125 (Blaze)
|| Fireball (12), SmallFireball (13)
|| Only Ghast Fireballs can be deflected, Blaze Fireballs cannot
|-
!| [[Ender Crystal]]
|| Yes
|| n/a
|| No
|| {{hp|5}}
|| 1.0x1.0 solid(the bedrock part) and 2.0x2.0 textured
|| EnderCrystal (200)
|| Explodes when struck by anything, regardless of damage inflicted
|}

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 [[wikipedia:Axis-aligned bounding box#Axis-aligned_minimum_bounding_box|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#Entity IDs|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.

{| class="wikitable sortable" |
!| Kind
<!-- Conversion factor from ticks to seconds is 1/20 -->
!| Acceleration<br>blocks/[[tick]]<sup>2</sup>
!| Acceleration<br>m/s<sup>2</sup> <!-- calculate = blocks/tick * 20^2 -->
!| Drag<br>1/tick
!| Terminal velocity<br>blocks/tick <!-- calculate = acceleration / drag * (1-drag)
except arrows and thrown items apply drag before acceleration so calculate = acceleration / drag -->
!| Terminal velocity<br>m/s <!-- calculate = blocks/tick * 20 -->
|-
|| Players and other living entities
|| 0.08
|| 32
|| 0.02
|| 3.92
|| 78.4
|-
|| [[Item (entity)|Items]], falling blocks, TNT
|| 0.04
|| 16
|| 0.02
|| 1.96
|| 39.2
|-
|| [[Boat]]s and [[Minecart]]s
|| 0.04
|| 16
|| 0.05
|| 0.76
|| 15.2
|-
|| Thrown [[Egg]]s, [[Snowball]]s, [[Potion]]s, and [[Ender Pearl]]s
|| 0.03
|| 12
|| 0.01
|| 3.00
|| 60.0
|-
|| Fired [[Arrow]]s
|| 0.05
|| 20
|| 0.01
|| 5.00
|| 100.0
|-
|| Blaze [[Fireball]]s
|| 0
|| 0
|| 0
|| 1.90
|| 38.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 whole numbers where the others aren't.

==Further notes==

[[Item frame]]s, [[painting]]s and [[lead]] knots are entities, but they are unusual in that they are aligned to the block grid and completely immobile. [[Door]]s, [[portal]]s and [[bed]]s, 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 [[Tutorials/Mechanisms#Mechanisms|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 a pause after each hit. The amount of wobbling displayed by boats and minecarts when struck appears to indicate their current health.

===Falling Blocks===
The following description refers to [[sand]] for brevity, but [[gravel]], [[anvil]]s, and [[dragon egg]]s behave 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. While sand ordinarily falls straight down, it can be redirected while falling by [[explosion]]s and [[piston]]s. It is also possible to modify the velocity and direction of falling sand by using third party programs.

If when the world is created, a cave is generated underneath sand, Minecraft will fail to update the block (as said in the code to not make sand fall when it is generated) 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 ([[boat]]s, [[minecart]]s, [[ocelot]]s, [[villager]]s and [[wolf|wolves]]), unlike blocks with right-click actions (such as [[chest]]s), 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.

===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 in vanilla [[survival]] are:

* A [[mob]] or [[The Player|player]] in a [[minecart]] or [[boat]].
* A player on a [[saddle]]d [[pig]].
* A [[skeleton]] on a [[spider]] ([[Spider Jockey]]).
* A player on a [[horse]]
* A [[mob]] on a [[lead]]
* A [[Baby animals|baby]] [[zombie]] ([[Zombie Pigman|pigman]]) ([[zombie villager|villager]]) on a [[chicken]] ([[Chicken Jockey]]).

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

Also, entities can be stacked on top of each other but only with the /summon command or mods.

If an entity is riding another entity, the top entity cannot teleport because as soon as the teleport is made, the entity is teleported back to riding the other entity. Since Minecraft smooths out movements by showing entities at locations between new and old positions, this may result in seeing the entity at several locations between riding the other entity and their teleport location.

== Vídeo ==

{{/vídeo}}

== Historial ==

{{History|r}}
{{History||1.1|Players can not interact with entities from far away in [[Creative]] mode.}}
{{History||1.4.2|snap=12w34a|Ahora las entidades pueden interactuar con los portales.}}
{{History|foot}}
3018
ediciones

Menú de navegación