Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7298

Debug stick can modify only the default attribute when not in creative, even with minecraft.debugstick.always

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • CraftBukkit version 3647-Spigot-19641c7-39462a8 (MC: 1.19.3) (Implementing API version 1.19.3-R0.1-SNAPSHOT)
    • Yes

      Expected behavior

      left-clicking with a debug stick should cycle through the available attributes.
      For example: on pistons, it defaults to "extended": true/false, but left clicking allows you to instead modify the "facing" value.

      Observed/Actual behavior

      right-clicking still cycles the selected attribute, but left-clicking does nothing. no toast about the selected attribute, and right clicking still cycles the "extended" state.
      If you switch to creative, then change which attribute you're modifying, then it cycles that one, even if you switch back to survival.

      This does not seem to be a new issue, as this person posted about it 2 years ago, and their fix was to just use worldedit instead:
      https://www.reddit.com/r/admincraft/comments/m3yseb/debug_stick_left_click_isnt_working/
      (in their attached video, you can see that when they're in survival mode, left-clicking only breaks the glass pane instead of selecting the next direction they can toggle)
      Though they were using purpur, but that code still comes all the way back to craftbukkit.

      Steps/models to reproduce

      • give player the minecraft.debugstick and minecraft.debugstick.always permission
      • give the player a debug stick
      • set the player into survival
      • player left-clicks on any block with multiple attributes that can be modified
      • player is still only able to modify the first attribute with right-click
      • set player into creative
      • left click now correctly chooses the attribute to modify

      Plugin and Datapack List

      Plugins:

      • none (tested on a fresh spigot server to be sure)

      Datapacks:

      • vanilla (built-in)
      • file/bukkit (world)

            Doc Doc
            ZacTheHac Z Muerle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: