The block is not replaced

Started by Kisonix on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The block is not replaced

Hello again everyone. 
I have a problem...
I created an entity that you can ride. (In my case, it's a tractor).
Then I created a procedure when the trigger is triggered: When the entity tick is updated.

When I drive over the "Rooty Dirt" block, the block should be replaced with a regular dirt block.
But for some reason the logic doesn't work...

My procedure: https://imgur.com/orjKCz1

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
this wouldn't be referring…
Mon, 03/31/2025 - 17:33

this wouldn't be referring to the block it is driving over, rather it's referring to the block at the entity, so the block it's "inside"

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I didn't quite understand…
Mon, 03/31/2025 - 19:51

I didn't quite understand... It's just that on my second entity the logic of checking the block under the entity and planting seeds on the block works. But in this version I can't figure out how to make it change... hmm. 

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah the one where you are…
Mon, 03/31/2025 - 19:54

Yeah the one where you are using farmland, right?

That's because farmland isn't a full block, you "sink into it" slightly, so you are technically inside that block when standing "on" it,

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I got it.I just replaced the…
Mon, 03/31/2025 - 20:04

I got it.
I just replaced the coordinates and everything worked, thanks, at first I didn't understand what you were talking about, but then I understood. =)