Mobs summoning in walls when using custom item to summon it

Started by Falkspyro on Thu, 07/28/2022 - 18:50

Topic category: Help with MCreator software

Last seen on 10:27, 2. Oct 2022
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Mobs summoning in walls when using custom item to summon it
Thu, 07/28/2022 - 18:50

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. 

Last seen on 06:44, 18. Sep 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Set directions 
Mon, 08/01/2022 - 22:31

Set directions 

Last seen on 10:27, 2. Oct 2022
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hello thanks for your reply…
Tue, 08/02/2022 - 22:28

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.

Last seen on 21:02, 28. Sep 2022
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
If and get block at x y z is…
Fri, 08/19/2022 - 06:05

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)

Last seen on 07:03, 3. Oct 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Use the block face direction…
Sun, 08/21/2022 - 19:43

Use the block face direction to determine where the entity should spawn for the block you are clicking.