Is there a way to make a mob grinder/magma block?

Started by sssssh on

Topic category: Advanced modding

Last seen on 11:31, 30. Sep 2023
Joined Nov 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to make a mob grinder/magma block?

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!

Last seen on 17:49, 25. Mar 2021
Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You need to use the "when…
Sat, 09/08/2018 - 10:14

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

Last seen on 03:03, 6. Feb 2024
Joined Apr 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Open your block code and…
Sat, 09/08/2018 - 11:55

Open your block code and paste this code:
https://pastebin.com/kfFdv8Xq

under this code:

public static class BlockCustom extends Block {

		private boolean red = false;

		public BlockCustom() {
			super(Material.ROCK);
			setSoundType(SoundType.STONE);
		}

It will make your block behave exactly like Vanilla Magma Block :)

Last seen on 11:31, 30. Sep 2023
Joined Nov 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks guys! This really…
Sat, 09/15/2018 - 04:10

Thanks guys! This really helps!

Last seen on 08:24, 11. Jan 2020
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've got the same problem,…
Wed, 01/01/2020 - 18:26

I've got the same problem, where do i have to paste that code? thanks