How do i make a grass block-like block that only spawns if air is above it?

Started by Expandi-craft … on

Topic category: Help with modding (Java Edition)

Last seen on 16:20, 16. Nov 2023
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make a grass block-like block that only spawns if air is above it?
Mon, 07/03/2023 - 07:45 (edited)

So i was working on expandi-craft and when i went to the end, the infested end stone wasn't on the outside of the end islands. How do i make the generation like grass blocks, so it won't spawn inside the islands?

Edited by Expandi-craft mod dev on Mon, 07/03/2023 - 07:45
Last seen on 20:18, 12. Mar 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I would suggest making both…
Sun, 07/02/2023 - 20:54

I would suggest making both blocks tick randomly, then add a trigger for "On tick update" for both blocks that checks the block above and sets this block to the appropriate block.

Last seen on 16:20, 16. Nov 2023
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can you show me an image to…
Sun, 07/02/2023 - 21:13

can you show me an image to a procedure of it?

Last seen on 20:18, 12. Mar 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The first block should be…
Mon, 07/03/2023 - 02:32

The first block should be Air, the second block should be the grassy block, and the third block should be the non-grassy block. This procedure should be set for "On tick update" on both the grassy and non-grassy blocks.

Last seen on 16:20, 16. Nov 2023
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
but which air is in the end?
Mon, 07/03/2023 - 07:45

but which air is in the end?

Last seen on 20:18, 12. Mar 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I am pretty sure the End has…
Mon, 07/03/2023 - 20:03

I am pretty sure the End has regular air, but you can check for all three of them and OR them together if you like.