• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

How can I force a game event to spawn an entity directly on top and center of a block?

gaveitatry

Refugee
In my gameevents.xml, I have tried different spawn_type settings (NearTarget, Position, NearPosition, WanderingHorde). I also tried setting the min_distance and max_distance to 0, fractions like 0.1, and 1. But no matter what I do, the entity is always spawned at random distances and directions from the block. I want the entity to spawn directly on top of the block.

<property name="air_spawn" value="false" param1="airspawn"/>
<property name="max_distance" value="0"/>
<property name="spawn_type" value="Position"/>
 
Last edited:
[UDPATE]

I think that it is completely impossible. The only way to achieve this is to not use game events to spawn entities but instead use a spawnentity block. I didn't want to use a spawnentity block for certain reasons, but I found ways to get around those issues so I am good now.
 
Back
Top