Grass Kills Player

Started by IronmanGaming on

Topic category: Help with MCreator software

Active 3 years ago
Joined Sep 2021
Points:
535

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
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?

Active 2 weeks ago
Joined Aug 2018
Points:
781

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 124
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. 

Active 3 years ago
Joined Sep 2021
Points:
535

User statistics:

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

And what is the procedure for that one?

Active 2 weeks ago
Joined Aug 2018
Points:
781

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 124
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

 

Active 3 years ago
Joined Sep 2021
Points:
535

User statistics:

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

Yes it works, thank you so much!