Topic category: Help with Minecraft modding (Java Edition)
I am trying to make a throw able hook for my mod, the part where the hook extend itself to the botton block is already done and working fine, what i am really in a struggle is when the entity hit the block, the ideia is that the player can throw the item and them when it hits a block it will place the rope item that will extend it self, but that is only working on 2 directions, whenever it comes from north for example it place on behind the intended block, The only way it works, is that if the rope has no where else to be placed, that can work on mountains an such, but in a wall the rope will be placed on the other side, and that makes no sense of course
The image below shows very well whats happening
Here below is my procedure for when bullet/entity/Ranged item hits the a block
Can please someone tell me what i am doing wrong here? i already try for hours to make it work
I was able to figure it out, i just make the projectile look what are his direction when it hits the block, using N/S/W/E, if someone wants the procedure just ask, it works for trying placing blocks with projectile. it is not perfect, but works just fine