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

Started by sssssh on Mon, 08/13/2018 - 08:57

Topic category: Advanced modding

Last seen on 07:29, 16. Nov 2018
Joined Nov 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Is there a way to make a mob grinder/magma block?
Mon, 08/13/2018 - 08:57

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 18:58, 16. Nov 2018
Joined Jun 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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 16:57, 16. Nov 2018
Joined Apr 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
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 07:29, 16. Nov 2018
Joined Nov 2015
User points:

Statistics:

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

Thanks guys! This really helps!