Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Nether Fortress Custom Component
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
Sythiex

Nether Fortress Custom Component

By Sythiex, December 4, 2013 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Sythiex    0

Sythiex

Sythiex    0

  • Tree Puncher
  • Sythiex
  • Forge Modder
  • 0
  • 8 posts
Posted December 4, 2013

What is the easiest way to add a new component to the nether fortress generator? Thanks in advance.

  • Quote

width=728 height=100http://i.imgur.com/4OtsrTz.png[/img]

Share this post


Link to post
Share on other sites

diesieben07    7581

diesieben07

diesieben07    7581

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7581
  • 54884 posts
Posted December 4, 2013

Use the

InitMapGenEvent

and check for

EventType.NETHER_BRIDGE

. Then change the generator in the event. (Warning:

InitMapGenEvent

is not posted on the normal forge event bus, you have to use the

TERRAIN_GEN_BUS

).

  • Quote

Share this post


Link to post
Share on other sites

Sythiex    0

Sythiex

Sythiex    0

  • Tree Puncher
  • Sythiex
  • Forge Modder
  • 0
  • 8 posts
Posted January 14, 2014

How exactly should I do this? I haven't really done anything with events before.

  • Quote

width=728 height=100http://i.imgur.com/4OtsrTz.png[/img]

Share this post


Link to post
Share on other sites

Ernio    600

Ernio

Ernio    600

  • Reality Controller
  • Ernio
  • Forge Modder
  • 600
  • 2638 posts
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

1.7.10 is no longer supported by forge, you are on your own.

Share this post


Link to post
Share on other sites

Sythiex    0

Sythiex

Sythiex    0

  • Tree Puncher
  • Sythiex
  • Forge Modder
  • 0
  • 8 posts
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

width=728 height=100http://i.imgur.com/4OtsrTz.png[/img]

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • coalbricks
      [1.15.2] Change player name in Tab List (Player List)

      By coalbricks · Posted 2 minutes ago

      You've already done it, here: new SPlayerListItemPacket(SPlayerListItemPacket.Action.UPDATE_DISPLAY_NAME, (ServerPlayerEntity) player) A packet is just a bit of data that is sent between two or more computers over a network. Usually you don't have to manually send packets because Minecraft takes care of this for you for standard vanilla gameplay, but in this case I think it's the best solution. You can dig around the 'net.minecraft.network' or 'net.minecraft.network.play' packages to look at some example packet implementations; AFAIK there isn't any documentation on them. What IDE are you using?
    • poopoodice
      Rotating Item Model Baked Quads

      By poopoodice · Posted 20 minutes ago

      Maybe not in Vector3d, but there's one in Vector3f  
    • mireyaruff
      my server doens`t work

      By mireyaruff · Posted 56 minutes ago

      Thx, appreciate it!
    • Badnews4u
      My forge server won't load all the mods

      By Badnews4u · Posted 1 hour ago

      Went through all the steps to make forge server hosted from my computer. I was able to successfully launch the server, but after joining the server I noticed not all my mods were working. Most notably it didn't generate a world with biomes o' plenty when I made sure to set the biomes o' plenty default world setting in the configs to true. Also gravestone mod won't give me gravestones. I made sure to update my java and everything and yes, I made sure to create the server using the forge .jar file. Any suggestions on how to fix this?
    • Lellian
      [SOLVED] [1.16.4] Change Block Hitbox/Outline

      By Lellian · Posted 2 hours ago

      Well this is embarrasing. I don't know how I missed this, but it fixed everything.   Thank you very much 🤣🔫
  • Topics

    • Babatunde
      12
      [1.15.2] Change player name in Tab List (Player List)

      By Babatunde
      Started Thursday at 12:42 AM

    • poopoodice
      3
      Rotating Item Model Baked Quads

      By poopoodice
      Started Wednesday at 09:45 PM

    • peermans
      2
      my server doens`t work

      By peermans
      Started January 7

    • Badnews4u
      0
      My forge server won't load all the mods

      By Badnews4u
      Started 1 hour ago

    • Lellian
      4
      [SOLVED] [1.16.4] Change Block Hitbox/Outline

      By Lellian
      Started 4 hours ago

  • Who's Online (See full list)

    • becks
    • nicolas14101
    • Speedy8075
    • Belial
    • Th1Minecraft
    • sparrowofsong
    • LexManos
    • coalbricks
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Nether Fortress Custom Component
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community