As the title says, how can I add custom trades to villagers?
Thanks, all working now.
CaptainBern This is getting the item in hand from PlayerA and giving it to PlayerB. All it does is give PlayerB an item with the enchanted book...
CaptainBern I tried that, all that did was give PlayerB an enchanted book called enchanted book, the enchantment and purple glow were removed.
How can I get the enchantment of the enchanted book a player is holding. This is what I want to do: PlayerA is holding enchanted book > type...
I replaced this ItemStack newSkull = new ItemStackMaterial.SKULL_ITEM); With ItemStack newSkull = new ItemStackMaterial.SKULL_ITEM, 3); All that...
Here's what I'm trying to do: PlayerA uses a command which will give PlayerB the skull they are holding (if they are holding one that is). When...
Thanks for that, that helped a lot.
I'm trying to get the enchantment name and level, of an item, to a string. But the only string I get is: {Enchantment[16, DAMAGE_ALL]=1} on a...
Ahh okay, thanks.
What is the difference between returning true and false in the onCommand method?
bloodless2010 I seem to be getting the same NPE as well.
Thanks very much.
This might be what you're after. http://forums.bukkit.org/threads/tutorial-make-a-minigame-plugin.168164/
How would I go about tracking Minecraft days? To put it simply. if(minecraftDays => 5){ doSomething(); }
Ahh yes, forgot about the refresh. I'll see if that works. Ok I'm not sure if I am doing this right or not. I made a EntityDamageListener class...
Thanks for the java syntax. It is still not working. Here is the code: @EventHandler (priority = EventPriority.HIGHEST) public void...
Would it be more along the lines of: Player player = event.getPlayer(); And how do you get java code on forum posts, all I can get is general...
I'm having some trouble, I am trying to set the colour of a player's tag depending on their health. Here is what I have so far: @EventHandler...
Ohh right, cause I am doing something where players can see how long they have been alive. I'm using .getTicksLived() and I wanted to convert the...
Separate names with a comma.