{{DISPLAYTITLE: Llama spit}}
{{Infobox entity
| image = Llama Spit.png
| imagesize = 120px
| size = Height: 0.25 blocks<br>Width: 0.25 blocks
| spawn = [[Llama]] attack
| networkid = '''[[JE]]:''' 68
}}
'''Llama spit''' is a [[projectile]] produced by [[llama]]s that deals a small amount of [[damage]].

== Behavior ==
Llama spit that hits an entity deals {{hp|1}} damage. Despite the spit being a projectile, dying from llama spit still shows the death message "<player> was slain by trader llama/llama." {{IN|be}}, however, the death message is "<player> was spitballed by trader llama/llama". When a llama accidentally hits a neutral or hostile mob (except goats) with its llama spit, the mob retaliates and attacks that llama.

The spit entity must belong to an entity to do damage, meaning that a spit entity summoned by commands does no damage unless its <code>Owner</code> NBT attribute matches the UUID of an entity in loaded [[chunk]]s. 

{{IN|be}}, llama spit can be deflected if hit by the player or hit by certain projectiles. Doing so makes the new entity the owner of the spit.

Llama spit can not pass through any blocks, and {{In|je}}, includes [[:Category:Non-solid blocks|non-solid blocks]] (ex. signs, open fencegate & sugarcane) and even water. The spitting animation still shows the trajectory but the spit entity that does damage terminates on the non-solid block.

Llama spit can be [[blocking|blocked]] by a [[shield]].

== Sounds ==
{{Edition|Java}}:<br>
Llama spit uses the Friendly Creatures sound category for [[Sound#Entity-dependent categories|entity-dependent sound events]].

{{SoundTable
| type = java
| {{SoundLine
| sound =Llama spit1.ogg
|sound2=Llama spit2.ogg
|subtitle=Llama spits
|source=neutral
|description=When a llama spits at something
|id=entity.llama.spit
|translationkey=subtitles.entity.llama.spit
|volume=1.0
|pitch=0.8-1.2
| distance = 16
}}
}}

{{Edition|Bedrock}}:
{{SoundTable
| type = bedrock
| {{SoundLine
| sound =Llama spit1.ogg
|sound2=Llama spit2.ogg
|source=neutral
|description=When a llama spits at something
|id=mob.llama.spit
|volume=0.8
| pitch = 0.8-1.2 (Baby: 1.3-1.7)
}}
}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|generatetranslationkeys=y
|displayname=Llama Spit
|spritetype=entity
|nameid=llama_spit
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|generatetranslationkeys=y
|displayname=Llama Spit
|spritetype=entity
|nameid=llama_spit
|id=102
|foot=1}}

=== Entity data ===
{{el|java}}:
{{main|Entity format}}
Llama spit have entity data associated with them that contain various properties.
{{/ED}}

{{el|bedrock}}:
:See [[Bedrock Edition level format/Entity format]].

== History ==
{{HistoryTable
|{{HistoryLine|java}}
|{{HistoryLine||1.11|dev=16w39a| [[File:Llama Spit.png|32px]] Added llama spit.}}
|{{HistoryLine|||dev=16w41a|Llama spit now has an [[entity]] id: <code>llama_spit</code>.}}
|{{HistoryLine||1.13|dev=18w02a|The hitbox of llama spit has been decreased. Previously it had the same size as the player's hitbox.}}
|{{HistoryLine||1.14|dev=19w05a|Added trader llamas, which can also spit.}}
|{{HistoryLine||1.17|dev=21w20a|Llamas no longer spit at players on [[peaceful]] difficulty.}}
|{{HistoryLine||1.20.5|dev=23w51a|Llama spit is no longer able to destroy armor stands.|Llama spit now uses the damage type <code>spit</code> instead of <code>mob_projectile</code>.}}
|{{HistoryLine||1.21.2|dev=24w34a|Llama spit no longer go through the [[world border]] if hit.}}

|{{HistoryLine|pocket}}
|{{HistoryLine||1.1.0|dev=alpha 1.1.0.0|Newly added llamas can spit.}}
|{{HistoryLine|bedrock}}
|{{HistoryLine||1.10.0|dev=beta 1.10.0.3|Added trader llamas, which can spit.}}
|{{HistoryLine|console}}
|{{HistoryLine||xbox=TU54|xbone=CU44|ps3=1.52|psvita=1.52|ps4=1.52|wiiu=Patch 24|switch=1.0.4|Newly added llamas can spit.}}
|{{HistoryLine|new3ds}}
|{{HistoryLine||1.9.19|Newly added llamas can spit.}}
}}

== Gallery ==
=== Screenshots ===
<gallery>
Llama fighting.png|Llamas fighting each other.
</gallery>

== Navigation ==
{{Navbox entities|Other}}

[[Category:Projectiles]]

[[es:Escupitajo de llama]]
[[uk:Плювок лами]]
[[zh:羊驼唾沫]]
