Block that deals damage without deleting items

Started by GarrowGlitch on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Dec 2019
Points:
674

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
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
Active 2 years ago
Joined Dec 2019
Points:
674

User statistics:

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

why does this delete items that are thrown onto it?

Active 2 days ago
Joined Jan 2021
Points:
706

User statistics:

  • Modifications: 2
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 199
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! 

Active 2 years ago
Joined Jan 2023
Points:
206

User statistics:

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