How to make a damage dealing block deal no more damage by haveing boots equipped?

Started by Hygerian on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a damage dealing block deal no more damage by haveing boots equipped?

Hello,
I wanted to ask you something.
Basically I want to make a Block that deals damage to you (eats you) but if you have boots equipped you get no more damage and an advancement
Can someone please help me with a clear explaination or pictures?
Thanks!

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes this would be great if…
Thu, 11/23/2023 - 17:24

Yes this would be great if you could send procedure files!
Btw tagging wont work since it uses item stack.
 

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Here is a mediafire link to…
Thu, 11/23/2023 - 18:35

Here is a mediafire link to a procedure. I have tested this one on my client, and it works as intended. If you're still having issues, it might be possible we're using a different version of MCreator? I'm not sure if that would make a difference, but there might be a bug in older versions preventing this from working correctly.

https://www.mediafire.com/file/3v5octrptxzyxl9/block_damage_procedure.ptpl/file 

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry that I am answering…
Thu, 11/23/2023 - 19:43

Sorry that I am answering too late!
I have found the solution myself, it doesn't need tick and is much more simple

Here a picture if you want to see:

https://ibb.co/VwHXWXN

Maybe if you want we could add and help each other on discord?

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That'll work too, but you'd…
Thu, 11/23/2023 - 22:30

That'll work too, but you'd need the entity to actually collide inside the block. (I assume that's how you're doing it?) And the randomness is a good idea, but could be a little crazy if there isn't a cooldown. (Though iframes will help.) If you really wanted to use this method, you could maybe add a player variable to track the last time they took damage from the block? Probably not nessasary though, that'll work fine.

You may want to use a different method of detecting boots, as this won't work with any modded boot items, but again, not essential. It's still weird the entity iterator wasn't working though. Are you using the same forge generator?

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes I am using the same…
Thu, 11/23/2023 - 23:38

Yes I am using the same forge generator, i dont know why it doesnt work.
Yes I am using collision.
Still thank you for your help, I have made this percentage of getting damage soo low that its mostly every 15 seconds.
Still you didnt answer my question if you want to add and help each other on discord for projects

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mindthemoods Hello?Do you…
Fri, 11/24/2023 - 17:16

Mindthemoods 

Hello?
Do you want to add and help each other on discord for projects?