Started by
sssssh
on
Topic category: Advanced modding
I have been tinkering around with MCreator - but I can't seem to find a way to make a block that damages players and mobs when they touch it. The reason I'm doing this is because I kind of wanted to make a mob grinder for my new tech mod (which will be out quite soon, I hope!) so if you guys have any ideas then please tell me! Thanks!
You need to use the "when entity collides block" trigger and a procedure that damages an entity.
PS: this trigger only works when you can pass trough the block or when it has a little hitbox
Open your block code and paste this code:
https://pastebin.com/kfFdv8Xq
under this code:
It will make your block behave exactly like Vanilla Magma Block :)
Thanks guys! This really helps!
I've got the same problem, where do i have to paste that code? thanks