[SPIGOT-4834] Add way to get/set Villager levels Created: 01/May/19  Updated: 05/May/19  Resolved: 05/May/19

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Intelli Assignee: Unassigned
Resolution: Fixed Votes: 3
Labels: 1.14

Attachments: File VillagerSpawnExample.jar     Zip Archive VillagerSpawnExample.zip    
Issue Links:
Relates
relates to SPIGOT-4766 Setting Villager profession doesn't p... Resolved
Version: This server is running CraftBukkit version git-Spigot-e4be9b0-5736cdc (MC: 1.14) (Implementing API version 1.14-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

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!


Generated at Sat Dec 13 15:22:11 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.