Block that deals damage without deleting items

Started by GarrowGlitch on

Topic category: Help with modding (Java Edition)

Last seen on 20:15, 27. Dec 2022
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Block that deals damage without deleting items
Fri, 12/16/2022 - 02:39 (edited)

I have a block that i want mobs to take damage on, but when i add 'Deal 1 damage to target' it allows dropped items to be deleted on it like a cactus. There anyway for this not to happen? thanks

Edit: i had to add 'Does Entity exist at XYZ' for both mobs and players

Edit again: Actually it just randomly stopped working. go figure. i guess items you throw count as mobs or players -_-

Edited by GarrowGlitch on Fri, 12/16/2022 - 02:39
Last seen on 20:15, 27. Dec 2022
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
why does this delete items…
Fri, 12/16/2022 - 02:43

why does this delete items that are thrown onto it?

Last seen on 22:16, 19. Apr 2024
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Made a procedure that works,…
Sat, 12/24/2022 - 00:41

Made a procedure that works, here it is:

This is in the "entity walks on theblock"

Hope it helps! 

Last seen on 00:28, 31. Jan 2023
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi GarrowGlitch, I wonder if…
Mon, 01/30/2023 - 23:52

Hi GarrowGlitch, I wonder if you could hand me the mod that you made to include it into my survival world, 

does it deal damage on all directions of the block ? ( like a cactus but also down )

Thank you if you respond, I hope I can get it lol.
( I was seraching some mods that could damage mobs that flies, and I think that your mod could be helpful )