ModsJava
Merchant/Villager standalone Inventory API
Java mod listed for Minecraft 1.11. Downloads from the MC Java Mods app on Android.
⬇ Download on Spigot Merchant-Villager-standalone-Inventory-API
Hey Guys The Owner here,
This API adds a Villager like Inventory Type that can be Accessed and Displayed in any Method and Event, there's no need for a Custom or modified Villager anymore. This API got tested on Spigot 1.11.2 and should work on any 1.11 Version. Tests and modifications need to be done for Versions below that and will only happen on Request. If you like our work feel free to buy us a coffe the only thing that can still keep us awake 0.0:
Instructions:
To work with the API in your Plugin you have to import the Jar File into your Java Project and put it also inside your Plugin Folder on your Server.
The added Inventory Type is called Merchant and can be created easily like this.:
Merchant testMerchant = new Merchant();
You HAVE to set a title for the Merchant, otherwise the Player will be kicked if the Inventory is opened for him. Set a Title like this:
testMerchant.setTitle("Insert Title here");
But The Inventory needs something to Display of course. This is how you can create an Offer. Make sure that empty Fields have to be filled with a ItemStack with the Meterial.AIR, otherwise you will get an error and the Offer will not be Displayed inside the Inventory.
MerchantOffer testOffer = new MerchantOffer(new ItemStack(Material.BED, 1), new ItemStack(Material.AIR, 1), new ItemStack(Material.ANVIL, 1));
To add an Offer to the MerchantInventory just do:
testMerchant.addOffer(testOffer);
To open the Inventory for a Player you have to first set the Customer and than open the Menue manually:
testMerchant.setCustomer(Player);
testMerchant.openTrading(Player);
Thanks for Choosing our API
With Friendly Greetings, The Owner
Hey Guys The Owner here,
This API adds a Villager like Inventory Type that can be Accessed and Displayed in any Method and Event, there's no need for a Custom or modified Villager anymore. This API got tested on Spigot 1.11.2 and should work on any 1.11 Version. Tests and modifications need to be done for Versions below that and will only happen on Request. If you like our work feel free to buy us a coffe the only thing that can still keep us awake 0.0:
Instructions:
To work with the API in your Plugin you have to import the Jar File into your Java Project and put it also inside your Plugin Folder on your Server.
The added Inventory Type is called Merchant and can be created easily like this.:
Merchant testMerchant = new Merchant();
You HAVE to set a title for the Merchant, otherwise the Player will be kicked if the Inventory is opened for him. Set a Title like this:
testMerchant.setTitle("Insert Title here");
But The Inventory needs something to Display of course. This is how you can create an Offer. Make sure that empty Fields have to be filled with a ItemStack with the Meterial.AIR, otherwise you will get an error and the Offer will not be Displayed inside the Inventory.
MerchantOffer testOffer = new MerchantOffer(new ItemStack(Material.BED, 1), new ItemStack(Material.AIR, 1), new ItemStack(Material.ANVIL, 1));
To add an Offer to the MerchantInventory just do:
testMerchant.addOffer(testOffer);
To open the Inventory for a Player you have to first set the Customer and than open the Menue manually:
testMerchant.setCustomer(Player);
testMerchant.openTrading(Player);
Thanks for Choosing our API
With Friendly Greetings, The Owner
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.11
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Merchant/Villager standalone Inventory API is a free Minecraft Java mod. Compatible with Minecraft 1.11. Downloaded 150 times (via Spigot). Download it and open it directly in the game.