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 Minecraft modding (Java Edition)

Active 1 year ago
Joined Jun 2023
Points:
319

User statistics:

  • Modifications: 1
  • Forum topics: 16
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 60
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
Active 1 year ago
Joined Nov 2022
Points:
394

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 93
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.

Active 1 year ago
Joined Jun 2023
Points:
319

User statistics:

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

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

Active 1 year ago
Joined Nov 2022
Points:
394

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 93
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.

Active 1 year ago
Joined Jun 2023
Points:
319

User statistics:

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

but which air is in the end?

Active 1 year ago
Joined Nov 2022
Points:
394

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 93
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.