Started by
PatrickTheF
on
Topic category: Help with Minecraft modding (Java Edition)
is there any way to deal damage only to living entities on collide with block? because it destroys items too.
Topic category: Help with Minecraft modding (Java Edition)
is there any way to deal damage only to living entities on collide with block? because it destroys items too.
Can you rephrase your question? I'm not sure what you are asking.
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.
You could try the set entity in cobweb for the slowing down part, but as for the item destruction, im not sure.
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?
Oh. Well unless you wrote a procedure to destroy items, then the bush won't affect any items.
it looks like this, and it destroys items and affect them like cobweb
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.
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).