User Tools

Site Tools


tutorial:inventory

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorial:inventory [2026/01/24 02:10] – Migrated Code to Mojmap 1.21.11 infinitychancestutorial:inventory [2026/04/05 18:03] (current) cassiancc
Line 1: Line 1:
 +~~REDIRECT>https://docs.fabricmc.net/develop/blocks/block-containers~~
 +
 ====== Storing items in a block as an Inventory ====== ====== Storing items in a block as an Inventory ======
 :!: This page has been updated for mojmap. Because of this change, the class known as "Inventory" in yarn mappings is now called "Container." See [[https://docs.fabricmc.net/develop/migrating-mappings/#whats-going-on-with-mappings|What's Going On With Mappings]] for more detail. :!: This page has been updated for mojmap. Because of this change, the class known as "Inventory" in yarn mappings is now called "Container." See [[https://docs.fabricmc.net/develop/migrating-mappings/#whats-going-on-with-mappings|What's Going On With Mappings]] for more detail.
Line 236: Line 238:
                 blockEntity.removeItem(0);                 blockEntity.removeItem(0);
             } else {             } else {
-                return InteractionResult.PASS;+                return InteractionResult.TRY_WITH_EMPTY_HAND;
             }             }
         }         }
tutorial/inventory.1769220606.txt.gz · Last modified: 2026/01/24 02:10 by infinitychances