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. You can't set the default state to the default state: there is no default state yet. You want getBaseState()
  2. Use Capabilities. And EntityData was never intended for mods to store their own data in anyway.
  3. You want a performance improvement on A*? Jump Point Search. The [2] reference is a great resource as well.
  4. Did you mark your event with the correct annotation?
  5. Look for other uses of the method. Right click -> References -> Find in Workspace
  6. The List Separator is always a comma, with the exception of listing numbers when the local's decimal separator is a comma, in which case, use a semicolon. https://stackoverflow.com/a/14925131/1663383 Note that you can translate this just fine with the lang files by having something like: list_separator=, And just doing a translate on that key when you need to combine things.
  7. Draco18s replied to leosavi25's topic in Modder Support
    https://github.com/leosavi25/Modding/blob/master/src/main/java/com/leosavi25/mod/FactoryCraft.java#L32-L33 ADD SMELTING FOR MY ITEMS. CREATE MY ITEMS. THIS IS DEFINITELY THE RIGHT ORDER.
  8. Draco18s replied to leosavi25's topic in Modder Support
    Oh it definitely is. Especially when it changes because "I forgot to call Blocks.Init()" and we have no idea what those snippets even look like now.
  9. Draco18s replied to leosavi25's topic in Modder Support
    "Doctor, it hurts. What's wrong with me?" Please describe the actual problem: what is the error you are getting, what is it that is not happening. Use your words. We aren't telepathic.
  10. Draco18s replied to leosavi25's topic in Modder Support
    #AlwaysShowYourCode
  11. Go into your 1.8 workspace, find addVertexWithUV where you are using it. Then
  12. I think they mean if they wanted to list out all of the biomes at a block position. For most places, that will be 1. Along biome borders, that would be 2. Where two biomes meet up with a third, there would be 3. Conceivably there might even be 4. So you'd need to translate the "Biomes at this location: ..." text along with translating the biome's names, along with having list grammar ("A" "A and B" "A, B, and C").
  13. You can, but you should use loot tables instead.
  14. False. I have a block that is Material.WOOD and it works just fine.
  15. Right click -> References -> Find in workspace
  16. Find a place the method was used in vanilla code. Locate that same place in 1.8.9 Figure it out yourself.
  17. world#getWorldTime world#getTotalWorldTime And one other I can't remember the name of at the moment. One tells you the game's "date" (non-resetting value that increments by 1 tick per tick and is modified by the /time command) the other gets you the curernt "time" (midnight to midnight) and another gets you how long the world has existed (1 tick per tick, does not get modified by sleeping or /time).
  18. You're wrong.
  19. With difficulty. Here's how I modify the loot tables: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/farming/FarmingEventHandler.java#L362 Note that this makes calls out to a library function, the important one is probably this one: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/util/LootUtils.java#L87
  20. No, priority is what order event handlers (mod code) are executed. Without specifying (or specifying the same priority as another mod) means they go in the same order that the mods were loaded. Phase is whether the event is fired before the vanilla code executes or after the vanilla code executes.
  21. Doing that requires packets. But you should not need packets for this. There are already events for the player that run server side.
  22. Yes, it runs every frame, not every tick. Rendering must always happen every frame.
  23. Draco18s replied to leosavi25's topic in Modder Support
    That is not what D7 said. Do not create your items in a static initializer. He said nothing about having static fields. He said static initializer.

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.