Spawning on Specific blocks

Started by Juplikate on Wed, 06/29/2022 - 00:25

Topic category: Help with modding (Java Edition)

Last seen on 22:27, 2. Jul 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Spawning on Specific blocks
Wed, 06/29/2022 - 00:25

I want to make it so a mob can only spawn on a specific block. It won't spawn on magma from what I have tried, and I edited the spawn conditions to try and make it spawn on magma blocks.

https://imgur.com/3Ol5rlN

What am I doing wrong?

Last seen on 02:47, 17. Jul 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
if(is block at y-1 == magma…
Wed, 06/29/2022 - 05:45

if(is block at y-1 == magma block) {
    return true
} else return false