Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

How do you make it so there is one less TNT item in your inventory using the Bukkit API? It doesn't seem as straightforward as the Javadocs would indicate.

share|improve this question
Is something like this that you're looking for?: forums.bukkit.org/threads/… Specfically, player.getInventory().removeItem(new ItemStack[] { new ItemStack(Material.getMaterial(id), ammount) }); player.getInventory().updateInventory(); According to jd.bukkit.org/rb/doxygen/d6/d0e/…, the id of TNT is 46. – DMan Mar 2 at 22:16

closed as too localized by mh01, Byte56, Anko, msell, Nate Apr 30 at 22:10

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.