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. 1) Code is text (as are errors) so post them as text not images 2) Post your code
  2. Because no one wrote it. Welcome to open source development. All the json data files are already detailed on the official wiki, why would Forge have to do it again?
  3. Note: mods do not use ContainerBlock, so do not count on that when interacting with arbitrary block inventories.
  4. It doesn't have a constructor because the class is abstract (well, it has an implicit, empty, public constructor that you can't invoke). You need to either extend it or call new on the existing subclasses (all of which have public constructors).
  5. Chest contents aren't sent to the player unless the chest is opened. Otherwise, yes, you can do that.
  6. Yeah, in the development environment. You click run in Eclipse or IntelliJ and it does. Cadiboo's tutorial doesn't explain how to export because that's covered here: https://mcforge.readthedocs.io/en/1.14.x/gettingstarted/#building-and-testing-your-mod
  7. https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/block/SifterBlock.java#L29-L32 There's like a million of these threads, I swear I see a new one asking the same problem ("I can see through the world!") every week.
  8. isAlive is going to return false if the mob's health is zero...
  9. 1) Your "these mobs are excluded" block is irrelevant. You only care about players and zombies, which you have blocks for. Any entity that is not those things does nothing already, there's no reason to grab everything else (you're not grabbing mod added entities for instance!) and skipping them is pointless. 2) ZombiePigman extends Zombie, so that check is extraneous as well. 3) You're setting mob's health to zero, but the entity is not immediately made dead and removed for at least the next tick, but you aren't checking to make sure that the mob is still alive before doing your thing. 4) TranslationTextComponent (and applyTextStyle(...)) exists. Use it.
  10. "Structures" are what they say they are. They are features that use the Structure class and place blocks for things like village houses, mineshafts, shipwrecks, and other structures. I've looked into the code and barely understand it. You can see some of my fooling around (I've been working on trying to get Custom Ore Gen on 1.14, so my code is oriented in that direction) here: https://github.com/Draco18s/ReasonableRealism/tree/1.14.4/src/main/java/com/draco18s/harderores/world
  11. You've specified the forge marker and then you didn't use Forge variants. And instead specified all 40 variants manually. Forge would have let you write 11. Anyway: This error says that there is a texture specified as a reference (ie. "#side", starting with a #) and that texture reference hasn't gotten a definitive resource location. The model with that issue is minecraft:block/inner_stairs. The code you have posted does not include a reference to this model (or the other models generating an error).
  12. What D7 means is that an IBlockReader is not necessarily also an IWorldReader. If the object you get is only one and not the other, just assume that neighboring blocks are loaded.
  13. *Shrug* I included it in my advancements because vanilla included it.
  14. That gets tricky. The only thing I can suggest is doing what I did back in 1.12: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/util/LootUtils.java I have not updated this class and it does some reflection magic to get access to things, but it will let you directly modify loot pools. Or at least, give you the information necessary to write such a hook.
  15. Weird, it redirects to https://mcforge.readthedocs.io/en/1.13.x/ for me
  16. Going to: https://mcforge.readthedocs.io/en/ Still leads to 1.12/1.13 (one would expect that regardless of what language you were in, it would take you to the current version) and 1.14/1.15 do not appear in the dropdown. https://mcforge.readthedocs.io/ works as expected though.
  17. Because you're waiting for RenderWorldLastEvent. As indicated by its name, it's last.
  18. Or: don't worry about it. Players have a general acceptance that when chunks are unloaded, nothing happens there. As an example, lets say that your players make a server and zero players are online for a period of 8 hours. How much ash should build up?
  19. We aren't stopping you. Its not illegal. It just might not be wholly accurate.
  20. pop already resets translation. That's the whole point of the pop (push/pop "the matrix" which refers to the transformation matrix, which covers translation, scale, and rotation as well as projection (roughly, the field of view)).
  21. 1.12 is no longer supported.
  22. If you spent 15 seconds looking at the net.minecraft.items package you'd notice that all the classes are FooItem, not ItemFoo. that is You want SwordItem not ItemSword.
  23. (Similarly some things may only exist in the dedicated server distribution, but is going to be a much, much shorter list that is largely irrelevant for modding).

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.