Skip 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. Show your item class, if you have one, and your block class. The JSON files are pretty much irrelevant here.
  2. Drop everything inside the item model's "display" tag. You don't need any of that. Also, don't PM me. I am not the only person on this forum who can help you.
  3. Well...one of the parameters passed the function is a World object. World objects can either be client side or server side and you can tell by querying World#isRemote.
  4. I know that the world isn't actually changed, I was point out that it already had code for taking a "only X time remains" value and converting that into a fluctuation 0-1 value. You're not interested in what that value does you're interested in how that value is calculated. Anyway, if your light is changing to "not bright" but the actual lighting isn't updated. Well... Too bad, because there isn't a fix for that. Trust me, I've already tried having a block that either emits light, or it doesn't. Getting Minecraft to recognize the fact that the block no longer emits light requires changing the block to a different block. Not just changing state, it has to be an entirely different block.
  5. That won't work, the crash occurs when your class is loaded before any code is executed. The JVM has no way of knowing that that line will never be anything but false and so it has to prepare to load the Minecraft class. In order to do so it needs to check "can I load this class if that line is ever executed?" and it fails to find the Minecraft class on the dedicated server, then crashes informing the user as such with a ClassNotFoundException. http://mcforge.readthedocs.io/en/latest/concepts/sides/
  6. if(the active side == side I care about && active hand == hand I care about) { //do something }
  7. @Mod annotation. Add dependencies="after:foo_bar"
  8. The function is called four times. Once on each side for each hand. Two sides, two hands, four calls. You need to check what side and which hand and decide based on that information what to do. You want to pick one combination and only send the chat message on that combination.
  9. This isn't a chat room, so I don't particularly care how long it takes you to do whatever. I may not even be the person who fixes your problem.
  10. TileEntity te = world.getTileEntity(pos); either: te.getCapability(...) or: ((IInventory)te).setInventorySlotContents(...)
  11. Oh, probably for doing things like code hinting, error checking, and development/debug builds. Nothing special. As for gradle, that's what the dependencies { ... } block is for. If it's bitching, show the error.
  12. You probably need to do something different in your code. Try switching lines 33 and 37.
  13. This one's easy. Do dick with it. No really, stop messing with its rotation. The EntityItemRenderer already rotates it based on how many ticks old the EntityItem is, so all you have to do is nothing but let it age up (getting it to not rotate is harder!). Disable lighting, usually, but you're already doing that. Try not disabling lighting.
  14. For 1.10, look at how I handled it here: https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/util/RecipesUtils.java#L129 Don't worry about what the function is doing but rather on how its doing it.
  15. Vanilla inventories also still use the IInventory system, so if the capability thing doesn't work, you can cast the TE to IInventory.
  16. For reference, Minecraft.getMinecraft is client-side-onlyl and onItemRightClick is common code. This will crash the dedicated server.
  17. There is already a vanilla effect that flickers when its timer is about to run out. Take a gander at its code.
  18. Start new game (Creative) -> Travel to the nether -> hit F3 -> Punch your way to the ceiling Seriously. Learn how to figure this shit out for yourself. It's probably also on the wiki.
  19. You're already using ModelLoader.setCustomModelResourceLocation. The only problem is, this class is client-side-only, which means you need to reference it only through your ClientProxy class. You should also do it inside the ModelRegistryEvent.
  20. Right click anywhere in the Package Explorer window. Build Path -> Configure Build Path. Libraries tab. Add External Jars.
  21. We would like to see the whole main class and the whole class where this line is in order to make sure that it is being called.
  22. https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/util/AdvancementUtils.java#L20 Here's an example. It does not point to the same object you're interested in, it just shows how to use ReflectionHelper.
  23. Override Item#getDurabilityForDisplay

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

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.