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. Caused by: java.lang.RuntimeException: Encountered an exception when loading model definition of model blockstatetraining:blockstates/lighted_glass_block.json Caused by: java.io.FileNotFoundException: blockstatetraining:blockstates/lighted_glass_block.json Your modID is "blockstatetraining", but your assets folder is named "bst"
  2. Inserting a list into itself seems like a good plan.
  3. Not neccessarily. The error is only the surface error: - It can be caused by a missing block state file (the game still fails to find the variant) - It can be caused by a malformed json file (the game still fails to find the variant) - It can be caused by an incomplete json file (as you suggest, the game still fails to find the variant) - It can be caused by a missing or bad model file (e.g. something the blockstate file says to load, but the game fails to find, the game still fails to find the variant) The surface level error "variant failed to load" is meaningless until you dig deeper to find the "Caused By" line following it.
  4. Its handled by this method: @Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] { /*The properties you want*/ }); } BlockColored already declares this method and the color property.
  5. MessageContext has everything you need and want. Additionally, you have ignored the GIANT WARNING on the documentation page about networking:
  6. This will always be true. Minecraft, the class, does not exist on the server.
  7. getMetaFromState is only used by Minecraft to save the world to disk. "How you've always done it" is in the form of metadata: magic integers ("why does 1 mean north for ladders, but south for furnaces? And white for dye and black for wool?" because magic numbers, that's why). In any case, the enum you have in your class file there is useless, get rid of it. All it is is a duplicate of the EnumColor supplied by vanilla minecraft (and used by BlockColored). This is likely the source of your issues.
  8. Caused by: java.io.FileNotFoundException: dl:blockstates/coal_compressed.json Why is your blockstates folder not inside your assets folder? https://github.com/modles/Dronelander/tree/master/resources
  9. Ok so, here's what you need to know: 1) Metadata is an implementation detail dealing with how the block serializes to disk as well as the metadata of the item form (however these two values may not be the same: modders use the same values for simplicity's sake, but nothing in the code requires it). That's it. 2) The properties handle how the block is dealt with at run time, including its blockstate.json file (represented by strings) 3) The blockstate,json file dictates what model to use (and any state-based overrides) 4) The model dictates what texture(s) to use. 5) The blockstate state based overrides can alter the texture
  10. I'm sure one of the methods in ItemArmor will be of use. There aren't that many, so give them a look, then override it in your own armor class.
  11. Yeah, there's not really a Good Way To Be Sure. :\
  12. You'd want to make sure that the food stats isn't your own before replacing it. Of course, this means that if another mod overrides yours in the same way after you do, and then the JoinWorld happens later without resetting it to the vanilla copy, your code would then wrap the other mod's in another copy of yours....
  13. *cough* 32766. 32767 is the Wildcard Value ("match any").
  14. You should not use ternary operators for getCapability, it makes it pointlessly hard to read. Second, the default case should not be null, you should call super.
  15. Burn everything to the ground and start over from scratch. It'll be easier.
  16. Show your createBlockState method.
  17. So wait, you made a change, it "didn't work" so you undid that change? Also, why are you setting your item's registry name prefix for the Journey mod's items to the API mod's modid?
  18. Yeah, there's a reason I have this class: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/api/internal/CommonContainer.java
  19. Note that statemappers are client side only. (Your ModelRegistryEvent handler should already be client side, of course)
  20. I can understand why people might want it, but I do fall into the "no, just save stuff" camp.
  21. *Coughs and notes that Eclipse asks you first and one of the options in that dialog is "always save"*
  22. No. We should not be telling people to do this. Especially people like jredfox.
  23. By the way, if your slayer.api package is meant to ship separately so that other mod authors can write plugin mods, your API will crash: https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/slayer/api/item/ItemMod.java#L36 It has a hard reference to your journey package. What is this even used for? https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/journey/JourneyItems.java#L153 You should setup and use a gitignore file, these files: https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/journey/._JITL.java are useless and not necessary to include in your repo.
  24. Do you know what events are? No? Do you know what a newsletter email is? Ok, good, that's an event. SubscribeEvent is how you tell the newsletter organizer that you want to receive the email. Now you know how events work.

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.