Mob that breaks blocks causes buggy invisible blocks.

Started by BryAstro on

Topic category: Troubleshooting, bugs, and solutions

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mob that breaks blocks causes buggy invisible blocks.

Version 2024.1 (1.20.1 Forge)

I really need help, whenever I make a mob that breaks blocks within a radius, some of the broken blocks have become buggy, as it looks like air, but I can't walk through the block, and when I right-click the air, it turns back into the block it originally was. I really need help to fix this, is there any way I can improve the procedure to make it not buggy.

 

This is the code I used for the mob to break blocks (It is an on entity tick update procedure)

https://imgur.com/a/U2xibYb

 

This is what happens to some of the blocks.

https://imgur.com/a/tcGAUaz

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
late to ur post but once the…
Wed, 06/26/2024 - 22:56

late to ur post but once the block is broken, i think it suppose to be replaced with air. The replace prodcedure i think put it under remove block. 

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you please provide an…
Fri, 06/28/2024 - 13:10

Could you please provide an example via a imgur link? I can't seem to get it to work.

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have run into this bug…
Fri, 06/28/2024 - 13:54

I have run into this bug before and a solution is to put the part of your procedure into an if block, with the condition [not[is provided world client-side]]

That will ensure that it only runs on server side which is where the blocks are actually stored, rather than client side which just makes the blocks look destroyed. Also, a chance to blocks on server side will automatically synchronize with client side, so it will look destroyed and actually be destroyed.

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
TYSM!!! It works perfectly…
Sat, 06/29/2024 - 03:46

TYSM!!! It works perfectly now! :)