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

Minecraft:Interactable blocks: Difference between revisions

From SAS Gaming Wiki
imported>Aloi4
 
SyncBot (talk | contribs)
Remove broken links to missing pages
Line 6: Line 6:
== Mechanics of use on block ==
== Mechanics of use on block ==


When a player is pressing {{control|use}} and is looking at an [[Minecraft:interaction box]] of a block within its [[Minecraft:interaction range]], and there are no mob hitboxes in between, then they attempt to interact with the block.
When a player is pressing {{control|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:
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:
Line 20: Line 20:
The swing animation is only applied when there is some success (in any of the use).
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|When there is no item in hand, the item considered is [[Minecraft:air]]; {{in|je}} this can have an effect if {{cd|minicraft:air}} is in certain [[Minecraft:Item_tag_(Java_Edition)|item tag]].}}
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|When there is no item in hand, the item considered is [[Minecraft:air]]; {{in|je}} this can have an effect if {{cd|minicraft:air}} is in certain item tag.}}


{{IN|Java}}, when the first or third attempt is successful, the advancement trigger [[Minecraft:Advancement_definition#minecraft:item_used_on_block|{{cd|minecraft:item_used_on_block}}]] is activated, and if the second case is a success, trigger [[Minecraft:Advancement_definition#minecraft:default_block_use|{{cd|minecraft:default_block_use}}]] is activated. Subsequently, in any successful case, the [[Minecraft:Advancement_definition#minecraft:any_block_use|{{cd|minecraft:any_block_use}}]] trigger is activated.
{{IN|Java}}, when the first or third attempt is successful, the advancement trigger {{cd|minecraft:item_used_on_block}} is activated, and if the second case is a success, trigger {{cd|minecraft:default_block_use}} is activated. Subsequently, in any successful case, the {{cd|minecraft:any_block_use}} trigger is activated.


== Interactable blocks without items ==
== Interactable blocks without items ==
Line 28: Line 28:
=== Blocks with GUI ===
=== Blocks with GUI ===


[[Minecraft::Category:Blocks with GUI|Blocks with GUI]], show a menu that you can use to interact with it. These Interactions include [[Minecraft:crafting]], [[Minecraft:smelting]], [[Minecraft:Inventory#External inventories|storing]], [[Minecraft:brewing]], [[Minecraft:smithing]], [[Minecraft:enchanting]], and other functions.  
Blocks with GUI, show a menu that you can use to interact with it. These Interactions include [[Minecraft:crafting]], smelting, [[Minecraft:Inventory#External inventories|storing]], [[Minecraft:brewing]], smithing, enchanting, and other functions.  


Chests only open if there is no [[Minecraft:redstone conductor]] block above them or a cat sitting on top of them{{note|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.}}, 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.
Chests only open if there is no redstone conductor block above them or a cat sitting on top of them{{note|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.}}, 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 [[Minecraft:spectator mode]], except for the blocked chests and ender chests.
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 [[Minecraft:piglin]]s. {{IN|JE}}, interacting with these blocks also increases the associated [[Minecraft:status]], exect the crafting table and the enchanting table.
Open a barrel, any chest (incluid ender chest), or a shulker box also anger nearby [[Minecraft:piglin]]s. {{IN|JE}}, interacting with these blocks also increases the associated status, exect the crafting table and the enchanting table.


'''Blocks whose GUI depends on the [[Minecraft:block entity]]'''
'''Blocks whose GUI depends on the [[Minecraft:block entity]]'''
Line 95: Line 95:
*{{BlockLink|Jukebox}}
*{{BlockLink|Jukebox}}
*{{BlockLink|Lever}}
*{{BlockLink|Lever}}
*{{BlockLink|Light|link=Light (block)}}{{note|Technically, the light is interacting without items; however, its [[Minecraft:interaction box]] is empty when not holding a light, making interaction impossible.}}
*{{BlockLink|Light|link=Light (block)}}{{note|Technically, the light is interacting without items; however, its interaction box is empty when not holding a light, making interaction impossible.}}
*{{BlockLink|Note Block}}
*{{BlockLink|Note Block}}
*{{BlockLink|Redstone Wire}}
*{{BlockLink|Redstone Wire}}
Line 107: Line 107:
*{{BlockLink|Test Block}}
*{{BlockLink|Test Block}}
*{{BlockLink|Test Instance Block}}
*{{BlockLink|Test Instance Block}}
*{{BlockLink|Wooden Trapdoors|text=‌}}{{BlockLink|Copper Trapdoors|text=‌}}[[Minecraft:Trapdoors]] (except iron)
*{{BlockLink|Wooden Trapdoors|text=‌}}{{BlockLink|Copper Trapdoors|text=‌}}Trapdoors (except iron)


*{{BlockLink|Moving Piston}} (practically never{{Note|When interacting with a moving piston, if there is no [[Minecraft:block entity]] in the position, it is removed. However, its [[Minecraft: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.}})
*{{BlockLink|Moving Piston}} (practically never{{Note|When interacting with a moving piston, if there is no [[Minecraft: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.}})


== Interactable blocks with item ==  
== Interactable blocks with item ==  
Line 158: Line 158:
== Navigation ==
== Navigation ==
{{Navbox blocks|Utility}}__DISAMBIG__
{{Navbox blocks|Utility}}__DISAMBIG__
[[Minecraft:ko:상호작용할 수 있는 블록]]
ko:상호작용할 수 있는 블록
[[Minecraft:pt:Blocos interativos]]
pt:Blocos interativos

Revision as of 15:52, 9 April 2026

Template:Distinguish Template:Set index

Interactable blocks are blocks with functionalities accessed with pressing Template:Control while looking at it.

Mechanics of use on block

When a player is pressing Template:Control 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 Template:Ctrl 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.Template:Note

Template:IN, when the first or third attempt is successful, the advancement trigger Template:Cd is activated, and if the second case is a success, trigger Template:Cd is activated. Subsequently, in any successful case, the Template:Cd trigger is activated.

Interactable blocks without items

Blocks with GUI

Blocks with GUI, show a menu that you can use to interact with it. These Interactions include Minecraft:crafting, smelting, storing, Minecraft: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 themTemplate:Note, 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 Minecraft:piglins. Template:IN, interacting with these blocks also increases the associated status, exect the crafting table and the enchanting table.

Blocks whose GUI depends on the Minecraft:block entity

Blocks whose GUI depends on the player

Other

Other

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 playerTemplate:More info.

Interactable blocks with item

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

Template:Expand section

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

Notes

Template:Notelist

Navigation

Template:Navbox blocks__DISAMBIG__ ko:상호작용할 수 있는 블록 pt:Blocos interativos