{{Block
|image = Cactus.png
|image2 = Cactus BE.png
|transparent=Yes
|light=No
|tool=any
|renewable=Yes
|stackable=Yes (64)
|flammable=No
|lavasusceptible=No
}}

A '''cactus''' is a [[plant]] block that generates naturally in dry areas and causes damage.

== Obtaining ==

=== Breaking ===

A cactus can be mined by hand without taking damage. The [[tool]] used to mine the cactus does not affect mining speed.<ref>{{bug|MC-175179||Cactus blocks do not have an assigned tool}}</ref>
{{breaking row|horizontal=1|Cactus}}
When the spot a cactus is placed in becomes unsuitable, such as when a solid [[block]] is placed next to it or its supporting block is removed, the cactus block uproots and drops as an [[item (entity)|item]]. 

A cactus also removes and drops itself as an item if a [[piston]] tries to push it, or moves a block into its space. Trying to pull it with a sticky piston does nothing. 

Using a [[sign]] on the side of a cactus causes both the sign and the cactus to drop as items.

=== Natural generation ===

Cacti naturally occur in [[desert]] and [[badlands]] [[biome]]s (twice more common in desert than in badlands). They generate as one ({{frac|11|18}} chance), two ({{frac|5|18}} chance), or three ({{frac|2|18}} chance) blocks tall. Rarely [[#Heights|taller cacti]] can be found if generation chooses to generate another on top of one already generated (although not as commonly as [[sugar cane]]).

A [[potted cactus]] can also be found in an [[igloo]] with a basement.
Potted cacti and 3 block cactus can also be found in some desert village buildings.

=== Mob loot ===

[[Enderman|Endermen]] can pick up cacti. When they die, they drop the cacti they're holding.

=== Chest loot ===

{{LootChestItem|cactus}}

=== Trading ===

[[Wandering trader]]s can sell a cactus for three [[emerald]]s.

== Usage ==
A cactus block may be placed only on [[sand]], [[red sand]], [[suspicious sand]], or another cactus block. A cactus breaks itself (and drops as an [[item]]) if any [[block]] with a solid [[material]], or [[lava]], occupies any of the 4 horizontally adjacent blocks. It also breaks if on the sand and the block above is [[water]] or lava.

When any [[entity]], including [[player]]s and [[mob]]s, touches a cactus, {{hp|1}} [[damage]] is taken every 0.5 seconds. Damage from touching a cactus is reduced by [[armor]], but touching it also damages the armor. Mobs do not avoid cacti when they pathfind.

A cactus destroys any [[item]] that come into contact with it, including other cactus in item form. [[Falling block]]s such as [[sand]] and [[gravel]] are not destroyed when falling onto cactus; instead, they are transformed into item form (as happens when it falls into any block with a hitbox that has a height less than 1, such as [[slab]]s). The item created in this case will sometimes (though not always) be destroyed by the cactus. The conversion to an item applies even when the falling block is a cactus (which is possible with {{cmd|summon}}).<!-- example: /summon minecraft:falling_block ~4 ~4 ~ {BlockState:{Name:"minecraft:cactus"},Time:1} -->

When a [[minecart]] hits a cactus block, the minecart drops as an item and is often destroyed, although a [[hopper]] can pick it up faster.

A cactus can also be placed in a [[flower pot]], where it is rendered harmless.

A cactus (excluding its spikes) is {{frac|7|8}} of a block in width (the same as [[chest]]s) and a full block in height, however the [[Solid block|collision box]] is {{frac|15|16}} of a block high.

=== Farming ===
{{main|Tutorials/Cactus farming}}

Cacti naturally grow to a height of three blocks, adding a block of height when the top cactus block has received 16 random [[tick]]s (i.e. on average every 18 minutes<!-- Average 68.27 seconds/tick * 16 ticks/growth = 18.2 minutes -->, but the actual rate can vary widely). [[Bone meal]] does not work on cacti to speed their growth.<ref>{{bug|MC-73963||Can't use bonemeal on cacti or sugar cane|WAI}}</ref> A cactus does not need [[light]] to grow and is non-flammable. If a cactus has space directly above it, it grows even if the newly-grown block would immediately break due to adjacent blocks.

=== Smelting ingredient ===
{{Smelting
|head=1
|showdescription=1
|Cactus
|Green Dye
|1
|description={{only|Java}}<ref name="MC-210211">{{bug|MC-210211||Smelting cactus gives too much experience since 1.13}}</ref>
}}
{{Smelting
|head=0
|showdescription=1
|Cactus
|Green Dye
|0,2
|description={{only|Bedrock}}
|foot=1
}}

=== Breeding ===

Cacti can be used to breed [[camel]]s and reduce the remaining growth duration of baby camels by 10%. Camels also follow a player holding a cactus.

=== Composting ===
Placing a cactus into a [[composter]] has a 50% chance of raising the compost level by 1.

== Sounds ==
{{Sound table/Block/Wool}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showblocktags=y
|showforms=y
|generatetranslationkeys=y
|displayname=Cactus
|spritetype=block
|nameid=cactus
|blocktags=enderman_holdable
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Cactus
|spritetype=block
|nameid=cactus
|id=81
|foot=1}}

=== Block states ===
{{see also|Block states}}
{{/BS}}

== History ==

{{History|java alpha}}
{{History||v1.0.6|[[File:Cactus JE1.png|32px]] Added cacti.
|[[File:Cactus (item) JE1.png|32px]] The cactus [[inventory]] texture has a side texture on top.
|[[Player]] receives {{hp|1}} damage when <u>punching them</u>, <u>right clicking on them</u>, or <u>making steps on them</u>.
|The cactus is a full [[block]] and acts identically to any one.}}
{{History||v1.0.11|Cacti can now be placed only on [[sand]], and now have the requirement that the space around it has to be empty. Previously, cacti could be placed to form a [[damage|damaging]] floor: both [[player]]s and [[mob]]s would take half a heart of [[damage]] when they walk on a cactus block. This made it useful for traps, such as a hallway with a cactus block floor that would kill all mobs that walked on it.
|Collecting cacti no longer hurts the [[player]].
|[[File:Cactus JE2 BE1.png|32px]] The [[model]] and texture have been updated to have spines around the [[block]].}}
{{History||v1.0.14|Cactus blocks now can grow to a height of three blocks, allowing for farming. Prior to this update, cacti would not grow.}}
{{History||v1.2.0|snap=preview|Cacti now only generates in the new [[desert]] biome, instead of anywhere with sand.}}
{{History|java beta}}
{{History||1.2|Cactus can now be [[smelting|smelted]], giving [[cactus green]].}}
{{History||1.8|snap=Pre-release|When [[drops|dropped]] onto the world, the cactus [[item]] is no longer slightly larger than most other [[block]]s, despite the fact that they are visibly smaller when placed, a bug shared with many other items. This is because it used the larger 'item' size, rather than the 'block' size.}}
{{History|java}}
{{History||1.7.2|snap=13w36a|Cacti now generate in the new [[badlands|mesa]] biomes.}}
{{History|||snap=13w39a|Added [[sand|red sand]], which cactus can also grow on.}}
{{History||1.9|snap=15w43a|A [[flower pot|potted]] cactus can now be found in the basement of the newly added [[igloo]].}}
{{History||1.9|snap=15w49a|Cacti now break if adjacent to [[lava]], or if on [[sand]] and the [[block]] above is [[water]] or lava.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[block]]'s numeral ID was 81.
|[[Banner]]s and [[sign]]s can be placed horizontally adjacent to cactus, immediately breaking the cactus. This action was historically disabled.}}
{{History|||snap=18w06a|Cacti can no longer be [[smelting|smelted]].<ref>{{bug|MC-124923||Smelting a cactus to produce cactus green doesn't work}}</ref>}}
{{History|||snap=18w14b|Cacti can be smelted again, now yielding 1 experience instead of 0.2 per smelting operation.<ref name="MC-210211"/>}}
{{History||1.14|snap=18w43a|[[File:Cactus JE3.png|32px]] The texture of cacti has been changed.}}
{{History|||snap=18w44a|[[File:Cactus JE4.png|32px]] The texture of cacti has been changed, once again.}}
{{History|||snap=18w50a|[[flower pot|Potted]] cacti can now be found in [[desert]] [[village]]s.
|Cacti items can now be found in [[chest]]s in desert village houses.}}
{{History|||snap=19w03a|Placing a cactus into the new [[composter]] has a 20% chance of raising the compost level by 1.}}
{{History|||snap=19w05a|Cacti now has a 50% chance of increasing the compost level in a composter by 1.
|Added [[wandering trader]]s, which sell cacti.}}
{{History||1.20<br>(Experimental)|link=1.19.3|snap=22w42a|Cacti can now be used to breed [[camel]]s.}}
{{History||1.20|snap=23w14a|Cacti can now be planted on [[suspicious sand]].}}

{{History|pocket alpha}}
{{History||v0.1.3|[[File:Cactus JE2 BE1.png|32px]] Added cacti.}}
{{History||v0.2.0|[[File:Cactus (inventory) BE1.png|32px]] Cacti are now available in the [[creative]] mode [[inventory]].}}
{{History||v0.4.0|[[File:Cactus JE2 BE1.png|32px]] Cacti now appear 3D in the [[inventory]] and when dropped; previously they used a completely 2D item texture like many other plants.
|Cacti now obey regular placement exceptions when being placed underwater or on [[snow]].}}
{{History||v0.5.0|Cacti are now available from the [[nether reactor]].}}
{{History||v0.8.0|snap=build 1|[[File:Cactus BE2.png|32px]] The top texture of cacti has been changed.}}
{{History|||snap=build 4|[[File:Cactus JE2 BE1.png|32px]] The top texture of cacti has been reverted.}}
{{History||v0.9.0|snap=build 1|[[File:Cactus BE3.png|32px]] The model of cacti has been changed. The spines behind cacti now render regardless of where viewed from.}}
{{History||v0.12.1|snap=build 1|Cacti are no longer available from the nether reactor.}}
{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|[[flower pot|Potted]] cacti now generate in the basements of [[igloo]]s.}}
{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|Cacti are now found inside [[bonus chest]]s.}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Cactus BE4.png|32px]] The texture of cacti has been changed.
|A 3 [[block]] tall cactus and potted cactus now generates in new [[desert]] [[village]] houses.
|Cacti can now be [[trading|bought]] from [[wandering trader]]s.}}
{{History||1.11.0|snap=beta 1.11.0.1|Cacti can now be found desert village house [[chest]]s.
|Cactus can now be used to fill [[composter]]s.}}
{{History||1.16.0|snap=beta 1.15.0.51|Cactus once again deals damage to mobs and items standing on top of it.}}
{{History||1.20<br>(Experimental)|link=Bedrock Edition 1.19.50|snap=beta 1.19.50.21|Cacti can now be used to breed [[camel]]s.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Cactus JE2 BE1.png|32px]] Added cacti.}}
{{History|Ps4}}
{{History||1.90|[[File:Cactus JE4.png|32px]] The texture of cacti has been changed.}}

{{History|New 3DS}}
{{History||0.1.0|[[File:Cactus JE2 BE1.png|32px]] Added cacti.}}
{{History|foot}}

<gallery>
Oversized items.png|Until [[Beta 1.8]], cacti were somewhat larger than other [[block]]s when [[drop]]ped.
Grass cactus.png|In older versions, [[endermen]] could place cacti on any block.
Lava cactus.png|A cactus can survive in unusual locations using {{cmd|setblock}}). However, this no longer works since [[1.16]].{{verify|so this was a change for both java and bedrock at the same time?}}
</gallery>

== Issues ==

{{issue list|Cactus|Cacti}}

== Trivia ==

* Cacti can be placed [[water|underwater]], provided they are placed on [[sand]], and they grow if they break the surface.
* Cacti can be placed next to [[sapling]]s, but the cactus breaks when the [[tree]] grows.
* [[Endermen]] could move and place cacti. Thus, they can increase the cactus population in [[desert]]s by moving cactus blocks as they grow.
* [[Sign]]s can be placed on top of cacti. Paintings can also be placed on the sides of cacti, creating a nasty trap for anyone that tries to go through paintings.
* It is possible for cacti to generate on blocks other than sand due to [[generated structures|terrain generation]]; refer to the gallery for examples.
* Cactus can be used in the desert to see if the [[player]] is in a newly generated area. If most of the cacti around the player is only one block high, then it is most likely new land.
* Dying from touching a cactus displays "[playername] was pricked to death" in the chat messages.
* [[Block]]s can be placed on top of a cactus, including other cactus blocks.
* It is possible to place [[redstone]] next to a cactus block without destroying it.
* A 20 block tall cactus can be found on the seed 43931985876593125 at coordinates (-9711824 , ~ , 7726416) and more recently a 22 block tall one on seed 11343195073417814 at coordinates (14955936 , ~ , -3750655) and even a 23 block tall one on the seed 184693195438010998 and coordinates (16274576 ~ 10230656). All these seeds, found by the Minecraft@home research project, work on Java Edition 1.14.4.<ref> https://twitter.com/minecraftathome/status/1275401340731232256</ref>
* Top snow can be placed next to cacti without breaking the cacti, no matter how many top snow layers stack.

== Gallery ==
<gallery>
Cactus Near Snow.png|Naturally generated cacti
Common Cacti.png|Naturally occurring cacti in a badlands biome.
Cactus underside.png|The bottom of a cactus seen with the "floating cactus" bug (see below).
Cactus Bug.png|Natural cactus generated against a [[village]] house.
FloatingCactus.png|Natural floating cactus over a lake.
Stonedcactus.png|Cactus generated on [[stone]] due to a [[lava]] lake.
Floating cacti.png|Cacti floating in village garden.
File:Cactus Cola (Trails and Tales Summer Event) Render.png|Cactus Cola, an item featured in the [[Trails & Tales Event]].
</gallery>

=== Heights ===
<gallery>
Babycactus.png|A natural one block tall cactus.
Kidcactus.png|A natural two block tall cactus.
4blocktallcactus.png|A naturally occurring unusual four-block tall cactus.
4blocktallcactus0.png|Another naturally occurring unusual four-block tall cactus.
Pentacactus.png|A natural five block tall cactus.
6blocktallcactus.png|A naturally occurring rare six-block tall cactus.
8blocktallcactus.png|A natural eight block tall cactus, extremely rare.
9blocktallcactus.png|An improbable natural nine-block tall cactus.
12 Tall Cactus.jpg|A twelve-block tall cactus, extraordinarily rare.
19blocktallcactus1.png|A natural nineteen-block tall cactus.<ref>https://www.reddit.com/r/minecraftseeds/comments/g7u4ld/a_year_of_brute_force_work_to_find_a_19_tall/</ref>
20BlockCactus.png|A natural twenty block tall cactus.<ref>https://www.reddit.com/r/minecraftseeds/comments/henko3/recordbreaking_20_block_tall_cactus_found_by/</ref>
22block cactus.png|A natural twenty-two block tall cactus, the second tallest known cactus.<ref>https://minecraftathome.com/minecrafthome/forum_thread.php?id=4</ref>
</gallery>

== References ==
{{reflist}}

== External Links ==
*[https://www.minecraft.net/en-us/article/block-week-cactus Block of the Week: Cactus] – Minecraft.net on February 10, 2017

{{Blocks|vegetation}}

[[Category:Plants]]
[[Category:Natural blocks]]
[[Category:Generated structure blocks]]

[[cs:Kaktus]]
[[de:Kaktus]]
[[es:Cactus]]
[[fr:Cactus]]
[[hu:Kaktusz]]
[[it:Cactus]]
[[ja:サボテン]]
[[ko:선인장]]
[[nl:Cactus]]
[[pl:Kaktus]]
[[pt:Cacto]]
[[ru:Кактус]]
[[th:กระบองเพชร]]
[[uk:Кактус]]
[[zh:仙人掌]]
