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

2249

/see inventory [player name]

under review

108 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 76
    Registered User commented
    Comment actions Permalink

    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.

  • 64
    Registered User commented
    Comment actions Permalink

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

     

  • 28
    Registered User commented
    Comment actions Permalink

    A command like this already exists?

    Use /data get entity @p Inventory

  • 17
    Registered User commented
    Comment actions Permalink

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

     

  • 7
    Registered User commented
    Comment actions Permalink

    @MukiTanuki that only works on pc

  • 7
    Registered User commented
    Comment actions Permalink

    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.

  • 6
    Registered User commented
    Comment actions Permalink

    /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

  • 5
    Registered User commented
    Comment actions Permalink

    maybe /invsee <playername> could work

  • 4
    Registered User commented
    Comment actions Permalink

    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.

  • 3
    Registered User commented
    Comment actions Permalink

    I think there should be a way to copy another player's inventory

  • 2
    Registered User commented
    Comment actions Permalink

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

  • 2
    Registered User commented
    Comment actions Permalink

    i honestly think looking into there inventorys would help on servers (to find hackers, cheaters, scamers, etc. but being able to TAKE or REMOVE an item is wrong, your friend could just d the command and take all your op stuff, but then again /clear exists so i guess it wouldnt matter, so i guess add it, either way it doesnt matter.

  • 2
    Registered User commented
    Comment actions Permalink

    what to see this Xbox One please.

     

     

  • 2
    Registered User commented
    Comment actions Permalink

    This would be very good for server admins who want to take and give items to users quicker and easier. Like it.

  • 2
    Registered User commented
    Comment actions Permalink

    I think it should only be available for owner, or player with certain ranks to avoid trolling and stuff

  • 2
    Registered User commented
    Comment actions Permalink

    It should be on all versions (but first is bedrock)

  • 2
    Registered User commented
    Comment actions Permalink

    This could be added to the /spactate command like:

    /spactate entity <target> <player>
        like it works yet

    /spactate block <x y z> <player>
        opens the inventory of a chest, should also be possible if you aren't in spcator mode to change the items.

    /spactate inventory <target> <player>
        opens the inventory of the target entity, like player or villager

    /spactate enderchest <target> <player>
        opens the enderchest of the target player

     

    I know that it is also possible to see this things with /data,  but this would add a easier way to see the inventory.

  • 2
    Registered User commented
    Comment actions Permalink

    Only admins should have the ability to use it 

  • 2
    Registered User commented
    Comment actions Permalink

    Well, if this command dosen't pitch in, you can still do /clear (player) (item) 0 0 to test if they have a block you want to detect.

  • 2
    Registered User commented
    Comment actions Permalink

    This should also automatically include seeing their enderchest. 

  • 2
    Registered User commented
    Comment actions Permalink

    Maybe a similar command: /playerinv [target, player type] [see/edit/clear] [variant: e.g. ender_chest/inventory] [notify player= true/false] obviously this command only accessible by administrators on a server also some cute and funny message when you try to use the command: (/playerinv @s see inventory [true/false]) something like, “Just press <assigned inventory key>, silly!”,(also please a better way to edit loot tables, maybe a ui when you edit a mobs loot table, it opens a 27 slot ui above the players inventory and hotbar, from there you can take items out, edit the drop rates by shift clicking them, which opens a slider for the percent, and you may edit the amount of that item that drops, by just adding more to the ui menu, and im pretty sure you get it by now)

  • 1
    Registered User commented
    Comment actions Permalink

    that sounds prettty cool

     

  • 1
    Registered User commented
    Comment actions Permalink

    that sounds prettty cool

     

  • 1
    Registered User commented
    Comment actions Permalink

    /inventory could be better to do more function for a player/s inventory/ies & it could give the access to replace /clear
    For Examble: /inventory clear @p [item] [count]

    & still can check the items in player's/s' inventroy/ies by /inventory check [Entity] (Can aslo give the access to check Entities that have invntory)
    It could also replace /replace item with:

    /inventory edit [slot] [item]

  • 1
    Registered User commented
    Comment actions Permalink

    I love this idea for Java Edition especially you can give enchanted items to players without one big long command.

  • 1
    Registered User commented
    Comment actions Permalink

    Great for seevers

  • 1
    Registered User commented
    Comment actions Permalink

    this wouild be uesfull. I would also like it if u were able to take stuff from their inventory

  • 1
    Registered User commented
    Comment actions Permalink

    It would be useful for when you tell people to empty their inventories when role playing (like if you catch them and throw them in a dungeon or you're a guard searching a player at the gate) so you can see if they are smuggling things in. There should also be a way of hiding items by taking them 'off' the inventory like when you are moving them from space to space.

    Great Idea!

  • 1
    Registered User commented
    Comment actions Permalink

    /seeinv you can see armor, inv, health. you can move item around, drop them from you, and put them in your own inv

  • 1
    Registered User commented
    Comment actions Permalink

    I love this idea it would be really helpful as a mapmaker such as myself so if I play with them I can see if their hacking/cheating.