NOVA-Monorepo icon indicating copy to clipboard operation
NOVA-Monorepo copied to clipboard

Replacing existing game content

Open Ecu opened this issue 9 years ago • 4 comments

This was discussed over IRC and Vic asked me to post the issue for it here.

Essentially this is a suggestion to create the ability for mod authors to replace existing base game content with NOVA content instead. This should extend to all content allowed by NOVA. As of right now, I can think of Blocks, Items, UI screens (including HUD), Recipes and Entities (Creatures mostly, but minecarts as well?).

Essentially this would work by allowing a mod to test for the existence of an object to be replaced and then if so desired, replace said item with their own object. Alternatively, a mod should also be able to remove an object (blocks become air, items are removed, UIs won't open, etc.). If a mod attempts to replace an object without testing for it and it doesn't exist, it fails gracefully.

This would allow for overhaul mods to be created as well as tweak mods like Minetweaker. If done in a way that is very easy to utilize by a mod author, I feel like it could create a large appeal for the project as a whole as replacing features has traditionally been pretty frustrating to do and maintain across game versions (which has severely limited overhaul mods).

Ecu avatar Jun 05 '15 01:06 Ecu

I would think some objects would be a tad difficult to remove. But if you say so.

On Fri, 5 Jun 2015 11:12 am Ecu [email protected] wrote:

This was discussed over IRC and Vic asked me to post the issue for it here.

Essentially this is a suggestion to create the ability for mod authors to replace existing base game content with NOVA content instead. This should extend to all content allowed by NOVA. As of right now, I can think of Blocks, Items, UI screens (including HUD), Recipes and Entities (Creatures mostly, but minecarts as well?).

Essentially this would work by allowing a mod to test for the existence of an object to be replaced and then if so desired, replace said item with their own object. Alternatively, a mod should also be able to remove an object (blocks become air, items are removed, UIs won't open, etc.). If a mod attempts to replace an object without testing for it and it doesn't exist, it fails gracefully.

This would allow for overhaul mods to be created as well as tweak mods like Minetweaker. If done in a way that is very easy to utilize by a mod author, I feel like it could create a large appeal for the project as a whole as replacing features has traditionally been pretty frustrating to do and maintain across game versions (which has severely limited overhaul mods).

— Reply to this email directly or view it on GitHub https://github.com/NOVA-Team/NOVA-Core/issues/95.

gjgfuj avatar Jun 05 '15 01:06 gjgfuj

@gjgfuj, it depends on the game/wrapper, for instance in MC with Forge, you can easily remove a large amount of the Mojang created content.

shadowfacts avatar Jun 05 '15 01:06 shadowfacts

Didn't include player model replacement. That would be another thing that would be important to offer. Since, if you wanted to create a unified experience regardless of game using your mod...you'd need to be able to replace the palyer model with your own.

Also incredibly useful to create mods like Morph.

Ecu avatar Jun 07 '15 11:06 Ecu

I got an idea... use events when the registry removes stuff. Then bind an event to the remove event and if the block is a MC block, remove it from MC.

calclavia avatar Jun 11 '15 05:06 calclavia