Block deal damage without items

Started by PatrickTheF on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Block deal damage without items

is there any way to deal damage only to living entities on collide with block? because it destroys items too.

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you rephrase your…
Fri, 05/29/2020 - 19:44

Can you rephrase your question? I'm not sure what you are asking.

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I made sweet berry bush like…
Fri, 05/29/2020 - 22:15

I made sweet berry bush like block, it deals damage slows down entity like cobweb (can't figure it out how to make it slow down entity like berry bush, but when i throw item on it, it destroys itself just like on cactus, I made it on entity collide with block.

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could try the set entity…
Fri, 05/29/2020 - 22:31

You could try the set entity in cobweb for the slowing down part, but as for the item destruction, im not sure.

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I am, but I don't want this…
Fri, 05/29/2020 - 22:39

I am, but I don't want this bush to destroy items, only to hurt living entity, and slow down living entity, any way to make thia block ignore items?

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh. Well unless you wrote a…
Sat, 05/30/2020 - 03:34

Oh. Well unless you wrote a procedure to destroy items, then the bush won't affect any items. 

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it looks like this, and it…
Sat, 05/30/2020 - 09:54

it looks like this, and it destroys items and affect them like cobweb

 

procedure

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well a dropped item is an…
Sun, 05/31/2020 - 02:40

Well a dropped item is an entity, so it would effect the items. You might have to run a procedure of an if do command, with if not is entity type of item, then list your effects in the do part. That way, it will detect if it is not an item and then apply the effects.

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Only apply the damage if the…
Sun, 06/28/2020 - 19:29

Only apply the damage if the entity is not an item (or XP orb while you're at it), as item entities still take damage (they get destroyed).