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. Christ. This isn't that complicated folks. Step 1: Override these methods Step 2: Call these methods whenever the data changes and the client needs to know about it
  2. You need custom ingredients as well as a custom recipe. the _factories.json file maps the json names (e.g. "crafting_shaped") to an IRecipe implementation. Check out Choonster's test mod: https://github.com/Choonster-Minecraft-Mods/TestMod3/blob/1.12.1/src/main/resources/assets/testmod3/recipes/_factories.json
  3. No, you execute the code that is currently on the armor in the packet handler (but you need to check that the player is wearing the armor first).
  4. stack.getTagCompound() is not guaranteed to return anything.
  5. If you iterate from 0 to size, and remove one, you'll skip over another. If you want to be able to modify the list while you're looping over it, you should use an iterator.
  6. Packets. ((EntityPlayerSP)p) You can't just do this. This code will crash a dedicated server and even in single player it's reaching across logical sides. You must have the client tell the server "my user pressed this key" and the server needs to be the one to figure out what happens.
  7. Then there's still a problem and you still need to debug it. "Not working" tells us nothing.
  8. You haven't done this yet. I'll keep quoting this until you do it.
  9. You haven't done this yet.
  10. Ok, what about that line?
  11. Edits to posts are almost completely unnoticed. They don't bump the thread, they don't mark the post as unread, and when someone sees a post with an error taking up 90% of it, they're likely to miss the "oh, nevermind" at the bottom. It also didn't help that I offered a suggestion, you said "yeah, I thought so too" and made no comment about it being solved then.
  12. Oh. Try this: Replace "item": "minecraft:stone" with "item": "minecraft:stone","data":0 Stone is a metadata item and so just the item name isn't sufficient enough to fully specify the recipe.
  13. Because I totally would have noticed that after there were new replies...
  14. The only thing that can be null at that line is PacketHandler.INSTANCE, meaning your network stuff hasn't been set up properly.
  15. You can't register items to the OreDictionary if those items aren't registered with the game. You have to wait until after the RegistryEvent<Item> event (or do it inside that event when you register your item).
  16. By "doesn't work" do you mean you can't craft it, or that it doesn't show up in the recipe book?
  17. That means you have an infinite loop somewhere. Start using breakpoints.
  18. Common OreDictionary Names All OreDictionary names for Minecraft items and blocks can be found in net.minecraftforge.oredict.OreDictionary. A full list will not be included here. Common prefixes already used in the OreDictionary include ore, ingot, nugget, dust, gem, dye, block, stone, crop, slab, stair, and pane. Common prefixes for modded items include gear, rod, stick, plate, dustTiny, and cover. Common suffixes in the OreDictionary include Wood, Glass, Iron, Gold, Leaves, and Brick. Common suffixes for modded items include the names of metals (Copper, Aluminum, Lead, Steel, etc.) and other modded materials. http://mcforge.readthedocs.io/en/latest/utilities/oredictionary/
  19. 1.7.10 is no longer supported here. Update.
  20. Usually every Minecraft update.
  21. Yes, just register the items with the ore dictionary.

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.