[FIXED] Replacing block below entity if targeted entity is at same height or higher

Started by Kirbzzy on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[FIXED] Replacing block below entity if targeted entity is at same height or higher
Wed, 09/06/2023 - 16:55 (edited)

Hello, this is my first forum post (as you can probably tell from the fact my account was made like 2 minutes ago) I am very new to MCreator, or at least to the coding part (messed around with stuff in the past) and I've been having problem's with getting details of targeted entities (as said in the title)


Pastebin link to my crash log: https://pastebin.com/D0wWHVXW

 

code that isn't working:

look at the image

 

As far as I can tell, somethings going wrong with getting the Y position of the targeted entity, but I don't understand why?

 

Also sorry if this post is badly structured.

Edited by Kirbzzy on Wed, 09/06/2023 - 16:55
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also to just to note this…
Tue, 09/05/2023 - 18:21

Also to just to note this runs every tick (crash log might say it)

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I FIXED IT
Wed, 09/06/2023 - 16:56

I FIXED IT