MerchantAPI - Create new merchants.

Discussion in 'Resources' started by Cybermaxke, Dec 31, 2012.

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

    UbuntuFreak

    Same thing here, I am not getting it to work for the 1.7.
    There have been major changes in the net.minecraft code I think
     
  2. Offline

    Wruczek

    Update plz.
     
    sohardhun15 and UbuntuFreak like this.
  3. Offline

    Cybermaxke

    Complete rewrite of the api and implementation, so you will have to rename some methods. This build supports also multiple customers that can use the merchant at the same time.

    Install like a normal plugin.
     
    Wruczek likes this.
  4. Offline

    benfah

  5. Offline

    Cybermaxke

    @benfah There error is not caused by my library, I don't see any trace of my library in the error stack.
     
  6. @benfah VillagerClickListener line 29 is null.
     
  7. Offline

    LaPiMoNsTeR

  8. Offline

    nverdier

    @LaPiMoNsTeR Yeah. Because
     
  9. Offline

    LaPiMoNsTeR

    And what can I do to fix this error ?
     
  10. Offline

    Cybermaxke

    @LaPiMoNsTeR I will look tommorow into the error, but when does it occurr?
     
  11. Offline

    LaPiMoNsTeR

  12. Offline

    Cybermaxke

  13. Offline

    LaPiMoNsTeR

    @Cybermaxke basic item ( TNT , food , etc .. ) and enchant items.
     
  14. Offline

    Cybermaxke

    Can you give me the code?
     
  15. Offline

    LaPiMoNsTeR

    I found the problem ! For make a trade where just need one item, i do this :
    Code:
    merchant.addOffer(api.newOffer(RESULT, ITEM1, new ItemStack(0));
    But i did not think i could use :
    Code:
    merchant.addOffer(api.newOffer(RESULT, ITEM1));
    I fix my error, thanks for your help. ^^
     
  16. Offline

    Cybermaxke

    @LaPiMoNsTeR Yes, that was what I wanted to see, I thought it would be something like that, but I should prevent this errors. :)
     
    LaPiMoNsTeR likes this.
  17. Offline

    Bammerbom

    - Can you add this to a maven repo?

    - Is it possible to edit an already existing villager?
     
  18. Offline

    Cybermaxke

    @Bammerbom
    I will try to setup a maven repo, and you cannot edit a existing villager, they would require a rewrite in order to make this possible, but you can just open the merchant when you right click on them.
     
Thread Status:
Not open for further replies.

Share This Page