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

102

Inventory Locking

8 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 2
    Registered User commented
    Comment actions Permalink

    How about the syntax will be:

    /replaceitem entity @p slot.mainhand diamond_sword 0 lock

  • 0
    Registered User commented
    Comment actions Permalink

    Could work but then (as far as I know) you wouldn't be able to have empty slots.

  • 1
    Registered User commented
    Comment actions Permalink

    It would also be useful if hoppers / dropped could not then put into / take out of these slots.

  • 0
    Registered User commented
    Comment actions Permalink

    This is something I have wanted to request for some time now. It definitely lags the game when setting up locked inventory slots using the current set-up, and on bedrock it prevents players from being able to put stuff in an anvil cause it just despawns. This is truly an essential command for maps that want to limit inventories or simply set up an inventory upgrade purchase in a custom store.

  • 1
    Registered User commented
    Comment actions Permalink

    Xela S

    No, I think /inventorylock makes much more sense.

  • 0
    Registered User commented
    Comment actions Permalink

    This is possible it's part of /replaceitem

  • 1
    Registered User commented
    Comment actions Permalink

    Maybe this could instead be some NBT that you put on an item so it works on anything that puts an item in a slot, e.g.

    /give @a minecraft:iron_sword{Locked:1b}
  • 0
    Registered User commented
    Comment actions Permalink

    a fink its god wen its a data component thats easyer to use wen drop a item by command or other things