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. Try using your brain next time. And your awesome skills you have with Java. (Hint hint: learn Java first)
  2. Because this: public static CommonProxy.proxy; Is not a proper field declaration. public - good static - good CompnProxy.proxy - static reference to a field in another class, BAD
  3. Similarly the creative menu will bypass it.
  4. The error you posted is an error you will only get in dev, because it's Mojang saying that your account profile (and therefore, skin) doesn't exist. It has nothing to do with textures.
  5. Yes. You're just doing it wrong.
  6. If it's in /blockstates it's a blockstate file and follows the blockstate format. That's where multipart goes. If it's in /models it's a model file and follows the item model format. These are the "parts" that the multipart refers to.
  7. For meta/state conversion, here's an example. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/block/BlockMillstone.java#L53-L61 Note that I'm using a custom enum property in place of BlockDirectional.FACING for my specific purpose. Two-property example https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/block/BlockAxel.java#L65-L77
  8. Using an old 1.10 tutorial. The code I gave you works in 1.10.2 just fine.
  9. Huh, well. Ok then.
  10. That is not relevant. ======================= On this line: https://github.com/geekman9097/Logisticraft/blob/master/src/main/java/geekman9097/logisticraft/init/ModItems.java#L42 Don't reconstruct the model resource location like that. ModelResourceLocation res = new ModelResourceLocation(item.getRegistryName(), variant); is more than sufficient.
  11. Sheep's onInteract isn't even used. Forge patches some code to use the IShearable interface instead. I just knew that the method I wanted to find was in the Sheep class. And don't just do stuff because something else did it. Look at what the code is actually doing.
  12. java.lang.NullPointerException at com.clowcadia.mob.Blank.processInteract(Blank.java:20) ~[Blank.class:?] world is null because you never assign anything to it: World world; You shouldn't even have this field as Entity already has a world object field, it's (unsurprisingly) called worldObj .
  13. Also don't use GameRegistry.register(Item, ResourceLocation). Use item.setRegistryName() and GameRegistry.register(Item). Also set your unlocalized names to include your mod ID, like this: item.setUnlocalizedName(item.getRegistryName()).
  14. No. Wrong. Not at all. Completely false.
  15. http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1291999-unique-artifacts-powerful-randomly-generated-items https://github.com/Draco18s/Artifacts/ http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2451299-reasonable-realism-its-a-pack-its-a-mod-it-makes https://github.com/Draco18s/ReasonableRealism http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2378743-micromod-extendable-ladders Didn't search very hard, did you? I link to my github all the time here. Searching my user name on curse or Minecraft Forums should bring up my threads.
  16. Good. Because I am a god damn wizard.
  17. Me: *Open Eclipse* Me: *Find EntitySheep* Me: *Search for "shears"* Me: *Find a method called processInteract* You: LOL, THE ASSKICKING Yes.
  18. You know processInteract is an entity method you override, not an event, right? And that it has three paramters, right?
  19. Yes. How will vary by event. usually something like event.getEntity() or event.getPlayer().
  20. See my post just above yours.
  21. "layer0": "parallelworlds:items/nightgem" Magic
  22. No. Do not extend BlockContainer.
  23. A custom state mapper would do it.

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.