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

Bogged shear API

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • This server is running CraftBukkit version 4244-Spigot-0a642bd-13ece47 (MC: 1.21) (Implementing API version 1.21-R0.1-SNAPSHOT)
    • Yes

      A player can shear a bogged, causing it to drop several mushroom items and alter its appearance. Instead of having mushrooms attached to its model, these mushrooms will now be gone. There seems to be no API for controlling this appearance.

      My request is to have `setSheared(bool)` and `isSheared()` methods, that change the appareance of the bogged and return what the current appearance of the bogged is. When `setSheared(bool)` changes a bogged from not being sheared to being sheared, preferably no mushrooms should be dropped.

      It would (for my use case) be even better if boggeds and sheep could get some shared interface (e.g., `Shearable`) with both of these methods. My plugin contains inventories that allow players to alter the appearance of entities by clicking on items in these inventories. In this case the intent is to have an item that toggles the appearance. Currently changing and getting the appearance of boggeds is not possible via the API.

            Unassigned Unassigned
            stefvanschie Stef van Schie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: