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. Oh jesus fucking christ. I even GAVE you an example of how to use it. It gives you back a typed object that has all the publicly accessible objects you'd want for an object of that type. Stop casting it to Object.
  2. Sorry, it's called "get" Alternatively you can use the ReflectionHelper class. Although I do advise referencing things by name (which means you'll have to use MCPBot to get the SRG name as well) rather than by index. The index might change unexpectedly. For example: DamageSource damage = ReflectionHelper.getPrivateValue(LootContext.class, context, "damageSource","field_186503_f");
  3. More reflection. Specifically getValue . And if the method you need to invoke is also private, you'll have to use invoke
  4. public boolean isOpaqueCube(IBlockState state) { return false; }
  5. Is it a variable? Access it with reflection. Is it a hard coded value? Tough luck, can't do it.
  6. Sorry, thought they were.
  7. Ah, yes, you are correct. I had assumed that if the entity wasn't null, then that method was probably safe.
  8. So it errors on d6 = (double)(blockpattern$patternhelper.func_181117_a().getY() + 1) - entityIn.func_181014_aG().yCoord * (double)blockpattern$patternhelper.func_181119_e(); ? And I mean that line exactly. Because if so, there's literally nothing there that could be null: every object referenced on that line has already been referenced on a previous line.
  9. Your lang file does not contain an entry for cheese: https://bitbucket.org/kitsushadow/forgecraft/src/0c6cb00316b3d00b05a01a68c11c7a3ec042e8f9/1.10.2/src/main/resources/assets/forgecraft/lang/en_US.lang?at=master&fileviewer=file-view-default This asset directory is wrongly named and nothing inside it will be used: https://bitbucket.org/kitsushadow/forgecraft/src/0c6cb00316b3d00b05a01a68c11c7a3ec042e8f9/1.10.2/src/main/resources/assets.forgecraft/?at=master
  10. No where did you register a renderer. That only tells the game "I am a thing that exists." It doesn't magically know about your fox.png file or what to do with it.
  11. Show your registration code.
  12. Caused by: java.io.FileNotFoundException: ftl:models/item/gooseberry.json
  13. ...and which line of that stupidly large method is line 158? Look at that line. Find the thing that is null. Figure out why.
  14. If its not syncing with the server, you need to make it sync with the server. Usually involves packets.
  15. 1.7.10 is no longer supported by Forge
  16. intellicraft:items/titaniumingot != intellicraft:item/titaniumingot
  17. Why are you not using Capabilities?
  18. Just draw something else over the top. I do something similar here: https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/industry/client/gui/GuiContainerFilter.java#L67-L71 It draws a section of the gui texture I already have over the slots (and behind items) any time the TE says that it doesn't have any filters (i.e. your "when some condition is true"). The visual ends up looking like this: http://vignette1.wikia.nocookie.net/reasonable-realism/images/7/73/Filter_no.png/revision/latest?cb=20150419162009[/img]
  19. No idea. You might be trying to do something that isn't really supported by the existing hooks.
  20. Subscribe to LivingUpdateEvent.Pre and cancel some.
  21. ...give them a speed modifier attribute? It's what the Speed/Slowness potions do (mechanically, they also do other things like particles).

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.