@Zombie_Striker Than you, it worked!
That is where add the recipes to the villager. here is where i start adding, starting from line 147 : v.setRecipe(1, rec1);...
SleeperZ ( my replies may take a while cause they need approval )
I dont even have a CraftVillager class -.- whaaaat?
I tried on a craftbukkit 1.10.2 server Now the villager has a normal trade and 1 custom trade .... How to remoe and dont allow default trades...
@MrGeneralQ @tcwolf12 @Clasher8 You can create an npc with a custom name and then check when he is right clicked and then make him do whatever...
These are the imports, if you can find anything wrong .. tell me .. : import java.util.HashMap; import java.util.UUID; import...
I have to make a class of what ??? the recipies ? how would i then call them in the Listener class wherethe Event is ?
So, i have this event : @EventHandler public void VillagerSpawn(CreatureSpawnEvent e) { if(e.getEntity().getType() ==...
So recipes on the Villagers means the trades ?
Well id like to spawn a villager with custom trades .. does an API like that exist or is it in bukkit ?
How? ... i am pretty sure i tried everything or i am being stupid .. EDIT : fixed by casting it into an int : getConfig().set("location.x",...
If i have it like that :getConfig().set("location.x", Integer.parseInt(p.getLocation().getBlockX())); parseInt is underlined .. it asks for a...
Here is how for those wandering : @EventHandler public void OnPlayerBedEnterEvent(PlayerBedEnterEvent e) { Player p = e.getPlayer();...
@bwfcwalshy I did change it : else if (cmd.getName().equalsIgnoreCase("loc1")) { getConfig().set("location.x",...
@ArsenArsen You know whats up ? now when i run this command : else if (cmd.getName().equalsIgnoreCase("loc1")) {...
@AlvinB Oh you mean this part of my main class : public class SleeperZMain extends JavaPlugin { public void onEnable() {...
Here is the whole listener class : EDIT: Deleted it cause there was no need for it to be here :P he was asking for my main class Also can i have...
@AlvinB plugin is there at the code .. i use an instance of my main class : private SleeperZMain plugin; public...
@bwfcwalshy I want to do it with IDs anyway : if(fTime > 0) { ItemStack Item1 = new...
Separate names with a comma.