Loose dirt function making other dirt blocks surrounding it when broken into other loose dirt blocks

Started by ernestsstrīķis on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Loose dirt function making other dirt blocks surrounding it when broken into other loose dirt blocks

I'm currently making the function of loose dirt and how it works in the Better Than Wolves mod, here is the info on what I want to accomplish:

Loose Dirt is a version of the regular Dirt block that is subjected to gravity (like Sand or Gravel).

Mining Dirt or Grass without an Iron shovel will turn surrounding dirt and grass blocks into Loose Dirt.

Mining Loose Dirt however will not loosen any other blocks, even if you're not using any tool.

I've currently done everything EXCEPT one single function, to make it so that whenever loose dirt is broken next to other dirt blocks it won't loosen those dirt blocks, for me it currently loosens it even if it is loose dirt, I've tried adding this function at the end of the block code as seen here: 

https://imgur.com/a/vnfHnxt

But it simply doesn't work, I'd like some clear guidance on what I have to change or add to my block code for this specific function to work.