Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hey guys,

 

 

I'm working on an ore mod which is designed to be a non-intrusive solution to removing duplicate ores.

The mod works in that other mods can add an optional hook (checking if the mod is there then using it if so) to disable their own ores and use mine instead. However, I imagine some of the bigger mods wouldn't support it so I'm also going to try and add an override too (which simply prevents their ore actually appearing)

 

However, I'm not sure exactly how I'd replace ores that are already added to an existing world?

 

Basically all I need to do is find an ore which is on the list, and replace it with a specified ore. I'd want to be able to find the ore either by unlocalized name or ID - unless you know better ways? I want users to be able to add ores to a config in case there are smaller mods I've not included directly in the mod.

 

Any help is great, thanks :)

width=463 height=200

http://s13.postimg.org/z9mlly2av/siglogo.png[/img]

My mods (Links coming soon)

Cities | Roads | Remula | SilvaniaMod | MoreStats

To replace ore just after being generated you can subscribe to

PopulateChunkEvent.Post

. If you mean replacing ores in already generated world then I'd use

ChunkEvent.Load

, replace ores and mark this chunk as processed (and save it, we don't want to process already processed chunks every time chunk loads).

 

In config being able to input ID or NAME would be nice. In code you should work with IDs - compairing names (= string cmp) of every block in a chunk, that would be awful.

 

I have a feeling I somewhere saw similar project to what you're describing, are you sure it hasn't been already done?

mnn.getNativeLang() != English

If I helped you please click on the "thank you" button.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.