bump
I want to be able to toggle a recipe via an ingame menu, Now everything is made and I use the following code for Enabling / making the crafting...
Hello, I want to add canBreak … to this pickaxe. How can I do this? package me.rubenio1.getPickaxe; import org.bukkit.Bukkit; import...
At the moment I have 1 problem (this is my code: https://pastebin.com/crUrZxsC ) the problem is when a player has 64 oak logs in his inventory it...
I'm coding in 1,12,2
The plugin is the same version as the server?
I tried things like this because I don't get how you can delete it with itemstack. consumeItem(sender, 1, Material.LOG); Then I have this error:...
I tried a lot off things but I just can't find it / don't get wat you mean. (with the itemstack)
But how do you use it. This doesn't work: ((HumanEntity) sender).getInventory().remove(inven.getType(), 1);
And how can you make it remove 1 wood? I can't find it
((HumanEntity) sender).getInventory().remove.inv.ItemStack(Material.WOOD, 1 /*amount of items*/, (short) 1 /*damage value*/); somethinh like this...
Found it, normal wood 1 dur. 0. But how can you specify how much wood theire will be removed. ((HumanEntity)...
if(inven.getDurability() == (1)){ Bukkit.getLogger().info("1"); I have done this but nothing is comming thru in the console
what do you mean by print it? @timtower
if(inven.getType().equals(Material.LOG)){ if(inven.getDurability() == (2)){ ((HumanEntity) sender).getInventory().remove(inven.getType());...
Separate names with a comma.