Temporary Blocks

Started by Aetherepico on

Topic category: Help with MCreator software

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Temporary Blocks

Hey! For ages now I've been trying to create a Temporary Block, the kind you see in Roblox obbies. When stood on, it should break, then after like 3 seconds it regenerates in the same spot. Can anyone give me a simple procedure that can work? All of mine won't work. Thanks!

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Probably the most "stable"…
Sun, 09/21/2025 - 11:16

Probably the most "stable" way would probably be to make your own air block and then use nbt timers.

You can use just y - 1 but a custom code snippet with .getBlockPosBelowThatAffectsMyMovement should make sure the block also disappears when you go on the edge of it.

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
BlockPos blockPosBelow =…
Sun, 09/21/2025 - 11:16
BlockPos blockPosBelow = entity.getBlockPosBelowThatAffectsMyMovement();
		x_below = blockPosBelow.getX();
		y_below = blockPosBelow.getY();
		z_below = blockPosBelow.getZ();

full code snippet

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I forgot an important block
Sun, 09/21/2025 - 11:23

I forgot an important block

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks! Although, I am…
Sun, 09/21/2025 - 12:11

Thanks! Although, I am making this for Fabric, so it’s saying stuff like “block_nbt_num_get is not supported for the generator”. Is there any workarounds, or anything?

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh um sorry, i haven't used…
Sun, 09/21/2025 - 13:43

Oh um sorry, i haven't used the fabric generator. 

Maybe make a new post like "setting/getting nbt in the fabric generator?" or ask on one of the discords.

The custom code snippet probably won't work on fabric either since the mappings are different.