Replacing Singular Block

Started by Destroyer5266 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Replacing Singular Block

I'm trying to create a One Block mod for the newest version of minecraft. I'm currently getting stumped at replacing the one block block players will be breaking. All the ways I have figured out how todo it maxes out the players GPU in the blink of an I. Anyone have any ideas how I can do this without turning the players PC fans into jet engines? 
Currently I use

Event Trider - On world tick update

Do In Mod Dimension

- If block at (coords) is solid

- Do Place the block 

- Else Place the block


I know I have the same thing being done twice. Without the "do place" it wont let me even save it as well.

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It might help if you changed…
Sat, 06/21/2025 - 15:47

It might help if you changed it to:

 

Event Trigger - on world tick update

Do in Mod Dimension

-If not block at (coords) is solid

-Do Place the block

 

If you use the not procedure block (I'm pretty sure it is under either logic or flow control, but you can always use the search bar at the top to find it), you won't need to have the else. This means it won't place a new block 20 times per second, only when the block is broken. I think how you were doing it was using GPU space due to Minecraft rendering weirdness, which says that if a single block is modified, an entire 16*16*384 chunk of blocks receives a visual update. The procedure I suggested should help to greatly reduce that.