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. TileEntityFurnace All smelting times are the same. (Unless you mean the fuel burn time).
  2. Funny. You don't say. Try reading this post again:
  3. YOU aren't, but SOME OTHER MOD COULD BE. That's the distinction: someone else might chunkload something, and the interaction with your code causes it to break.
  4. You can still chunk-load in SSP and the player doesn't need to be in the same dimension, which is the same as 0 players online.
  5. Surprise, that's what a tick handler is for.
  6. Don't ever store references to entities like that. If a chunk gets unloaded and then reloaded, the entity you see is not the same as the one you've saved a reference to. This is why world.getEntitiesInAABB exists.
  7. You supply a different capability depending on the side parameter. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/entities/TileEntityMillstone.java#L166-L193
  8. That entirely depends on a race condition and exactly what you're doing. But yes, it would, eventually. With a ConcurrentModificationException.
  9. Just FYI, making a rails block that goes on the sides and bottoms of blocks won't automagically make minecarts use them properly.
  10. I did not know that. You can't, for example, interact with a TileEntity from a separate thread? TileEntities exist in the world, so no. It's called "two separate functions."
  11. I'll look around for that option in Eclipse, but the last time I did it, it definitely didn't pause the client thread. Mildly annoying, but workable.
  12. FYI you know there's both a client thread and a server thread and that this method is only called on the server and therefore the client thread isn't paused, right?
  13. https://en.wikipedia.org/wiki/Modulo_operation
  14. Gosh, I wonder what this part does. if (this == MobEffects.POISON) { int j = 25 >> amplifier; return j > 0 ? duration % j == 0 : true; }
  15. ModelLoader.setCustomModelResourceLocation(...)
  16. ModelLoader in preinit. Don't use ModelMesher, there are problems with that method.
  17. Oh, so you're adding a potion effect to the player every tick. THERES YOUR PROBLEM. Potion duration actually means something: it's a timer. Every time the potion duration is durationRemainting % 20 == 0 the effect (healing, damage) activates and is applied. If you constantly reset the potion duration then those effects never trigger.
  18. There was a mod for 1.7 that did this, but I can't remember the name.
  19. You have a 1, 2 at the end of your new Object[] array. You cannot have those there, what are you trying to do with those? Also, you do not need new Object[] due to the magic of varargs.
  20. The line above the "at" is the super important very special, extremely crucial line that tells you in English what the problem is.
  21. If you absolutely need to reference another mod's files, you need to put that code into a separate class, put the relevant calls into a function, and then call that function inside an Loader#isModLoaded(id) check. Ah la https://github.com/Draco18s/HarderStuff/blob/master/src/main/java/com/draco18s/ores/OresBase.java#L754-L769
  22. "Harvestable" requires a tool to be involved. Tools can only be used by players. Ergo a player object is needed. Q.E.D.

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.