Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-94252

ArmorStands' DisabledSlots incorrect flags implementation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Minecraft 15w51a
    • Minecraft 15w50a, Minecraft 1.9, Minecraft 1.9.2, Minecraft 1.10.2, Minecraft 16w43a, Minecraft 1.11.2, Minecraft 1.12, Minecraft 1.14, Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 1, 20w07a
    • None
    • Confirmed
    • Commands
    • Low
    • Platform

      Current problems:

      • Cannot enable the offhand slot
      • Cannot disable the mainhand slot.
      • Can replace when placing is disabled.

      The current implementation is:

      1 << slot = disables all interaction
      1 << (slot + 8) = disables removing/replacing
      1 << (slot + 16) = disables placing, allows removing/replacing

      Slot values:
      boots slot: 1, pants slot: 2, chest slot: 3, helmet slot: 4
      offhand is always disabled, mainhand is always enabled.

      To reproduce:

      • /summon armor_stand
      • /entitydata @e[type=armor_stand] {DisabledSlots:255}, for instance (more example values below)

      Example values:
      Disabled all interaction, except boots: 11111101= 253
      Disabled all interaction, except pants: 11111011= 251
      Disabled all interaction, except chest: 11110111= 247
      Disabled all interaction, except helmet: 11101111= 239
      Disabled all interaction, all slots: 11111111 = 255
      Disabled removing/replacing, all slots: 11111111 00000000 = 65280
      Disabled placing, allow removing, all slots: 11111111 00000000 00000000 = 16711680

      What the implementation should be (see Searge's comment here):

      1 << slot = disables all interaction
      1 << (slot + 8) = disables removing
      1 << (slot + 16) = disables placing

      'Replacing' should theoretically not be possible, and the first flag should also disable placing and not just removing.

            Unassigned Unassigned
            skylinerw [Mod] Skylinerw
            Votes:
            18 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              CHK: