Mob that breaks doors

Started by MischiefCat591 on

Topic category: Help with modding (Java Edition)

Last seen on 01:50, 28. Apr 2024
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mob that breaks doors

Im working on a mod that adds new zombie variants, and i wanted to make the strongman zombie able to break doors.

But whenever he goes to break a door, it just plays the sound over and over then crashes the game. How do i fix?

Here's my code:

https://imgur.com/a/2XoE4Hp

It's on entity tick procedure

Last seen on 23:39, 29. Apr 2024
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The remove block should have…
Thu, 04/04/2024 - 23:48

The remove block should have the same coords as the one above it from the check, as you are just removing the door that would be inside the zombie at the moment, also I assume you have it checking for every side, z+2, x-2, x+2, also try it without the wait block, it might be the cause for why its crashing

Last seen on 14:05, 27. Apr 2024
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
just use the "break doors"…
Mon, 04/15/2024 - 19:31

just use the "break doors" task in the ai menu for the entity