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. Click a file in the project somewhere. Eclipse has this habit of forgetting what project is open.
  2. Because 1.7 is FOUR YEARS OLD. It's fucking ancient. Update.
  3. No. Also your thread title is useless. A better title would have been "my player skills aren't saving"
  4. You never call this (based on the code you posted). Code Style Issue #3 You do not need this at all ever. All items need models and none of the information required to register one is private.
  5. ASM is java code that lets you modify java code while it's running. It's literally dangerous if not done correctly. But in the vast majority of situations you ever find yourself in, ASM is not needed. The order of things to try first goes: Own code (extending, implementing) Events (handle existing hooks) Reflection (access private values) Making a PR to Forge to insert new events (and then doing #2) Not doing anything at all (stop touching it) Starting a new project (I said stop) ASM
  6. Also note that anvils don't have durability the way items have durability. They have a probabilistic chance of going from "newly made" to "worn" to "damaged" to "gone." The falling action is also probabilistic: Number of blocks fallen * 5%.
  7. Please do not instruct how to use ASM on the forums. Doing ASM wrong leaves your code fragile and prone to breaking unexpectedly, especially when other mods get involved, and when Minecraft crashes there will be no evidence that its YOUR code that caused the problem. If you do not know how to use ASM already, then you should not be using ASM.
  8. The only mod that I know of that did it is GalactiCraft and they had to completely rewrite entire classes (in non-compatible ways) to do it.
  9. Suffocation only occurs when an entity is inside a solid block or under water. If it's in "air" (or what the game believes to be air) the amount of air isn't even queried. For example: You can't drown in lava. Try it.
  10. You need a custom IRecipe implementation. Check out Choonster's iron-to-gold helmet upgrade recipe: https://github.com/Choonster-Minecraft-Mods/TestMod3/tree/1.12.1/src/main/resources/assets/testmod3
  11. Look at the vanilla Fence, Ladder, Door, Fence Gate, or other similar block.
  12. You don't have to write a JSON parser. All you have to do is ask the existing JSON parser to get the values you want. https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/api/recipes/RecipeToolMold.java#L248-L265
  13. ...Or just shove your ItemBlock into the ModItems.ITEMS array? Like the guy these people are copying from does anyway? You literally don't need a second array, ItemBlocks ARE ITEMS, that's the whole point.
  14. Something like "mod.eot3000"
  15. Loot tables. There's a couple ways to go about it.
  16. I did something like this once https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/components/ComponentRepairOther.java
  17. Also, mod IDs can be up to 64 characters in length.
  18. You can't. The point of loot tables is to generate something when the dice roll up sixes. If you want it to be a Sometimes thing, look at how vanilla handles iron golem roses.
  19. With a null and no @ObjectHolder it stays null. I didn't say how to make it non-null just that it should be made so.
  20. Good, don't stringly type your code. http://wiki.c2.com/?StringlyTyped
  21. NBT data tags. https://minecraft.gamepedia.com/Player.dat_format#Potion_Effects
  22. See where it says null? Make that null something else.
  23. Your string fields aren't final. Second, they are null.
  24. A fix to what? What's broken? You haven't given us any information about how to diagnose what's wrong. All you've said is "doctor, it hurts."

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.