Started by
Pausemylife
on
Topic category: Advanced modding
I am working on the Astroneer In Minecraft mod, and I need help with tethers, first, I need the ability to place the tethers if they are in my inventory anywhere when I press T, and the connection between the two tethers, and the ability to place them anywhere, even not on the grid.
It's not perfect, but this is what I would do to solve this problem:
You can set up a key binding that will spawn a custom entity at your feet whenever you push the button. The entity has no collision, and is a custom block bench model that looks like your tether. The entity cannot move and has no AI (by making it an entity it doesn't have to be on the usual block grid). If you're trying to replicate the oxygen aspect, like how it gives oxygen to the astroneer, you could just detect if a player is near the mob, then give them "oxygen" or some form of custom potion effect that does whatever you need. Visually linking the tethers like how they are in astroneer is probably possible through particle commands but it would be absolutely brutal to implement.
Hope this helps with actually placing the tethers, but this does seem like a rather daunting and difficult challenge. Good luck!
thank you.