Grass Kills Player

Started by IronmanGaming on

Topic category: Help with MCreator software

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Grass Kills Player

Hello everyone,

I'm making a mod that standing on a block of grass will kill you instantly.
The problem is I die on every block I stand.
This is what I have:

Event trigger ''on player tick update''.
If is 'grass block' material type ''GRASS''.
Do deal ''10000'' damage to ''Event/target entity'' type: ''GENERIC''.

How can I fix it?

Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Your basically checking if…
Fri, 10/01/2021 - 11:22

Your basically checking if Grass is made out of Grass. You need to check if the block under the Player is one. 

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And what is the procedure…
Fri, 10/01/2021 - 11:37

And what is the procedure for that one?

Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's something like this: If…
Fri, 10/01/2021 - 13:28

It's something like this:

If : Get Block at X: [x] Y: [y - 1] Z: [z] = Grass Block, then:

Deal Damage

 

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes it works, thank you so…
Fri, 10/01/2021 - 22:14

Yes it works, thank you so much!