Started by
ATWS159
on
Topic category: Help with MCreator software
i need the block on tick update supports entity it just grayed out in triggers how do i make it support entities dependencies
Topic category: Help with MCreator software
i need the block on tick update supports entity it just grayed out in triggers how do i make it support entities dependencies
You can't, but you can use various methods to get an entity without using the event/target entity dependency.
One option is to check if an entity of a certain type exists in a radius around the block (possible with a single procedure block), then getting the nearest entity of the same type within the same radius (also possible with a single procedure block).
Using the two of those, you could, for example, get the nearest player within 10 blocks. Then put the get nearest entity procedure block in place of event/target entity. Just make sure to check that an entity does exist before trying to get the nearest entity or your game will crash.
Another way to get entities without using the event/target entity dependency is the procedure block that gets each entity in a radius as entity iterator. This is a way to effect all entities in an area, rather than just one, you just need to put entity iterator in place of event/target entity.