How to make blocks push down on Pressure Plates

Started by TehEpicDoge on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make blocks push down on Pressure Plates

This might seem a bit random, but I wanna make it so a block that I've made pushes down/activates a Pressure Plate. Is it even possible to do that, cause I can't really find anything on how to do it.

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Like when the block is…
Fri, 02/16/2024 - 07:45

Like when the block is dropped? Or just when in the world?

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i think he means like a…
Fri, 02/16/2024 - 14:31

i think he means like a weighted pressure plate?

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So I have a block with…
Fri, 02/16/2024 - 15:20

So I have a block with gravity and I wanna make it so that you can activate a pressure plate when the block is on top of it, instead of making it destroy itself. Hopefully this will give you better context.

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In vanilla gravity blocks…
Fri, 02/16/2024 - 18:07

In vanilla gravity blocks will destroy itself so you would need to do custom code to do that

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You might be able to create…
Wed, 02/21/2024 - 03:02

You might be able to create a custom entity that'd do a similar thing? SImilar to how vanilla blocks use a fallingBlock entity for blocks with gravity - you could spawn a custom entity that looks like your block and simulate it falling when not supported. That way when it comes into contact with the pressure plate it shouldn't despawn. Haven't tried anything but maybe give that a go