Spawning mobs on specific blocks

Started by deltagodzilla on

Topic category: Help with modding (Java Edition)

Last seen on 17:04, 19. Dec 2022
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Spawning mobs on specific blocks

I would like to make mobs that will only spawn on a specific block exclusively for an upcoming mod that I am making. I have tried using  procedures to achieve this, but to no avail. to make a long story short, the result of the procedures is as follows: when the specific block is not present, they will not spawn. when the block is present they will spawn, but, they will spawn on any block rather than only spawning on this specific block.

Last seen on 13:21, 18. Jul 2024
Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you could try using external…
Fri, 08/06/2021 - 20:01

you could try using external spawn conditions trigger or make them despawn right after they spawn if the block under them isn't valid

Last seen on 13:21, 18. Jul 2024
Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
or making your custom block…
Fri, 08/06/2021 - 20:02

or making your custom block have a very small chance of spawning them but it might lag if you place down a lot

Last seen on 17:04, 19. Dec 2022
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried adding a additional…
Sat, 08/07/2021 - 00:14

I tried adding a additional spawning condition, but the entities stopped spawning all together (including in the dimension which is literally carpeted by the blocks they spawn on. Here is the procedure used.

Event trigger- triggered by external call

or when (global trigger) no additional trigger

        if get block at x: x y: y z: z = infested sprout

do spawn at x: x y: y z: z living entity: Custom: InfestedWalker

      return true

 return false

Last seen on 00:26, 6. Aug 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
is the infested sprout a…
Wed, 01/12/2022 - 23:30

is the infested sprout a plant? if so, that may be the reason

 

Last seen on 17:04, 19. Dec 2022
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The infested sprout is a…
Mon, 01/24/2022 - 01:32

The infested sprout is a plant, but is not classified as a plant.