Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Cushion: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Sync: updated from Minecraft
SyncBot (talk | contribs)
Sync: updated from Minecraft
Line 85: Line 85:


=== Natural generation ===
=== Natural generation ===
Cushions are only found naturally in [[Minecraft:abandoned camp]]s.They spawn within 1~2 blocks of a [[Minecraft:campfire]], assuming the camp generates with one.
Cushions are only found naturally in [[Minecraft:abandoned camp]]s. They spawn within 1~2 blocks of a [[Minecraft:campfire]], assuming the camp generates with one.


== Usage ==
== Usage ==
Line 94: Line 94:
They can be sat on by {{control|use|text=pressing the "use" control}} on them.
They can be sat on by {{control|use|text=pressing the "use" control}} on them.


Cushions cannot move, do not have collision, and can overlap with other objects, except for other cushions or [[Minecraft:chain]]s{{only|be|short=1}}. This means they will rest properly on top of surfaces that are less than one block in height, including [[Minecraft:snow layer]]s, [[Minecraft:wildflowers]], [[Minecraft:enchantment table]]s, [[Minecraft:slab]]s and [[Minecraft:stair]]s. Cushions placed on the lower step of stairs will be partly obscured by the upper step of the stairs.
Cushions cannot move, do not have collision, and can overlap with other objects, except for other cushions or [[Minecraft:chain]]s.{{only|be|short=1}} This means they will rest properly on top of surfaces that are less than one block in height, including [[Minecraft:snow layer]]s, [[Minecraft:wildflowers]], [[Minecraft:enchantment table]]s, [[Minecraft:slab]]s, and [[Minecraft:stair]]s. Cushions placed on the lower step of stairs will be partly obscured by the upper step of the stairs.


If a player sits on a cushion in a lit [[Minecraft:The Nether|Nether]] or [[Minecraft:The End|End]] portal, they can sit indefinitely without being teleported; however, if a player gets off the cushion, they will be able to go through the portal. Similarly, if a player were to sit on a cushion when a [[Minecraft:geyser]] is going off, they also cannot not be moved until they get off the cushion.
If a player sits on a cushion in a lit [[Minecraft:The Nether|Nether]] or [[Minecraft:The End|End]] portal, they can sit indefinitely without being teleported; however, if a player gets off the cushion, they will be able to go through the portal. Similarly, if a player were to sit on a cushion when a [[Minecraft:geyser]] is going off, they also cannot be moved until they get off the cushion.


=== Placement ===
=== Placement ===
{{IN|Java}}, the positioning of the cushion occurs in the following steps, after interacting with the item in a block:
{{IN|Java}}, the positioning of the cushion occurs in the following steps, after interacting with the item in a block:


:'''1.''' Test if the clicked face of the block is the top.
# Test if the clicked face of the block is the up.
::* For this, the block's [[Minecraft:interaction box]] is used. For blocks that have an interaction box with several elements (for example, stairs), we consider the top face of each element individually.
#* For this, the block's [[Minecraft:interaction box]] is used. For blocks that have an interaction box with several elements (for example, stairs), the top face of each element is individually considered.
::* Some blocks have an [[Minecraft:auxiliary interaction box]]. We cannot interact directly with this auxiliary box, but it is used to adjust the direction of the interaction.  
#* Some blocks have an [[Minecraft:auxiliary interaction box]]. The player cannot interact directly with this auxiliary box, but it is used to adjust the direction of the interaction.  
:::* Note that it is possible, for example, to place a selected cushion on the inner wall of a [[Minecraft:composter]]<ref>{{Bug|MC-309695}}</ref>. On the other hand, it is not possible to place it on top of the tips of [[Minecraft:hopper]]<ref>{{bug|MC-309783}}</ref>.
#** Note that it is possible, for example, to place a selected cushion on the inner wall of a [[Minecraft:composter]].<ref>{{Bug|MC-309695}}</ref> On the other hand, it is not possible to place it on top of the tips of [[Minecraft:hopper]].<ref>{{bug|MC-309783}}</ref>
:'''2.''' Select the position where the cushion will be placed.
#* If the interaction occurs within the interaction box (or auxiliary interaction box), instead of considering the direction of the interacted face, the direction is calculated based on the player's rotation.
::* The X and Z axes are defined by the interacting block, in such a way that the cushion is centered on the block's position.
#** Thus, when interacting while looking down within a [[Minecraft:rose bush]] or [[Minecraft:cobweb]], the clicked face is considered the up.
::* The Y-axis of the possible lower base of the cushion is the position where the click occurred when interacting with the block. For this, the interaction box is used, ignoring the auxiliary interaction box.
# Select the position where the cushion will be placed.
:'''3.''' Test if there is any part of a block directly below the cushion.
#* The X and Z axes are defined by the interacting block, in such a way that the cushion is centered on the block's position.
::* Just below the possible position of the cushion, create an imaginary platform with the same x and z lengths, but with a width of 1/4 of a pixel (1/64 of a block).
#* The Y-axis of the possible lower base of the cushion is the position where the click occurred when interacting with the block. For this, the interaction box is used, ignoring the auxiliary interaction box.
::* The search is for all blocks whose position (in integer codes) intersects this platform. Due to the cushion's centered position, only one or two blocks are intersected, but by summoning the cushion with commands, up to 8 can be tested.
#** When the interaction occurs within an interaction box, the position to consider is the initial point of the interaction (the player's eye).
:::* For each block found, it tests whether its interaction box intersects the base of the cushion. If at least one block intersects, that position is validated. Otherwise, the positioning fails.
# Test if there is any part of a block directly below the cushion.
::::* Note that the test is with the interaction box and not the [[Minecraft:collision box]].
#* Just below the possible position of the cushion, create an imaginary platform with the same x and z lengths, but with a width of 1/4 of a pixel (1/64 of a block).
:::* Note that the interacted-with block is not always included in this test. For example, when placing a cushion on top of an open [[Minecraft:shulker box]] facing upwards, when searching for blocks that the base can intersect, only consider the block above the shulker box and not the shulker box itself. Even though in this case the shulker box was interacted with and it will serve as a base for the cushion. Something similar will occur with the top of the [[Minecraft:lectern]]<ref>{{bug|MC-309659}}</ref>.
#* The search is for all blocks whose position (in integer codes) intersects this platform. Due to the cushion's centered position, only one or two blocks are intersected, but by summoning the cushion with commands, up to 8 can be tested.
::::* On the other hand, it is still possible for the cushion to find support that is not the interacted block (for example, a [[Minecraft:resin clump]] above the shulker box).
#** For each block found, it tests whether its interaction box intersects the base of the cushion. If at least one block intersects, that position is validated. Otherwise, the positioning fails.
:'''4.''' Test if a cushion already exists.
#*** Note that the test is with the interaction box and not the [[Minecraft:collision box]].
::* Test whether the position in which you are trying to place the cushion, considering the hitbox the cushion will have if placed, intersects with the hitbox of an existing cushion.
#** Note that the interacted-with block is not always included in this test. For example, when placing a cushion on top of an open [[Minecraft:shulker box]] facing upward, when searching for blocks that the base can intersect, only the block above the shulker box is considered, not the shulker box itself. This is despite the fact that in this case, the shulker box will serve as a base for the cushion. Something similar will occur with the top of the [[Minecraft:lectern]].<ref>{{bug|MC-309659}}</ref>
#*** On the other hand, it is still possible for the cushion to find support that is not the interacted block (for example, a [[Minecraft:resin clump]] above the shulker box).
# Test if a cushion already exists.
#* Test whether the position in which it is trying to place the cushion, considering the hitbox the cushion will have if placed, intersects with the hitbox of an existing cushion.


If all 4 steps are successfully completed, the cushion is placed.
If all 4 steps are successfully completed, the cushion is placed.
Line 174: Line 177:
|volume=1.0
|volume=1.0
|pitch=1.0}}
|pitch=1.0}}
}}
{{Edition|BE}}:
{{SoundTable
| type = bedrock
| {{SoundLine
| sound = Cushion sit1.ogg
| sound2 = Cushion sit2.ogg
| sound3 = Cushion sit3.ogg
| subtitle = Sits on Cushion
| source = neutral
| description = When a player sits on a cushion
| id = entity.cushion.sit
| translationkey = subtitles.entity.cushion.sit
| volume = 1.0
| pitch = 1.0
}}
| {{SoundLine
| rowspan = 2
| sound = Cushion get up1.ogg
| sound2 = Cushion get up2.ogg
| sound3 = Cushion get up3.ogg
| subtitle = Gets up from Cushion
| source = neutral
| description = When a player gets up from a cushion
| id = entity.cushion.get_up
| translationkey = subtitles.entity.cushion.get_up
| volume = 1.0
| pitch = 1.0
}}
| {{SoundLine
| rowspan = 2
| sound = Cushion place1.ogg
| sound2 = Cushion place2.ogg
| sound3 = Cushion place3.ogg
| sound4 = Cushion place4.ogg
| sound5 = Cushion place5.ogg
| sound6 = Cushion place6.ogg
| subtitle = Cushion placed
| source = block
| description = When a cushion is placed
| id = entity.cushion.place
| translationkey = subtitles.entity.cushion.place
| volume = 1.0
| pitch = 1.0
}}
| {{SoundLine
| rowspan = 2
| sound = Cushion break1.ogg
| sound2 = Cushion break2.ogg
| sound3 = Cushion break3.ogg
| subtitle = Cushion breaks
| source = block
| description = When a cushion breaks
| id = entity.cushion.break
| translationkey = subtitles.entity.cushion.break
| volume = 1.0
| pitch = 1.0
}}
}}
}}



Revision as of 11:05, 11 July 2026

Template:WIP Template:In development Template:Infobox item entity A cushion is a placeable Minecraft:entity that can be sat on. Cushions can be placed on top of virtually every Minecraft:block in the game excluding fluids and a few Minecraft:invisible blocks, and are destroyed when their supporting block is removed after Template:Convert.

Obtaining

Breaking

Cushions are Minecraft:entities, meaning they cannot be Minecraft:mined as with a typical block. Instead, cushions immediately break when attacked, including with Minecraft:projectiles, by non-Minecraft:player entities, or even by players in Minecraft:Adventure mode, even if the damage received is 0. A cushion also breaks when a Minecraft:piston attempts to move it. Cushions always drop themselves when broken.

Like Minecraft:paintings and Minecraft:item frames, cushions also break if a test to check if they have a support block fails. This test is performed every Template:Convert.

Crafting

Template:Crafting Template:Crafting

Natural generation

Cushions are only found naturally in Minecraft:abandoned camps. They spawn within 1~2 blocks of a Minecraft:campfire, assuming the camp generates with one.

Usage

Cushions can be placed on any flat surface, and will align horizontally to the grid unless teleported, but vertically sit on top of the supporting surface. They will break if their supporting surface is removed or if they are pushed by a piston. Since they are entities with a finite amount of health, they will also break after a few seconds if placed in Minecraft:lava. See Template:Slink for more details.

They can be sat on by Template:Control on them.

Cushions cannot move, do not have collision, and can overlap with other objects, except for other cushions or Minecraft:chains.Template:Only This means they will rest properly on top of surfaces that are less than one block in height, including Minecraft:snow layers, Minecraft:wildflowers, Minecraft:enchantment tables, Minecraft:slabs, and Minecraft:stairs. Cushions placed on the lower step of stairs will be partly obscured by the upper step of the stairs.

If a player sits on a cushion in a lit Nether or End portal, they can sit indefinitely without being teleported; however, if a player gets off the cushion, they will be able to go through the portal. Similarly, if a player were to sit on a cushion when a Minecraft:geyser is going off, they also cannot be moved until they get off the cushion.

Placement

Template:IN, the positioning of the cushion occurs in the following steps, after interacting with the item in a block:

  1. Test if the clicked face of the block is the up.
    • For this, the block's Minecraft:interaction box is used. For blocks that have an interaction box with several elements (for example, stairs), the top face of each element is individually considered.
    • Some blocks have an Minecraft:auxiliary interaction box. The player cannot interact directly with this auxiliary box, but it is used to adjust the direction of the interaction.
    • If the interaction occurs within the interaction box (or auxiliary interaction box), instead of considering the direction of the interacted face, the direction is calculated based on the player's rotation.
  2. Select the position where the cushion will be placed.
    • The X and Z axes are defined by the interacting block, in such a way that the cushion is centered on the block's position.
    • The Y-axis of the possible lower base of the cushion is the position where the click occurred when interacting with the block. For this, the interaction box is used, ignoring the auxiliary interaction box.
      • When the interaction occurs within an interaction box, the position to consider is the initial point of the interaction (the player's eye).
  3. Test if there is any part of a block directly below the cushion.
    • Just below the possible position of the cushion, create an imaginary platform with the same x and z lengths, but with a width of 1/4 of a pixel (1/64 of a block).
    • The search is for all blocks whose position (in integer codes) intersects this platform. Due to the cushion's centered position, only one or two blocks are intersected, but by summoning the cushion with commands, up to 8 can be tested.
      • For each block found, it tests whether its interaction box intersects the base of the cushion. If at least one block intersects, that position is validated. Otherwise, the positioning fails.
      • Note that the interacted-with block is not always included in this test. For example, when placing a cushion on top of an open Minecraft:shulker box facing upward, when searching for blocks that the base can intersect, only the block above the shulker box is considered, not the shulker box itself. This is despite the fact that in this case, the shulker box will serve as a base for the cushion. Something similar will occur with the top of the Minecraft:lectern.<ref>Template:Bug</ref>
        • On the other hand, it is still possible for the cushion to find support that is not the interacted block (for example, a Minecraft:resin clump above the shulker box).
  4. Test if a cushion already exists.
    • Test whether the position in which it is trying to place the cushion, considering the hitbox the cushion will have if placed, intersects with the hitbox of an existing cushion.

If all 4 steps are successfully completed, the cushion is placed.

Sounds

Template:Edition: Template:SoundTable

Template:Edition: Template:SoundTable

Data values

ID

Template:JE: Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table

Template:ID table

Template:BE: Template:More info

Entity data

Template:JE: Template:Main

<section begin="entity data" />

<section end="entity data" />

Template:BE: Template:More info

History

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

Issues

Template:Issue list

Gallery

References

Template:Reflist

Navigation

Template:Navbox new content Template:Navbox dyed material Template:Navbox items Template:Navbox entities

Minecraft:de:Kissen Minecraft:es:Cojín Minecraft:fr:Coussin Minecraft:pt:Almofada Minecraft:ru:Подушка Minecraft:zh:坐垫