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. "OreDictionary.WILDCARD_VALUE" is a string, not a number, and it can't be parsed as a number. Duh. You either need need to use "forge:ore_shapeless" as your recipe type or use "data": 32767
  2. Which part are you having trouble with? Displaying a 2D sprite as a visual model? or Finding all nearby entities? (the aura)
  3. This is where the code thinks it exists at. When you compile, this is where it's put. Just because the file is located in a different place does not mean anything. Java likes to have the file structure match the package structure, but the two do not have a hard relationship. (Eclipse, and any other decent IDE, should be throwing a warning or error on this line and you should fix it)
  4. What is this? Why are you creating a new one every frame?
  5. 7. Cancel the event 8. Reduce the used item stack's size
  6. So close. So very close. How is this supposed to return the same item with 1 more damage? You never pass in the original item stack so how do you know what the damage is? This is pointless. getContainerItem isn't called unless hasContainerItem returns true already. Oh look, the original item stack. Call damageItem() on it and return it (though you should probably clone it first...).
  7. "Broken_Saw" and "Ingot_Saw" are two different items, yes? They're different instances of the class, you can distinguish them. Or are they the same instance, with different damage? You can still distinguish them. In either case, storing the return of the default implementation of hasContainerItem (return false) in the class is never ever going to do what you want.
  8. Absolutely not. You need to override hasContainerItem and getContainerItem in your Saw class.
  9. Milk Buckets use the Container Item functionality. That should work for most recipes.
  10. That's the only way to supply a different unlocalized name for each metadata of the item stack.
  11. No it doesn't. Yes, Forge is installed. No, Forge is not what crashed. Even so, you should have posted in Support and Bug Reports. Not the section under "Mod Developer Central" You ran out of memory. Allocate more.
  12. Your in the wrong place. This forum is where people who are making mods come for help making mods. That said: Either: You are trying to load a client side mod on the server This mod is badly written and you should report it to the author
  13. I think he's looking for a way to detect the player replacing a block of water with a block of dirt.
  14. Cascading chunk gen happens when you attempt to place blocks into a neighboring chunk that hasn't been created yet. Vanilla avoids this by offsetting the generation by +8 and +8 (as the neighboring positive X and Z chunks are guaranteed to already exist, and won't cause them to get generated)
  15. And this is why I thought there was a 3 character minimum, but I've already had that conversation with Lex.
  16. Don't use AT when you can use Reflection. Reflection is cleaner.
  17. Correct. And this is why I have my registry code done up the way I have. https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java#L64-L71 I search for all valid states of the block (note that this method is not good for things like leaves which have states that don't appear in the inventory) and register an item model for each.
  18. You might be right. I haven't actually played in a while.
  19. No, it does not. Because item models aren't block models. They are registered separately. You want your item variants to have textures? Register your item variants to have textures. https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java#L100-L103
  20. this.targetTasks.addTask(4, new EntityInfestedEnderman.AIInfestEndermanAttack(this)); Just because it's a static class doesn't mean you don't call new.
  21. Isn't CTRL the key used to sneak? Check if the player is sneaking.
  22. Redstone materials break instantly, yes. They bypass the hardness check.

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.