Started by
TehEpicDoge
on
Topic category: Help with Minecraft modding (Java Edition)
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.
Like when the block is dropped? Or just when in the world?
i think he means like a weighted pressure plate?
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.
In vanilla gravity blocks will destroy itself so you would need to do custom code to do that
Ah, ok
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