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. This is probably null when you call it, you'll have to show more of your code (preferably as a git repo) or figure out why yourself.
  2. The mystic energies of the ether are telling me that your code is wrong on line 41 of VisionaryItems and you should change it.
  3. How to do it right: Create a new folder Add all the files that Forge ships with Run the forge setup commands Open eclipse and say "change workspace" Point it at the new folder
  4. Stats is more "how far have you run?" "how many dirt blocks have you harvested?" and so forth.
  5. Probably something like this: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/ores/client/SoundWindmill.java#L32-L44 But it doesn't seem to me like a positioned/moving sound is what you actually want. It looks like you want an unpositioned sound (always plays at full volume).
  6. Your item json can't be empty (but it CAN point to your block model which can be empty).
  7. As far as I know, structure blocks can't be used for mod structures. Or at least, not yet. I've been digging into the structure code myself and I haven't yet figured out where the hooks are that deal with loading the structure block and placing its template into the world (I also don't need this capability, so I've been picking at other parts of the code).
  8. ...which needs to return an instance of a class that extends IRecipe<?> from one of its methods.
  9. mc here is almost certainly the result of calling Minecraft.getMinecraft(), which won't work on a server (it'll crash the server).
  10. No. Use loot tables. https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderfarming/EventHandlers.java#L52
  11. Yes, but keep in mind that replacement is "whichever mod loads last."
  12. Ah ha, I figured something out. Structures need to be sent to biomes as both a structure and a feature or they won't generate. Still more work to do, but that part finally starts making sense.
  13. Yeah, I've gotten that much myself. Though I'll note that Structure<?> and Feature<?> work just fine for the object holder annotation (and as far as I can tell, both use the same registry; i.e. RegistryEvent.Register<Feature<?>>). I've also gotten features working just fine, eg: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/HarderOres.java#L117
  14. Anyone know how these work? I've been poking at the code and trying a few things, and while I have gotten the game to call hasStartAt(...) (and a bit further, such as having MyStructure.Start get init'd), I haven't been able to determine that any blocks are actually placed in the world. I'm trying to work out how the system functions so I can help Lawremi update Custom Ore Generation, which relies on being able to place ore blocks from code (not structure files) as its has its own systems for determining what goes where, but at the moment I'd be happy to just get any of these structure functions that have a reference to World (addComponentParts, handleDataMarker, whatever) get called at all.
  15. No, because it bypasses the loot table system. That's why that PR exists and isn't merged, see Lex's comment.
  16. Hmm, not sure then. I've not tried to do something like this.
  17. Make two recipe files Use the json system? "criteria": { "has_planks": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ { "tag": "minecraft:planks" } ] } }, You don't need to do that. Just create the json file and call BlockTags/ItemTags.getCollection().getOrCreate(...) Its right there in the docs.
  18. No shit, Sherlock, that pull request is still open. The entire reason I linked it is because the problem you're having is because that event does not exist and there's why.
  19. Code Style #3, I'd be willing to bet you didn't tag your item class with IHasModel (and this is one of the reasons its stupid).
  20. Also make sure you registered it in the ModelRegistryEvent.
  21. I'm not sure what's up, then. I pretty rigorously made sure I got things working when I updated stuff.

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.