Started by
Falkspyro
on
Topic category: Help with MCreator software
As the title says, when i use my custom item which spawns a mob when right clicked and im too close to a wall it spawns inside the wall. Is there a way to make it spawn in the closest air block?
I've tried a few things. Only spawning it, if the player is in a big enough radius of air. That worked, but i want you to be able to summon it, even in tight spaces where there might only be one air block available.
Set directions
Hello thanks for your reply. Would i be able to something when shooting with a projectile that spawns a entity upon hitting a wall. I have done the spawn x y+1 z, but i want them to spawn in air, and air only.
If and get block at x y z is the same as air
get block at x y+1 z is the same as air
do (mob summoning procedure)
Use the block face direction to determine where the entity should spawn for the block you are clicking.