Sythiex Posted December 4, 2013 Posted December 4, 2013 What is the easiest way to add a new component to the nether fortress generator? Thanks in advance. Quote http://i.imgur.com/4OtsrTz.png[/img]
Sythiex Posted January 14, 2014 Author Posted January 14, 2014 How exactly should I do this? I haven't really done anything with events before. Quote http://i.imgur.com/4OtsrTz.png[/img]
Ernio Posted January 14, 2014 Posted January 14, 2014 http://www.minecraftforge.net/wiki/Event_Reference You are looking for "Terrain Events" on the bottom of page. In your MainMod you register it in preInit(): MinecraftForge.TERRAIN_GEN_BUS.register(new MyTerrainEvent()); Then you create MyTerrainEvent.class which for example can look like this: public class MyTerrainEvent { @ForgeSubscribe public void changeTerrain([eventname] event) { } @ForgeSubscribe public void changeTerrainInNether([eventname] event) { } } Oh, and look into net.minecraftforge.event.* Quote Quote 1.7.10 is no longer supported by forge, you are on your own.
Sythiex Posted January 21, 2014 Author Posted January 21, 2014 Ok, so I got the event check working, but how exactly do I add the new component? Sorry for asking for details, I'm a complete forge noob. Quote http://i.imgur.com/4OtsrTz.png[/img]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.