respawn villager with special trades

Discussion in 'Plugin Development' started by miladm78, Dec 17, 2023.

Thread Status:
Not open for further replies.
  1. Offline

    miladm78

    Hello everyone
    in minecraft version 1.16.5 paper
    i want spawn villager and then set customs trade list

    ```
    Villager villager = (Villager) world.spawnEntity(respawn_location, EntityType.VILLAGER);villager.setAI(false);villager.setInvulnerable(true);villager.setProfession(Villager.Profession.ARMORER);villager.setCustomNameVisible(true);villager.setCustomName(" Jack ");villager.setVillagerExperience(1);

    ```

    please help me to how I can set a special trade list for my villager
     
  2. Offline

    Dogged

Thread Status:
Not open for further replies.

Share This Page