gnembon / fabric-carpet

Fabric Carpet
MIT License
1.73k stars 275 forks source link

Suggestion: A way to disable direct player interaction with an entity #274

Open James103 opened 4 years ago

James103 commented 4 years ago

Currently (Carpet Mod 1.3.22 in Minecraft 1.15.2), there appears to be no way to make it so an entity (such as a zombie) can't be interacted with or targeted directly by players, while keeping the entity visible. I would like if there was such a way.

A new function modify(e, 'interact', bool) (name subject to change) could be added. If set to false, will prevent the entity from being interacted with by players (they will simply target through as if it was a liquid block).

A use case would be to combine this with modify(e, 'no_clip', true), data merge entity [e] {Silent:1b,PersistenceRequired:1b,Invulnerable:1b}, as well as a repeating tp [e] @s to create a makeshift morph system.

gnembon commented 4 years ago

that's a good suggestion, not sure how hard would be to disable it. Besides, once the entity is reloaded it would loose that ability anyways.