Custom blocks have the hitbox of a regular block, even if the block base is something different.

Started by RedWirePlatinum on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 03:48, 15. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom blocks have the hitbox of a regular block, even if the block base is something different.

I have some pressure plate items in my mod that do certain things when an entity steps on them. However, I noticed that since this activates under "when entity collides with block", it activates as if it were a regular block and not.. well.. a pressure plate. You could jump over a pressure plate, and the collision procedure would still activate.

Last seen on 14:41, 16. Apr 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, because I imagine the…
Mon, 10/03/2022 - 20:36

Yes, because I imagine the procedure activates based on your coordinates, not the bounding box. What you could do instead is execute the procedure whenever the block has redstone power.

Last seen on 03:48, 15. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can't really do that since I…
Mon, 10/03/2022 - 20:45

Can't really do that since I need the target entity in my procedure.. BUT I made some kind of work-around:

Collision work-aroundBasically just checks if your Y coordinate is more approximately in position of the pressure plate

Last seen on 03:48, 15. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well.. actually I don't NEED…
Mon, 10/03/2022 - 20:58

Well.. actually I don't NEED an entity for my land mine item that I used in the example pic in comparison for my other pressure plate items, but you get my point)

Last seen on 14:41, 16. Apr 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you use a call procedure…
Mon, 10/03/2022 - 21:29

If you use a call procedure block, you need to use the variant with coordinates. 

Last seen on 03:48, 15. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I am aware of that but thank…
Mon, 10/03/2022 - 22:43

I am aware of that but thank u :)