Hello all! Finally I can make my own plugins! I need help: I want to spawn a primed TNT entity which explodes in one second and causes no damage in the world but it can hurt players. I want to spawn it 0.2 blocks on top of the block I tap (in order to make a "primed TNT carpet"). Does anybody know a method?
Make new "Carpet" entity. Then start the delayed task (20 ticks). I think there's no need to make explosion. Just get all players in same level as tapped block, find out if they're close enought and set their health to $p->getHealth()-X. Or, make invisible explosion...
This is a bad practice, but it is actually pretty effective if you just want to spawn the TNT without doing anything. https://github.com/LegionPE/LegionP...rc/legionpe/theta/utils/PrimedTNTParticle.php