Started by
Failtronic2
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to do a thing where I craft an item, and upon using the item, every time I kill a mob it will spawn some lit TNT which will then explode after a short time.
(Another thing I need help with is actually using the item after a right click, like making it disappear after use, but that's not the point of this question.)
OK, got the item to disappear now I just need the TNT part.
It's easy to make a mob spawn TNT on death, but for exactly what you are looking for, this will need variables. I am not very experienced with the new 1.8.3 variables, but if you set a logic variable of some description to set itself to true when you use the item, you can have a procedure set for the global trigger 'When mob dies'. The procedure itself would be:
if [YourVariable] = true
spawn entity [LitTNT]