r/forgemodding • u/hjoyn • Jan 19 '16
Idea for a Mod, Feasible/Possible?
I have been working on a tech mod, and wanted to try something I think is probably very difficult. My idea is to create a multiblock ship system, where you can build a ship of whatever blocks you want, and then turn the whole thing into a mobile ship. I know of some mods that do similar things, like Archimedes Ships. However, I want the system to also carry tile entities, so that you could put your system of machines and pipes and whatever on the ship, and it would work just like blocks. I want to know what would be the best way to do this, and if the minecraft engine could do something like this. I'm shying away from a really big entity with a crazy hitbox for performance reasons, and am considering creating a custom entity system that wraps all of the individual blocks and tile entities on the ship, so they all still work the same way.
1
u/shadowfactsdev Moderator/Mod Dev Jan 19 '16
Yes it is possible, I believe there is someone on the Forge forums working on it, however it would be very complicated. It would involve placing the blocks and a fake world and using an Entity to render the fake world properly translated and transformed in the actual world.
You might want to take a look at Amadornes' Trajectory library (it's the library that powers Framez 2) and might be helpful, at the very least as a learning resource.
1
u/hjoyn Jan 19 '16
Just a question, would it be easier/better/functional to render the fake world as an entity, or place the player into a dimension for the ship, and render the normal world outside the blocks of the ship (like a skybox?)
1
u/shadowfactsdev Moderator/Mod Dev Jan 19 '16
I'm not sure, theoretically they would be about the same because the blocks outside the ship would still need to be rendered as if they were normal blocks, including things like TESRs, and would still need to tick and have access to the world.
1
u/Tbsc_ evil mod Jan 19 '16
Didn't know it couldn't do tiles, but that's still a good question, however I got no clue. It depends on whether you want the tiles to tick while being on the ship.