Minecraft Wiki
m (zero conditional)
No edit summary
(17 intermediate revisions by 12 users not shown)
Line 1: Line 1:
  +
{{for|predicates inside models|Item predicate}}
 
{{exclusive|java}}
 
{{exclusive|java}}
'''Predicates''' are technical JSON files that represent the conditions for [[loot table]]s, {{cmd|execute if predicate}} command, or [[Commands#Selecting_targets_by_predicate|{{cd|predicate}} target selector argument]]. They are a part of [[data pack]]s.
+
'''Predicates''' are technical JSON files that represent the conditions for [[loot table]]s, {{cmd|execute if predicate}} command, or [[Commands#Selecting targets by predicate|{{cd|predicate}} target selector argument]]. They are a part of [[data pack]]s.
  +
  +
Inside a data pack, a predicate is located within <code>data/<namespace>/predicates</code>.
   
 
== JSON structure ==
 
== JSON structure ==
Line 21: Line 24:
   
 
* '''damage_source_properties''' - Check properties of damage source.
 
* '''damage_source_properties''' - Check properties of damage source.
 
** {{nbt|compound|predicate}}: Predicate applied to the damage source.
**{{nbt|boolean|is_explosion}}
 
 
*** {{Nbt_inherit/conditions/damage_type|indent=***}}
**{{nbt|boolean|is_projectile}}
 
**{{nbt|boolean|is_fire}}
 
**{{nbt|boolean|is_lightning}}
 
**{{nbt|boolean|is_magic}}
 
**{{nbt|boolean|bypasses_magic}}: This is only true for starvation
 
**{{nbt|boolean|bypasses_invulnerability}}: This is only true for void damage
 
**{{nbt|boolean|bypasses_armor}}
 
**{{Nbt|compound|source_entity}}: The source cause of the damage. For example if a skeleton shoots a player with an arrow, the skeleton is the source entity.
 
***{{nbt inherit/conditions/entity|indent=***}}
 
**{{Nbt|compound|direct_entity}}: The direct cause of the damage. For example if a skeleton shoots a player with an arrow, the arrow is the direct entity.
 
***{{nbt inherit/conditions/entity|indent=***}}
 
   
 
* '''entity_properties''' - Test properties of an entity.
 
* '''entity_properties''' - Test properties of an entity.
 
** {{nbt|string|entity}}: Specifies the entity to check for the condition. Set to <code>this</code> to use the entity that died or the player that gained the advancement, opened the container or broke the block, <code>killer</code> for the killer, or <code>killer_player</code> for a killer that is a player.
 
** {{nbt|string|entity}}: Specifies the entity to check for the condition. Set to <code>this</code> to use the entity that died or the player that gained the advancement, opened the container or broke the block, <code>killer</code> for the killer, or <code>killer_player</code> for a killer that is a player.
** {{nbt|compound|predicate}}: Predicate applied to location, uses same structure as advancements.
+
** {{nbt|compound|predicate}}: Predicate applied to entity, uses same structure as advancements.
*** {{nbt|compound|flags}}: Predicate Flags to be checked.
 
**** {{nbt|bool|is_on_fire}}: Test whether the entity is or is not on fire.
 
**** {{nbt|bool|is_sneaking}}: Test whether the entity is or is not sneaking.
 
**** {{nbt|bool|is_sprinting}}: Test whether the entity is or is not sprinting.
 
**** {{nbt|bool|is_swimming}}: Test whether the entity is or is not swimming.
 
**** {{nbt|bool|is_baby}}: Test whether the entity is or is not a baby variant.
 
 
*** {{nbt inherit/conditions/entity|indent=***}}
 
*** {{nbt inherit/conditions/entity|indent=***}}
   
Line 50: Line 37:
 
*** {{nbt|int|A score}}: Key name is the objective while the value is the exact score value required for the condition to pass.
 
*** {{nbt|int|A score}}: Key name is the objective while the value is the exact score value required for the condition to pass.
 
*** {{nbt|compound|A score}}: Key name is the objective while the value specifies a range of score values required for the condition to pass.
 
*** {{nbt|compound|A score}}: Key name is the objective while the value specifies a range of score values required for the condition to pass.
**** {{nbt|int|min}}: Minimum score.
+
**** {{nbt|int}}{{nbt|compound|min}}: [[Loot_table#Number_Providers|Number Provider]]. Minimum score.
**** {{nbt|int|max}}: Maximum score.
+
**** {{nbt|int}}{{nbt|compound|max}}: [[Loot_table#Number_Providers|Number Provider]]. Maximum score.
   
 
* '''inverted''' - Inverts condition from parameter term.
 
* '''inverted''' - Inverts condition from parameter term.
Line 88: Line 75:
 
* '''time_check''' - Checks the current time
 
* '''time_check''' - Checks the current time
 
** {{nbt|int|value}}: The time value in ticks.
 
** {{nbt|int|value}}: The time value in ticks.
** {{nbt|compound|value}}
+
** {{nbt|compound|value}}:
*** {{nbt|int|max}}: The maximum value.
+
*** {{nbt|int}}{{nbt|compound|min}}: [[Loot_table#Number_Providers|Number Provider]]. The minimum value.
*** {{nbt|int|min}}: The minimum value.
+
*** {{nbt|int}}{{nbt|compound|max}}: [[Loot_table#Number_Providers|Number Provider]]. The maximum value.
** {{nbt|int|period}}: If present, time gets modulo-divided by this value (for example, if set to 24000, value operates on a time period of days).
+
** {{nbt|int|period}}: If present, time gets modulo-divided by this value (for example, if set to 24000, value operates on a time period of daytime ticks just like <code>/time query daytime</code>).
 
* '''tool_enchantment''' - Test the tool's enchantments.
 
** {{nbt|list|enchantments}}: List of enchantments the tool must have.
 
*** {{nbt|compound}} An enchantment.
 
**** {{nbt|string|enchantment}}: The enchantment [[namespaced ID]].
 
**** {{nbt|compound|levels}}: The level this enchantment has to be.
 
***** {{nbt|int|min}}: The minimum level.
 
***** {{nbt|int|max}}: The maximum level.
 
   
 
* '''weather_check ''' - Checks for a current weather state
 
* '''weather_check ''' - Checks for a current weather state
 
** {{nbt|boolean|raining}}: If true, the condition evaluates to true only if it's raining.
 
** {{nbt|boolean|raining}}: If true, the condition evaluates to true only if it's raining.
 
** {{nbt|boolean|thundering}}: If true, the condition evaluates to true only if it's thundering.
 
** {{nbt|boolean|thundering}}: If true, the condition evaluates to true only if it's thundering.
  +
  +
* '''value_check''' - Checks for range of value
  +
** {{nbt|int}}{{nbt|compound|value}}: [[Loot_table#Number_Providers|Number Provider]]. The value to test.
 
** {{nbt|int|range}}: The exact value to check.
 
** {{nbt|compound|range}}: The range to check the value.
  +
*** {{nbt|int}}{{nbt|compound|min}}: [[Loot_table#Number_Providers|Number Provider]]. The minimum value.
  +
*** {{nbt|int}}{{nbt|compound|max}}: [[Loot_table#Number_Providers|Number Provider]]. The maximum value.
 
</div>
 
</div>
   
Line 114: Line 100:
   
 
[[de:Prädikate]]
 
[[de:Prädikate]]
[[zh:谓词]]
+
[[fr:Prédicat]]
  +
[[ja:プレディケート]]
  +
[[zh:战利品表谓词]]

Revision as of 19:15, 19 December 2020

For predicates inside models, see Item predicate.
Information icon
This feature is exclusive to Java Edition. 

Predicates are technical JSON files that represent the conditions for loot tables, /execute if predicate command, or predicate target selector argument. They are a part of data packs.

Inside a data pack, a predicate is located within data/<namespace>/predicates.

JSON structure

  • The root tag.
    •  condition: The condition's ID.
    • Other parts of the condition, specified below.

The possible values for  condition and associated extra contents:

  • alternative - Joins conditions from parameter terms with "or".
    •  terms: A list of conditions to join using 'or'.
      • A condition.
  • block_state_property - Check properties of a block state.
    •  block: A block ID. The test fails if the block doesn't match.
    •  properties: (Optional) A map of block property names to values. All values are strings. The test fails if the block doesn't match.
  • damage_source_properties - Check properties of damage source.
    •  predicate: Predicate applied to the damage source.
      • Tags common to all damage types
  • entity_properties - Test properties of an entity.
    •  entity: Specifies the entity to check for the condition. Set to this to use the entity that died or the player that gained the advancement, opened the container or broke the block, killer for the killer, or killer_player for a killer that is a player.
    •  predicate: Predicate applied to entity, uses same structure as advancements.
      • All possible conditions for entities
  • entity_scores - Test the scoreboard scores of an entity.
    •  entity: Specifies the entity to check for the condition. Set to this to use the entity that died or the player that gained the advancement, opened the container or broke the block, killer for the killer, or killer_player for a killer that is a player.
    •  scores: Scores to check. All specified scores must pass for the condition to pass.
      •  A score: Key name is the objective while the value is the exact score value required for the condition to pass.
      •  A score: Key name is the objective while the value specifies a range of score values required for the condition to pass.
  • inverted - Inverts condition from parameter term.
    •  term: The condition to be negated.
  • killed_by_player - Test if a killer_player entity is available.
    •  inverse: If true, the condition passes if killer_player is not available.
  • location_check - Checks if the current location matches.
    •  offsetX - optional offsets to location
    •  offsetY - optional offsets to location
    •  offsetZ - optional offsets to location
    •  predicate: Predicate applied to location, uses same structure as advancements.
      • Tags common to all locations
  • match_tool - Checks tool.
    •  predicate: Predicate applied to item, uses same structure as advancements.
      • All possible conditions for items
  • random_chance - Test if a random number 0.0–1.0 is less than a specified value.
    •  chance: Success rate as a number 0.0–1.0.
  • random_chance_with_looting - Test if a random number 0.0–1.0 is less than a specified value, affected by the level of Looting on the killer entity.
    •  chance: Base success rate.
    •  looting_multiplier: Looting adjustment to the base success rate. Formula is chance + (looting_level * looting_multiplier).
  • reference - Test if another referred condition (predicate) passes.
    •  name: The namespaced ID of the condition (predicate) referred to. A cyclic reference causes a parsing failure.
  • survives_explosion - Returns true with 1/explosion radius probability.
  • table_bonus - Passes with probability picked from table, indexed by enchantment level.
    •  enchantment: Id of enchantment.
    •  chances: List of probabilities for enchantment level, indexed from 0.
  • time_check - Checks the current time
    •  value: The time value in ticks.
    •  value:
    •  period: If present, time gets modulo-divided by this value (for example, if set to 24000, value operates on a time period of daytime ticks just like /time query daytime).
  • weather_check - Checks for a current weather state
    •  raining: If true, the condition evaluates to true only if it's raining.
    •  thundering: If true, the condition evaluates to true only if it's thundering.
  • value_check - Checks for range of value

History

Java Edition
1.15
{{Extension DPL}}<ul><li>[[Lava Bucket|Lava Bucket]]<br/>{{Item
| title = Lava Bucket
| image = Lava Bucket.png
| renewable = Yes
| stackable = No 
}}
A '''lava bucket''' is a [[bucket]] filled with [[lava]].

== Obtaining ==
=== Interacting ===
To fill an empty [[bucket]] with lava, {{control|use}} it on a [[lava]] source block or lava in a [[cauldron]]. The block is consumed in the process. Flowing lava does not fill a bucket.

If there is a lava source above the [[pointed dripstone]] stalactite, there is a {{frac|15|256}} (~5.9%) chance for it to completely fill an empty cauldron within 10 blocks under the tip with lava after a [[random tick]]. This lava can then be scooped with a bucket, making it a renewable resource.

==Usage==
A lava bucket can be used to place down lava sources with the {{key|Use Item}} button. Doing so gives the player the bucket back. Lava buckets can be used to replace some transparent, non-full blocks such as [[tall grass]] and [[water]], both flowing and sources.

{{IN|java}}, lava buckets can be used to break [[Nether Portal (block)|Nether portal blocks]] by placing the lava on the side of a block next to the portal block.

=== Smelting ===
A lava bucket can be used as an efficient [[fuel]]. It has the longest burning value of 1000 seconds, compared to 800 seconds for a [[coal block]] (a lava bucket smelts 100 items, and a coal block smelts 80). After smelting starts, the lava bucket turns into an empty bucket.

=== Trading ===
{{IN|bedrock}}, journeyman-level armorer villagers buy a lava bucket for one [[emerald]] as part of their trades.

{{IN|java}}, journeyman-level armorer villagers have a 40% chance of offering to buy a lava bucket for one emerald.

=== Cauldrons === 
A lava bucket can be used to fill a [[cauldron]] with lava. The lava damages any entity standing inside the cauldron, unless the entity is immune to fire damage.<!-- ex: nether mobs--> Flowing water or waterlogging does not affect the lava in the cauldron.

== Sounds ==
{{el|je}}:
{{Sound table
|sound=Fill lava bucket1.ogg
|sound2=Fill lava bucket2.ogg
|sound3=Fill lava bucket3.ogg
|subtitle=Bucket fills
|source=player
|description=When a bucket is filled with lava
|id=item.bucket.fill_lava
|translationkey=subtitles.item.bucket.fill
|volume=1.0
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Empty lava bucket1.ogg
|sound2=Empty lava bucket2.ogg
|sound3=Empty lava bucket3.ogg
|subtitle=Bucket empties
|source=block
|description=When a lava bucket is emptied
|id=item.bucket.empty_lava
|translationkey=subtitles.item.bucket.empty
|volume=1.0
|pitch=1.0
|distance=16
|foot=1}}

{{el|be}}:
{{Sound table
|type=bedrock
|sound=Fill lava bucket1.ogg
|sound2=Fill lava bucket2.ogg
|sound3=Fill lava bucket3.ogg
|source=block
|description=When a bucket is filled with lava
|id=bucket.fill_lava
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Empty lava bucket1.ogg
|sound2=Empty lava bucket2.ogg
|sound3=Empty lava bucket3.ogg
|source=block
|description=When a lava bucket is emptied
|id=bucket.empty_lava
|volume=1.0
|pitch=1.0
|foot=1}}

==Data values==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Lava Bucket
|spritetype=item
|nameid=lava_bucket
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showaliasids=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Lava Bucket
|spritetype=item
|nameid=lava_bucket
|aliasid=bucket / 10
|id=363
|form=item
|translationkey=item.bucketLava.name
|foot=1}}

== Achievements ==
{{load achievements|Super Fuel}}

== Advancements ==
{{Load advancements|Hot Stuff}}

==History==
{{History|java infdev}}
{{History||20100615|[[File:Lava Bucket JE1 BE1.png|32px]] Added lava buckets.}}
{{History|java alpha}}
{{History||v1.1.0|Buckets of lava can now be used to fuel a [[furnace]] for 100 [[smelting|smelts]], consuming the [[lava]] and the [[bucket]]. This is the highest number of smelts of any single [[item]] in the game.}}
{{History||v1.2.6|{{control|use|text=Using}} a lava bucket on [[block]]s with GUIs ([[chest]]s, furnaces, etc.) no longer places the lava.}}
{{History|java}}
{{History||1.2.1|snap=1.2|Changed name from "Lava bucket" to "Lava Bucket".}}
{{History||1.3|snap=12w22a|[[Smelting]] in a [[furnace]] with a lava bucket now leaves an empty [[bucket]] for the [[player]] to retrieve.}}
{{History||1.8|snap=14w25a|A lava bucket is now shown as the icon when [[lava]] is used as a layer in [[Superflat]].}}
{{History||1.9|snap=15w50a|Added sounds for filling and pouring lava buckets.}}
{{History||1.13|snap=17w47a|Prior to the ''[[Flattening]]'' this item's numerical ID was 327.}}
{{History||1.14|snap=18w43a|[[File:Lava Bucket JE2 BE2.png|32px]] The texture of lava buckets has been changed.}}
{{History|||snap=19w11a|Armorer villagers can now [[trading|buy]] lava buckets.}}
{{History||1.17|snap=20w45a|Lava buckets can now be used to fill a [[cauldron]] with lava.}}
{{History|||snap=21w13a|The lava bucket is now fully renewable, as [[pointed dripstone]] can now be obtained in Survival mode without custom generation.}}

{{History|pocket alpha}}
{{History||v0.7.0|[[File:Lava Bucket JE1 BE1.png|32px]] Added lava buckets.}}
{{History||v0.7.4|Lava buckets can now be used as [[fuel]] in a [[furnace]].
|Lava buckets no longer stack to 64.}}
{{History|bedrock}}
{{History||1.4.0|snap=beta 1.2.14.2|Moved all bucket items, including lava buckets, from the Equipment tab to the Items tab in the [[Creative inventory]].{{verify|type=update}}{{info needed}}<!---please check snapshots, only 1 major release version was checked each--->}}
{{History||1.9.0|snap=beta 1.9.0.2|Lava bucket can now be used to fill a [[cauldron]].}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Lava Bucket JE2 BE2.png|32px]] The texture of lava buckets has been changed.}}
{{History||1.11.0|snap=beta 1.11.0.4|Lava buckets can now be [[trading|sold]] to armorer [[villager]]s.}}
{{History||1.16.100|snap=beta 1.16.100.56|The ID of lava buckets has been changed from <code>bucket/10</code> to <code>lava_bucket</code>.}}
{{History||1.17.0|snap=beta 1.16.230.54|The lava bucket is now fully renewable, as [[pointed dripstone]] can now be obtained in Survival mode without custom generation.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Lava Bucket JE1 BE1.png|32px]] Added lava buckets.}}
{{History||xbox=TU9|[[Dispenser]]s have now been given the ability to shoot out the [[liquids]] inside lava buckets. They can also suck up the liquids if activated again, but do not fill up the [[bucket]]s with the liquid dropped due to a bug.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Lava Bucket JE2 BE2.png|32px]] The texture of lava buckets has been changed.}}

{{History|New Nintendo 3DS Edition}}
{{History||0.1.0|[[File:Lava Bucket JE1 BE1.png|32px]] Added lava buckets.}}
{{History|foot}}

== Issues ==
{{Issue list}}

==Trivia==
* One lava bucket has the highest number of [[smelting|smelts]] in the game at 100 items per bucket.
** This makes it 12.5 times more efficient than [[coal]] and [[charcoal]].
* A lava bucket is used as Steve's Down-Smash attack in the crossover fighting game Super Smash Bros. Ultimate.

{{Items}}

[[Category:Renewable resources]]
[[Category:Tools]]

[[de:Lavaeimer]]
[[ja:溶岩入りバケツ]]
[[pt:Balde de lava]]
[[th:ถังลาวา]]
[[uk:Відро лави]]
[[zh:熔岩桶]]</li><li>[[Compound|Compound]]<br/>{{About|a feature in the Education Edition|the NBT tag|NBT}}
{{education feature}}
{{exclusive|bedrock|education}}
{{Item
| image = Water (compound).png
| image2 = Garbage.png
| renewable = No
| stackable = Yes (64)
}}

'''Compounds''' are a type of [[item]] from [[Education Edition]] used in chemistry, which are created from combinations of various [[element]]s.

== Obtaining ==
Compounds cannot be obtained in the [[Creative inventory]]. They are only obtained from creating them in the [[compound creator]]. This is done by inserting a certain number of [[element]]s corresponding to the compound's chemical formula.

== List of compounds ==
{| class="wikitable" data-description="Compounds"
!Icon
!Compound Name
!Compound Recipe
!Description
!Uses
|-
|{{slot|Aluminum Oxide|link=none}}
|{{text anchor|Aluminium Oxide}}
|{{slot|Aluminum,2}}{{slot|Oxygen,3}}
|Is only brown when dug up from the Earth and contaminated; actually white when pure. Can be electrolyzed to make aluminum metal. Also the main chemical in rubies and sapphires.
|Used to craft [[hardened glass]]. 
|-
|{{slot|Ammonia|link=none}}
|{{text anchor|Ammonia}}
|{{slot|Nitrogen}}{{slot|Hydrogen,3}}
|
|Used to create [[super fertilizer]].
|-
|{{slot|Barium Sulfate|link=none}}
|{{text anchor|Barium Sulfate}}
|{{slot|Barium}}{{slot|Sulfur}}{{slot|Oxygen,4}}
|
|
|-
|{{slot|Benzene|link=none}}
|{{text anchor|Benzene}}
|{{slot|Carbon,6}}{{slot|Hydrogen,6}}
|
|
|-
|{{slot|Boron Trioxide|link=none}}
|{{text anchor|Boron Trioxide}}
|{{slot|Boron,2}}{{slot|Oxygen,3}}
|
|Used to craft [[hardened glass]].
|-
|{{slot|Calcium Bromide|link=none}}
|{{text anchor|Calcium Bromide}}
|{{slot|Calcium}}{{slot|Bromine,2}}
|
|
|-
|{{slot|Crude Oil|link=none}}
|{{text anchor|Crude Oil}}
|{{slot|Carbon,9}}{{slot|Hydrogen,20}}
|C<sub>9</sub>H<sub>20</sub> is the chemical formula for nonane.
|
|-
|{{slot|Glue|link=none}}
|{{text anchor|Glue}} (Cyanoacrylate)
|{{slot|Carbon,5}}{{slot|Hydrogen,5}}{{slot|Nitrogen}}{{slot|Oxygen,2}}
|C<sub>5</sub>H<sub>5</sub>NO<sub>2</sub> is the chemical formula for methyl cyanoacrylate, one of the cyanoacrylate glues ("superglue"); its condensed formula is CH<sub>2</sub>=C(CN)COOCH<sub>3</sub>.
|
|-
|{{slot|Hydrogen Peroxide|link=none}}
|{{text anchor|Hydrogen Peroxide}}
|{{slot|Hydrogen,2}}{{slot|Oxygen,2}}
|
|Used to craft [[glow stick]].
|-
|{{slot|Iron Sulfide|link=none}}
|{{text anchor|Iron Sulfide}}
|{{slot|Iron}}{{slot|Sulfur}}
|
|
|-
|{{slot|Latex|link=none}}
|{{text anchor|Latex}}
|{{slot|Carbon,5}}{{slot|Hydrogen,8}}
|C<sub>5</sub>H<sub>8</sub> is the chemical formula for isoprene, which polymers are the main components of natural rubber; its condensed formula is CH<sub>2</sub>=C(CH<sub>3</sub>)−CH=CH<sub>2</sub>.
|Used to craft [[balloon]]s.
|-
|{{slot|Lithium Hydride|link=none}}
|{{text anchor|Lithium Hydride}}
|{{slot|Lithium}}{{slot|Hydrogen}}
|
|
|-
|{{slot|Luminol|link=none}}
|{{text anchor|Luminol}}
| class="nowrap" |{{slot|Carbon,8}}{{slot|Hydrogen,7}}{{slot|Nitrogen,3}}{{slot|Oxygen,2}}
|Luminol is a chemical that glows blue when oxidized. It can detect blood. 
|Used to craft [[glow stick]].
|-
|{{slot|Lye|link=none}}
|{{text anchor|Lye}}
|{{slot|Sodium}}{{slot|Oxygen}}{{slot|Hydrogen}}
|
|
|-
|{{slot|Magnesium Nitrate|link=none}}
|{{text anchor|Magnesium Nitrate}}
|{{slot|Magnesium}}{{slot|Nitrogen,2}}{{slot|Oxygen,6}}
|Condensed formula: Mg(NO<sub>3</sub>)<sub>2</sub>
|
|-
|{{slot|Magnesium Oxide|link=none}}
|{{text anchor|Magnesium Oxide}}
|{{slot|Magnesium}}{{slot|Oxygen}}
|
|
|-
|{{slot|Polyethylene|link=none}}
|{{text anchor|Polyethylene}}
|{{slot|Carbon,10}}{{slot|Hydrogen,20}}
|Polyethlene (PE), (CH<sub>2</sub>)<sub>''n''</sub>, is ''the'' most commonly produced plastic.
|Used to craft [[glow stick]].
|-
|{{slot|Potassium Iodide|link=none}}
|{{text anchor|Potassium Iodide}}
|{{slot|Potassium}}{{slot|Iodine}}
|Used for making iodized salt and other things.
|
|-
|{{slot|Soap|link=none}}
|{{text anchor|Soap}}
|{{slot|Carbon,18}}{{slot|Hydrogen,35}}{{slot|Sodium}}{{slot|Oxygen,2}}
|C<sub>18</sub>H<sub>35</sub>NaO<sub>2</sub> is the chemical formula of sodium stearate, the most common soap.
|
|-
|{{slot|Sodium Acetate|link=none}}
|{{text anchor|Sodium Acetate}}
|{{slot|Carbon,2}}{{slot|Hydrogen,3}}{{slot|Sodium}}{{slot|Oxygen,2}}
|Used to make hand warmers because it heats up when it "freezes".
|Used to create [[Ice Bomb]].
|-
|{{slot|Sodium Fluoride|link=none}}
|{{text anchor|Sodium Fluoride}}
|{{slot|Sodium}}{{slot|Fluorine}}
|Commonly used in toothpaste to prevent cavity, among other uses.
|
|-
|{{slot|Sodium Hydride|link=none}}
|{{text anchor|Sodium Hydride}}
|{{slot|Sodium}}{{slot|Hydrogen}}
|
|
|-
|{{slot|Sodium Hypochlorite|link=none}}
|{{text anchor|Sodium Hypochlorite}}
|{{slot|Sodium}}{{slot|Chlorine}}{{slot|Oxygen}}
|Main ingredient of real-life bleach.
|Used to create [[Bleach]].
|-
|{{slot|Sodium Oxide|link=none}}
|{{text anchor|Sodium Oxide}}
|{{slot|Sodium,2}}{{slot|Oxygen}}
|
|
|-
|{{slot|Sulfate|link=none}}
|{{text anchor|Sulfate}}
|{{slot|Sulfur}}{{slot|Oxygen,4}}
|Cannot actually exist on its own, as it should have a <sup>2-</sup> charge.
|
|}

=== Chlorides ===
{| class="wikitable" data-description="Chlorides"
!Icon
!Compound
!Recipe
!Uses
|-
|{{slot|Salt|link=none}}
|{{text anchor|Salt}}
|{{slot|Sodium}}{{slot|Chlorine}}
|Used to create [[heat block]].
|-
|{{slot|Calcium Chloride|link=none}}
|{{text anchor|Calcium Chloride}}
|{{slot|Calcium}}{{slot|Chlorine,2}}
|Used to craft [[sparkler|orange sparkler]].
|-
|{{slot|Cerium Chloride|link=none}}
|{{text anchor|Cerium Chloride}}
|{{slot|Cerium}}{{slot|Chlorine,3}}
|Used to craft [[colored torch|blue torch]] and [[sparkler|blue sparkler]].
|-
|{{slot|Mercuric Chloride|link=none}}
|{{text anchor|Mercuric Chloride}}
|{{slot|Mercury}}{{slot|Chlorine,2}}
|Used to craft [[colored torch|red torch]] and [[sparkler|red sparkler]].
|-
|{{slot|Potassium Chloride|link=none}}
|{{text anchor|Potassium Chloride}}
|{{slot|Potassium}}{{slot|Chlorine}}
|Used to craft [[colored torch|purple torch]] and [[sparkler|purple sparkler]].
|-
|{{slot|Tungsten Chloride|link=none}}
|{{text anchor|Tungsten Chloride}}
|{{slot|Tungsten}}{{slot|Chlorine,6}}
|Used to craft [[colored torch|green torch]] and [[sparkler|green sparkler]].
|}

=== Natural compounds ===
Natural compounds are compounds which can be obtained naturally in ''Minecraft''.
{| class="wikitable" data-description="Chlorides"
!Icon
!Compound
! class="nowrap" |Chemical formula
!Natural source
!Method
!Notes
|-
|{{slot|Charcoal}}
|[[Charcoal]]
|{{slot|Carbon,7}}{{slot|Hydrogen,4}}{{slot|Oxygen}}
|[[Log]] or [[Wood]]
|[[Smelting]]
|The chemical formula C<sub>7</sub>H<sub>4</sub>O is sometimes used to describe the approximate composition of charcoal.
|-
|{{slot|Glow Ink Sac}} {{slot|Ink Sac}}
|[[Glow Ink Sac]], [[Ink Sac]]
|{{slot|Iron}}{{slot|Sulfur}}{{slot|Oxygen,4}}
|[[Glow Squid]], [[Squid]]
|Killing Glow Squid, Squid
|FeSO<sub>4</sub> is the chemical formula of iron(II) sulfate or ferrous sulfate, normally found complexed with water as a salt with the formula FeSO<sub>4</sub>·''x''H<sub>2</sub>O, and has been used in the manufacture of iron gall ink and other inks for centuries. In contrast, squid ink (and other cephalopod inks) is composed mainly of melanin and mucus, with an assortment of other compounds in a variety of concentrations dependent on the species.
|-
|{{slot|Sugar}}
|[[Sugar]]
|{{slot|Carbon,6}}{{slot|Hydrogen,12}}{{slot|Oxygen,6}}
|[[Sugar Cane]]s or [[Honey Bottle]]s
|Harvesting and [[crafting]]
|C<sub>6</sub>H<sub>12</sub>O<sub>6</sub> is the chemical formula of glucose and fructose, as well as a number of other simple sugars (common table sugar is instead sucrose, a complex sugar made of glucose and fructose with the chemical formula C<sub>12</sub>H<sub>22</sub>O<sub>11</sub>).
|-
|{{slot|Water (compound)|link=water}}
|{{text anchor|Water}}
|{{slot|Hydrogen,2}}{{slot|Oxygen}}
|[[Water]]
|Picking up in a [[bucket]] or [[glass bottle]] from a [[Cauldron]] or a water source block
|One of the easiest to obtain.
|}

=== Garbage ===
Garbage is considered a "compound", but the only way to produce it is to activate the [[Lab Table]] when its inputs are an invalid recipe. It has no uses.

== Usage ==
Certain compounds are used as ingredients in [[crafting]] or [[lab table]] experiments. Natural compounds have uses outside of chemistry, detailed in their respective articles.

=== Crafting ingredient ===
{{Crafting usage|description=0|Latex, Polyethylene, Hydrogen Peroxide, Luminol, Boron Trioxide, Aluminum Oxide}}

==== Chloride coloring ====
{{Crafting usage|Chloride,Cerium Chloride|match=end}}

=== Lab table ingredient ===
{| class="wikitable"
!Result
!Materials needed
|-
! rowspan="2" |{{slot|Bleach}}<br>[[Bleach]]
|{{slot|Water (compound)|link=Compound}}{{slot|Water (compound)|link=Compound}}{{slot|Water (compound)|link=Compound}}{{slot|Sodium Hypochlorite|link=Compound}}{{slot|Sodium Hypochlorite|link=Compound}}{{slot|Sodium Hypochlorite|link=Compound}}
|-
|<center>Water ×3, Sodium Hypochlorite ×3</center>
|-
! rowspan="2" |{{slot|Heat Block.gif}}<br>[[Heat Block]]
|{{slot}}{{slot|Iron|link=Element#Iron}}{{slot|Water (compound)|link=Compound}}{{slot|Charcoal}}{{slot|Salt|link=Compound}}{{slot}}
|-
|<center>[[Iron (element)|Iron]], Water, [[Charcoal]], Salt</center>
|-
! rowspan="2" |{{slot|Ice Bomb}}<br>[[Ice Bomb]]
|{{slot}}{{slot|Sodium Acetate|link=Compound}}{{slot|Sodium Acetate|link=Compound}}{{slot|Sodium Acetate|link=Compound}}{{slot|Sodium Acetate|link=Compound}}{{slot}}
|-
|<center>Sodium Acetate ×4</center>
|-
! rowspan="2" |{{slot|Super Fertilizer}}<br>[[Super Fertilizer]]
|{{slot}}{{slot}}{{slot|Ammonia|link=Compound}}{{slot|Phosphorus|link=Element#Phosphorus}}{{slot}}{{slot}}
|-
|<center>Ammonia, [[Phosphorus]]</center>
|}

== Sounds ==
Sounds are produced when a [[lab table]] creates garbage.
{{Sound table
|type=bedrock
|sound=Fizz.ogg
|source=block
|description=When a lab table creates garbage{{verify}}
|id=random.fizz
|volume=1.0
|pitch=0.5/0.7}}
{{Sound table
|sound=Ghast fireball4.ogg
|source=hostile
|description=When a lab table creates garbage{{verify}}
|id=mob.blaze.shoot
|volume=1.0
|pitch=0.8/1.0}}
{{Sound table
|sound=Explosion1.ogg
|sound2=Explosion2.ogg
|sound3=Explosion3.ogg
|sound4=Explosion4.ogg
|source=block
|description=When a lab table creates garbage
|id=random.explode
|volume=1.0
|pitch=0.4/0.6}}
{{Sound table
|sound=Fire.ogg
|source=sound
|description=When a lab table creates garbage
|id=lt.reaction.fire
|volume=2.0
|pitch=0.4/0.6}}
{{Sound table
|sound=Explosion1.ogg
|sound2=Explosion2.ogg
|sound3=Explosion3.ogg
|sound4=Explosion4.ogg
|source=weather
|description=When a lab table creates garbage
|id=ambient.weather.lightning.impact
|volume=1.0
|pitch=0.6/0.8
|foot=1}}

== Data values ==
=== ID ===
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Compound
|spritetype=item
|nameid=compound
|id=594
|form=item
|translationkey=item.compound.salt.name,item.compound.sodiumoxide.name,item.compound.sodiumhydroxide.name,item.compound.magnesiumnitrate.name,item.compound.ironsulfide.name,item.compound.lithiumhydride.name,item.compound.sodiumhydride.name,item.compound.calciumbromide.name,item.compound.magnesiumoxide.name,item.compound.sodiumacetate.name,item.compound.luminol.name,item.compound.charcoal.name,item.compound.sugar.name,item.compound.aluminumoxide.name,item.compound.borontrioxide.name,item.compound.soap.name,item.compound.polyethylene.name,item.compound.garbage.name,item.compound.magnesiumsalts.name,item.compound.sulfate.name,item.compound.bariumsulfate.name,item.compound.potassiumchloride.name,item.compound.mercuricchloride.name,item.compound.ceriumchloride.name,item.compound.tungstenchloride.name,item.compound.calciumchloride.name,item.compound.water.name,item.compound.glue.name,item.compound.hypochlorite.name,item.compound.crudeoil.name,item.compound.latex.name,item.compound.potassiumiodide.name,item.compound.sodiumfluoride.name,item.compound.benzene.name,item.compound.ink.name,item.compound.hydrogenperoxide.name,item.compound.ammonia.name,item.compound.sodiumhypochlorite.name
|foot=1}}

===Item data===
{{see also|Data values}}Compounds uses the following data values:{{/DV}}
== History ==

{{History|bedrock}}
{{History||1.4.0|snap=beta 1.2.20.1|[[File:Aluminum Oxide BE1.png|32px]] [[File:Ammonia BE1.png|32px]] [[File:Barium Sulfate BE1.png|32px]] [[File:Benzene BE1.png|32px]] [[File:Boron Trioxide BE1.png|32px]] [[File:Calcium Bromide BE1.png|32px]] [[File:Crude Oil BE1.png|32px]] [[File:Glue BE1.png|32px]] [[File:Hydrogen Peroxide BE1.png|32px]] [[File:Iron Sulfide BE1.png|32px]] [[File:Latex BE1.png|32px]] [[File:Lithium Hydride BE1.png|32px]] [[File:Luminol BE1.png|32px]] [[File:Lye BE1.png|32px]] [[File:Magnesium Nitrate BE1.png|32px]] [[File:Magnesium Oxide BE1.png|32px]] [[File:Polyethylene BE1.png|32px]] [[File:Potassium Iodide BE1.png|32px]] [[File:Salt BE1.png|32px]] [[File:Soap BE1.png|32px]] [[File:Sodium Acetate BE1.png|32px]] [[File:Sodium Fluoride.png|32px]] [[File:Sodium Hydride BE1.png|32px]] [[File:Sodium Hypochlorite BE1.png|32px]] [[File:Sodium Oxide BE1.png|32px]] [[File:Sulfate BE1.png|32px]] [[File:Calcium Chloride BE1.png|32px]] [[File:Cerium Chloride BE1.png|32px]] [[File:Mercuric Chloride BE1.png|32px]] [[File:Potassium Chloride BE1.png|32px]] [[File:Tungsten Chloride BE1.png|32px]] [[File:Charcoal JE3 BE3.png|32px]] [[File:Ink Sac JE1 BE1.png|32px]] [[File:Sugar JE1 BE1.png|32px]] [[File:Water (compound) BE1.png|32px]] [[File:Garbage BE1.png|32px]] Added compounds.}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Charcoal JE4 BE4.png|32px]][[File:Ink Sac JE2 BE2.png|32px]][[File:Sugar JE2 BE2.png|32px]] The textures of Charcoal, Ink Sacs and Sugar have been changed.}}
{{History||1.16|All compounds have been made unobtainable. It is unknown whether it is a glitch or intended. {{bug|MCPE-113776}}}}

{{History| |1.17.0|All compounds are obtainable once again.}}{{History|education}}
{{History||1.0.27|[[File:Aluminum Oxide BE1.png|32px]] [[File:Ammonia BE1.png|32px]] [[File:Barium Sulfate BE1.png|32px]] [[File:Benzene BE1.png|32px]] [[File:Boron Trioxide BE1.png|32px]] [[File:Calcium Bromide BE1.png|32px]] [[File:Crude Oil BE1.png|32px]] [[File:Glue BE1.png|32px]] [[File:Hydrogen Peroxide BE1.png|32px]] [[File:Iron Sulfide BE1.png|32px]] [[File:Latex BE1.png|32px]] [[File:Lithium Hydride BE1.png|32px]] [[File:Luminol BE1.png|32px]] [[File:Lye BE1.png|32px]] [[File:Magnesium Nitrate BE1.png|32px]] [[File:Magnesium Oxide BE1.png|32px]] [[File:Polyethylene BE1.png|32px]] [[File:Potassium Iodide BE1.png|32px]] [[File:Salt BE1.png|32px]] [[File:Soap BE1.png|32px]] [[File:Sodium Acetate BE1.png|32px]] [[File:Sodium Fluoride BE1.png|32px]] [[File:Sodium Hydride BE1.png|32px]] [[File:Sodium Hypochlorite BE1.png|32px]] [[File:Sodium Oxide BE1.png|32px]] [[File:Sulfate BE1.png|32px]] [[File:Calcium Chloride BE1.png|32px]] [[File:Cerium Chloride BE1.png|32px]] [[File:Mercuric Chloride BE1.png|32px]] [[File:Potassium Chloride BE1.png|32px]] [[File:Tungsten Chloride BE1.png|32px]] [[File:Charcoal JE3 BE3.png|32px]] [[File:Ink Sac JE1 BE1.png|32px]] [[File:Sugar JE1 BE1.png|32px]] [[File:Water (compound) BE1.png|32px]] [[File:Garbage BE1.png|32px]] Added compounds.}}
{{History||1.12.0|[[File:Charcoal JE4 BE4.png|32px]][[File:Ink Sac JE2 BE2.png|32px]][[File:Sugar JE2 BE2.png|32px]] The textures of Charcoal, Ink Sacs and Sugar have been changed.}}

{{History|foot}}

== Unused compound textures ==
In the chemistry resource pack folder, there are numerous [[History of textures/Unused textures#Unused compounds|compound textures which are not used]] in the game. Note: a <code>compound</code> item with a data value of <code>38</code> will have the <code>Blue Flask</code> texture and will be called <code>item.compound..name</code>. If you use an NBT Editor to get a compound item with no assigned data value (by deleting the data tag) and then transfer that item to another world / realm using structure blocks (by exporting to a <code>.mcstructure</code> file, then importing it on another world or realm) then it will be renamed to <code>Ivory Tusk</code>.  
<gallery widths="48" heights="48" perrow="30" class="center">
Flask EE1.png|Flask
Black Flask EE1.png|Black Flask
Blue Flask EE1.png|Blue Flask
Brown Beaker EE1.png|Brown Beaker
Brown Flask EE1.png|Brown Flask
Dark Gray Beaker EE1.png|Dark Gray Beaker
Dark Gray Flask EE1.png|Dark Gray  Flask
Dark Gray Jar EE1.png|Dark Gray Jar
Green Beaker EE1.png|Green Beaker
Green Flask EE1.png|Green Flask
Green Jar EE1.png|Green Jar
Indigo Beaker EE1.png|Indigo Beaker
Indigo Flask EE1.png|Indigo Flask
Indigo Jar EE1.png|Indigo Jar
Light Gray Beaker EE1.png|Light Gray Beaker
Light Gray Flask EE1.png|Light Gray Flask
Orange Beaker EE1.png|Orange Beaker
Orange Flask EE1.png|Orange Flask
Orange Jar EE1.png|Orange Jar
Purple Beaker EE1.png|Purple Beaker
Purple Flask EE1.png|Purple Flask
Purple Jar EE1.png|Purple Jar
Red Beaker EE1.png|Red Beaker
Red Flask EE1.png|Red Flask
Red Jar EE1.png|Red Jar
White Flask EE1.png|White Flask
Yellow Flask EE1.png|Yellow Flask
Bleach (compound).png|Bleach
</gallery>

== Gallery ==
<gallery>
Screen Shot 2021-08-19 at 12.22.50 PM.png|A compound creator in using 5 carbon and 8 hydrogen to create latex.
</gallery>

== See also ==

*[[Compound Creator]]
*[[Crafting]]
*[[Element Constructor]]
*[[Lab Table]]
*[[Brewing Stand]]
*[[Brewing]]
*[[Crafting Table]]

== References ==
{{reflist}}

{{Items}}
{{Education Edition}}

[[Category:Non-renewable resources]]
[[Category:Education Edition items]]

[[de:Verbindung]]
[[it:Composto]]
[[ja:化合物]]
[[pl:Związki chemiczne]]
[[pt:Composto]]
[[ru:Соединение]]
[[th:สารประกอบ]]
[[uk:Сполуки]]
[[zh:化合物]]</li></ul>
19w38aAdded predicates to data packs.