We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.


Please sign in to leave a comment.

  • Avatar
    UtterMilk16243 commented

    /inventory [playername]? I've thought about that for a long time


  • Avatar
    MukiTanuki commented

    A command like this already exists?

    Use /data get entity @p Inventory

  • Avatar
    PoolloverNathan commented

    Command format:

    • /see <target:target> inv // Shows the player's inventory - Original
    • /see <target:target> am // Shows the player's armor, offhand, and armor - I added
    • /see <target:target> ec // Shows the player's Ender Chest - I added
    • /see <target:target> stt // Shows the player's Health, Hunger, Armor Level, and Air Level - A Grass Block appears next to the Air level if the player is on land, and a Water Block if the player is in the water. (Lava block if lava)

    Interface permissions:

    • Read
    • Add Items
    • Remove items added in this instance

    Command permissions (Bedrock):

    • Open Containers (Required)

    Command permissions (Win7, Mac, and Linux):

               minecraft pc does not have "permissions" so everyone can do this

    The UI disappears when the player dies.

  • Avatar
    PoolloverNathan commented

    @MukiTanuki that only works on pc

  • Avatar
    TangentBeetle83 commented

    this should go in to bedrock also be able to see echest


  • Avatar
    tim123456789090 commented

    I agree when its my world then I want to have control over player inventorys and enderchests so they cant just take stuff from me because I cant even acces it anymore...why arent there private chests...its like the first thing that should have gone in this game since its multyplayer.

  • Avatar
    OrlaDog commented

    /replaceitem entity [entity] inventory.0

      could be replaced with

    /inventory replace entity [entity] inventory.0

      and this could be

    /inventory open canmodify entity [entity] inventory

    /inventory open nomodify entity [entity] inventory

    /inventory open giveonly entity [entity] inventory

    /inventory open takeonly entity [entity] inventory

      It would also work with blocks and non-player entities

  • Avatar
    Joshua Gerrity commented

    As MukiTanuki said, you can get any player's entire inventory using:

    /data get entity @p Inventory

    To get the name of an item in a player's inventory, you can use the index of the inventory (starting from zero), followed by a dot operator and the name of the NBT property (what I mean by NBT property will make sense if you use the command I gave above to look at your inventory), like this:

    /data get entity @p Inventory[0].id

    (Where Inventory is an NBT property, 0 is the first item in the inventory array, and id is an NBT property within the item object in the inventory array)

    If you want to find if a player has an item, you can use the /execute command and test for player NBT:

    /execute if entity @p[nbt = {Inventory: [{id: "minecraft:iron_sword"}]}] run say Hi

    (Says hi only if the player has the selected item somewhere in their inventory)

    To give a player an item, you can use the /give command. To remove an item from a player, you can use the /clear command.

    /give @p minecraft:stone_sword 1

    /clear @p minecraft:stone_sword 1

    @PoolloverNathan If /data only works on the Java Edition (I don't know, I don't use PE or Bedrock), really this should be a request to bring /data to the other versions in my opinion, rather than adding a new command.

  • Avatar
    Vicente Ybañez commented

    Q bien me encantó el comando


  • Avatar
    DjSweetsauce529 commented

    This sounds super useful! If this happens then its gona be so easy to play minigames/templates with my friends!


  • Avatar
    LDMGamingYT commented

    maybe /invsee <playername> could work

  • Avatar
    RoomierUrchin4 commented

    I want this in Minecraft so I could see my friends and Stuff

Powered by Zendesk