VOOZH about

URL: https://minecraft.wiki/w/Interactable_blocks

⇱ Interactable blocks – Minecraft Wiki


Interactable blocks

From Minecraft Wiki
Jump to navigation Jump to search
πŸ‘ Image
Not to be confused with Workstation.
πŸ‘ Image
This is an index of related pages that share a common conceptual attribute. Unlike disambiguation pages, it can be linked to internally if the article text is relevant to all items in the index.
However, if an internal link incorrectly led you here, you may wish to change the link to point directly to the intended article.

Interactable blocks are blocks with functionalities accessed with pressing use while looking at it.

Mechanics of use on block

[edit | edit source]

When a player is pressing use and is looking at an interaction box of a block within its interaction range, and there are no mob hitboxes in between, then they attempt to interact with the block.

There are three types of interaction. The first two are defined by the block (although the item in hand can influence the first) and the last is defined by the item (although the interacted block can influence it). In order of attempted interaction:

  1. Use item on block (focused on the block)
  2. Use block without item
  3. Use item on block (focused on the item)

If the player sneaking and has an item in hand, the first two uses of the blocks are ignored and the attempt directly goes to the last one. Otherwise, the player attempts use one; if successful, the interaction ends. Otherwise, depending on the result of the use one, they may have to perform use two or skip straight to use three. If they attempt use two, and fail, they will attempt use three, otherwise if successful, the interaction ends.

Only some blocks have a specific effect for use with an item (1) or use without items (2), and only some items have use on blocks (3). If a block does not have a specific interaction for using an item on it (1), using an item on it will simply attempt to use the block without an item (2). For (2) and (3), if a block or item does not have a specific use, attempting to use it will fail.

The swing animation is only applied when there is some success (in any of the use).

Using a block without an item does not necessarily mean the player has no item in hand; instead it simply means using the block without considering the item. Similarly, it is possible to use an item on a block even when the hand is empty.[note 1]

In Java Edition, when the first or third attempt is successful, the advancement trigger minecraft:item_used_on_block is activated, and if the second case is a success, trigger minecraft:default_block_use is activated. Subsequently, in any successful case, the minecraft:any_block_use trigger is activated.

Interactable blocks without items

[edit | edit source]

Blocks with GUI

[edit | edit source]

Blocks with GUI, show a menu that you can use to interact with it. These Interactions include crafting, smelting, storing, brewing, smithing, enchanting, and other functions.

Chests only open if there is no redstone conductor block above them or a cat sitting on top of them[note 2], in the case of a double chest, the same condition is necessary for a connected chest. Shulker boxes only open if their opening (0.5 blocks towards the top) does not have any collision with the collision box of another block. Ender chests only open if there is no redstone conductor block above them.

These, and only these, blocks can be integrated in spectator mode, except for the blocked chests and ender chests.

Open a barrel, any chest (incluid ender chest), or a shulker box also anger nearby piglins. In Java Edition, interacting with these blocks also increases the associated status, exect the crafting table and the enchanting table.

Blocks whose GUI depends on the block entity

Blocks whose GUI depends on the player

Other

Other

[edit | edit source]

Interacting blocks without item that don't open a menu. Blocks like signs, command blocks, and structure blocks set a new screen, but these are not considered menus. Unlike menus, they are opened by the local player and not the server player​[more information needed].

Interactable blocks with item

[edit | edit source]

Blocks that can be interacted with while holding an item, and the behavior is defined by the block.

Some blocks use a certain item, it doesn't create a specific block behavior, but rather blocks or allows another interaction. For example, using the plant/fungi in a pot already prevents the plant/fungi from being removed from the pot, or uses a block in a redstone ore, could try placing it beyond the usual interaction (using other items, like a bucket of water, doesn't attempt use 3).

Items that can be used in blocks

[edit | edit source]
This section needs expansion.
 
You can help by expanding it.
Instructions: Probably another article should be created for this, and linked here with {{main}}. In a way, it's still within the scope of the article because they are interactable blocks, but in this case almost all blocks fit (except for blocks without an interaction box and without liquid), as they can be interacted with in the positioning of blocks (either to choose or determine the state of the block positioned next to it, or to be replaced) or picked up by bucket.

An item that can be interacted with blocks, and whose behavior is determined by the item.

Notes

[edit | edit source]
  1. ↑ When there is no item in hand, the item considered is air; in Java Edition this can have an effect if minicraft:air is in certain item tag.
  2. ↑ A cat is considered to be on top of a chest if any part of there hitbox is inside a 1Γ—1Γ—1 box above the chest.
  3. ↑ Try binding player leashed mobs
  4. ↑ Technically, the light is interacting without items; however, its interaction box is empty when not holding a light, making interaction impossible.
  5. ↑ When interacting with a moving piston, if there is no block entity in the position, it is removed. However, its interaction box is always empty, and it is expected that there will always be a block entity in the position. This interaction is probably only for bug fixes and not for gameplayer functionality.

Navigation

[edit | edit source]
Retrieved from "https://minecraft.wiki/w/Interactable_blocks?oldid=3509262"

Navigation menu