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

Add way to get/set Villager levels

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • This server is running CraftBukkit version git-Spigot-e4be9b0-5736cdc (MC: 1.14) (Implementing API version 1.14-R0.1-SNAPSHOT)
    • Yes

      At the present time, there isn’t a way to get or set the level of a Villager.

      • VillagerData: Information about the villager’s type, profession, and level.
        level: The current xp level of this villager's profession. Influences the trading options generated by the villager. If it is greater than their profession's maximum level, no new offers are generated. Increments when the villager fills his trading xp bar. Also used for badge rendering.

       

      Ideally, there should be getLevel() and setLevel() methods for Villagers.

      Thanks!

            Unassigned Unassigned
            Intelli Intelli
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: