Topic category: Help with modding (Java Edition)
Hey, it's me again here with another complex idea I need help with.
I want my entity throwable to have a boomerang type function. So I kind of know the function of this. I have code for damaging the entity. But I need help with actual code for the rest of it. here is my idea for the mechanic:
so, entity throwable dissapears when it hits a block or entity is because of set dead. what I need is to delete that part (I need it later though) and add in a motion, so in place of set dead when it hits a block or entity it has a motion. When it hits an entity or a block the motion will return/be backwards. Then I need CollideWithPlayer that will 1. Set dead the entity and 2. give the player the item back.
If anyone wants to help or has code or something please reply. I am working in 1.7.10 version.