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.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. Because you asked for a field named "maxDamageArray" not "field_77882_bY" which is what it will be in a runtime (not development) environment (at least, in 1.7.10, I can't find the mappings for 1.8.9 as quickly).
  2. Been a while since I looked at it, TBH.
  3. replaceBlocksForBiome is intended for replacing the top 4 blocks of stone with grass or sand (or at least, that's what Minecraft uses it for). The bottom bedrock is handled by the chunk provider the last time I looked at it.
  4. Oh god. Why is your render registration code inside your item? That will absolutely positively crash the server, it does not give a shit that you only call that method from the client, the JVM still needs to load the class and validate it and the mere existence of a reference to a client-side class will cause it to attempt to also load that class. Why are you using getUnlocalizedName()? The unlocalized name shouldn't be used for anything other than language localization. You did not include your JSON
  5. You will want the data in two places. Place 1 is where it gets read from the config file and stored. I would store this in my ServerProxy (or CommonProxy, whatever you want to name it). These values will still exist when the player logs into a server, but won't be used unless the player starts a local server. Place 2 is where the client would store the values it receives from the server and uses for display. I would store this in my ClientProxy. Note: this is a separate field that is public in the ClientProxy along side the public field in the ServerProxy. These client-side values would be overwritten every time the client receives the info packet the server sends on login (sent in the PlayerLoggedInEvent from the sever). The cool thing is, you don't have to do anything special for this setup to work for a singleplayer game: the single player instance would send a packet to the single player client and the values would be updated correctly.
  6. That's because both of those factors are handled by EntityBase#onEntityUpdate They check the current block that the entity is in, and if that block's material is water, you get pushed (and get a drown meter). If it's lava, you get set on fire.
  7. On 2) TileEntities do no exist in your inventory. In your inventory everything is an item stack. You will need to also add NBTtags to the ItemStack for the block when it is in ItemStack form. Crafting and such will need to have custom recipes (look up IRecipe). On 1) You need to override getActualState() IIRC
  8. My suggestion: Stop using Clojure.
  9. Technically, most mods are different client-to-server because of rendering code and other client-side-only code
  10. By the way, you won't want to overwrite the values from the client's config. If they connect to a server (receiving the server's values), then disconnect, and load their own single player game, the config values should be used at that point. Otherwise you'll have a disparity between logging into the server first, then playing single player, than playing single player directly.
  11. Oooh, alright. I knew that the setting lowered the chance of the particle spawning, but I thought it lowered the cap, too.
  12. GL_QUADS is bad for performance because it requires triangle computation on the CPU.
  13. No. Its global and modified by the game settings. Low Particles reduces the count (though I don't know by how much).
  14. Its all about how you read the data.
  15. You can read and write NBT files outside of the Capabilities and WorldSavedData system. It's a file like any other, run through CompressedStreamTools, IIRC.
  16. Sure exploding torches. Whatever you want.
  17. Oh god, if you're going to make your own block, don't use the vanilla torch item. That's dumb. Just remove and replace the recipe.
  18. You can also use FMLInitializationEvent#getSuggestedConfigurationFile() which you could manipulate to get the config directory There's also Loader.instance().getConfigDir()
  19. Then World#getSkyLightSubtracted() IIRC.
  20. Yes, your save location is faulty because it is inside the JAR file. You need to point to a location that has write access.
  21. Draco18s replied to a post in a topic in Modder Support
    More or less correct. The problem is not the code running, but the class loading into the JVM.
  22. Draco18s replied to a post in a topic in Modder Support
    Let me quote it again.
  23. Draco18s replied to a post in a topic in Modder Support
    Its not. You are registering your recipes wrong.

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.