Started by
Kyoukster
on
Topic category: Help with modding (Java Edition)
i want to make a ''wire'' and i need to make a block with a custom model that act like a fence/pane
how i can do that?
in act like a fence i say that if the same block is near it will gonna connect
(sorry for bad english)
Create a procedure on block placed and verify the surrounding blocks, do chance the block you put to the same block in another state, like connected vertically or horizntaly
Hell of phone, sorry the comment was not finished
Create a procedure on block tick and verify the surrounding blocks, do change the block you placed to the same block in another state, like connected vertically or horizontaly (north-south, west-east and all other combinations), for that you will have to create a block model and texture for each possibility and code every possibility inside this procedure, not that dificult if your wire is two way only, if you want multi connection it will complex a lot, but it is the same principle, you have to verify inside each previous verification if there is another wire around it
I just made it that specific parts have to be placed to make intersections and the wires are one direction.
exactly that was the thing i try to evade
but if there ins't another solution