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.

Black

Members
  • Joined

  • Last visited

Everything posted by Black

  1. Good Evening, I am currently working on a mod that adds a tree that grows spawn eggs for each mob with spawneggs in the game at runtime. Why? Well, just to learn java as I come from C++ and vb.net and to have some fun. However the following problem presented itself to me and I seem, at least up to this point, incapable of solving it. As I simply check the EntityList.entityEggs HashMap and change the colour and statistics of the BaseTree based on the Itemdamage, I do not know all the names before compile time. Or to be frank, I cannot know them, as it generates a tree for any mob of any mod that is added. With the change to 1.7.2/1.7.10 you can name objects by means of language files. And unfortunately I have never worked with those before so I don't know how to change them in runtime. I searched quite vehemently but either I am as blind as a blind goat, or I didn't find anything worthwhile. The only current possibility I see is writing to the file by means of a FileWriter and hoping I can get the minecraft source code to reload the names after I adjusted them. If necessary by overwriting one or two classes. But, I am reluctant to do so and am wondering if Mojang or forge implemented a method I overlooked to do so without the need of a feature that would normally be used for saving. Most likely the solution is quite obvious and should that indeed be the case my apologies for the trouble. Greetings, Black P.S.: I suggest adding the word 'Mojang' to the spell list as it currently suggests I change it to the word 'Mekong'.

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.