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

ArmorStands' DisabledSlots incorrect flags implementation

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 15w50a, Minecraft 1.9, Minecraft 1.9.2, Minecraft 1.10.2, Minecraft 16w43a, Minecraft 1.11.2, Minecraft 1.12
    • Fix Version/s: Minecraft 15w51a
    • Labels:
      None
    • Confirmation Status:
      Confirmed

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                skylinerw [Mod] Skylinerw
              • Votes:
                9 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: