Entity Detection

Published by theodu30_ on
Issue description

I'm creating a mod and i want to create a throwable fireball that explode blocks and entities. But the only issue is i wanted to check if the entity target was not the source entity. So i thought of suggestion for the procedure block called "is ENTITY (sub)type of ENTITYTYPE" to remove the ENTITYTYPE and let the choice to put a certain entity or a entity target/source entity block. Or just create a new procedure block i don't know.

Issue comments

But the source shooter entity is known, if you know the player will use them, you can assume the player was the source.

The same applies if you intend to use your ranged item as a projectile of the entity.

Or did I misunderstand you?

I'm sorry i was unclear of what i was saying. When i try to create this mod element, even if i shoot, i explode myself. So i wanted to disable the explosion for the player who's shooting but i can't find out how to do it.

Sorry for bad english

You can use check for the entity (sub)type block for this, just check if the entity is not player.