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());...
Like this? if(inven.getType().equals(Material.LOG)){ if(inven.getDurability() == (2)){
https://gyazo.com/6e526a1b59b2b15420d4168d28e5fb93 It says that you must change it to getMaxDurability. (look link)
Where do I need to place it? (tried many places in the invent.getType)
Then I can do that but the pl is needed for 1.12.2 is that possible? (the error when doing the command in 1.12.2: https://pastebin.com/QRdVuM7N)...
But is it also possible to give them 4 planks back and another question, can you specify the type of logg. Because now you only have logg and...
Separate names with a comma.