Jump to content

Andronomos

Members
  • Posts

    16
  • Joined

  • Last visited

Recent Profile Visitors

12858 profile views

Andronomos's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Thank you. Offtopic: Wasn't sure my post went through, I received an error page with error code EX1062 when I submitted. I've been seeing random error pages when trying to load pages on the site. Last night I received a database connection error.
  2. What was Item#onUpdate replaced with? I am unable to find it or any suitable replacements in the item class. It also doesn't appear to have been moved to another class. I am creating an item that applies a potion effect to the player as long as the item in in the player's inventory (and turned on). Is this no longer handled by the item?
  3. In an effort to avoid having to create 40+ textures in my mod I am attempting to rely on overlay textures. I've figured out how to get an overlay texture working the problem I'm facing now is how to blend the overlay with the base texture. Specifically, I want it to be blended using multiply. Is this possible? I haven't had much luck finding information on the subject. Mostly irrelevant search results or conversations on changing item colors similar to how leather armor is dyed.
  4. Thanks for the tip, I will look into how to do that.
  5. Yep, that was the problem. I was using the same world when debugging the mod and I had added new blocks and changed their registry names multiple times. Thanks for all your help!
  6. I figured as much. I mean the error was pretty self explanatory, I just didn't know exactly how to fix it. Thanks so much, I had no idea you could include the path in the name. It's working perfectly now. Here I was about to give up thinking it wasn't possible. Now I just need to figure out Data Generators so I can create my models automatically, lol. Offtopic but is there a way to specify the order of Items in the creative menu? I have all my categories of blocks in a single tab and they are all out of order. I assumed the order was based on the order they were registered in.
  7. Thanks for the info. I looked into that but haven't been successful yet. I'm getting this error: Exception caught during firing event: Attempted to set registry name with existing registry name! New: blockpalette:metal_1 Old: blockpalette:/metal/metal_1 Here's my ItemList class: public class ItemList { private static Item.Properties ITEM_PROPERTIES = new Item.Properties().group(Blockpalette.BLOCKPALETTE_TAB); public static final DeferredRegister<Item> ITEMS = new DeferredRegister<>(ForgeRegistries.ITEMS, Reference.MOD_ID); //Block Items public static final RegistryObject<Item> METAL_1 = ITEMS.register("metal_1", () -> new BlockItem(BlockList.METAL_1.get(), ITEM_PROPERTIES).setRegistryName(Reference.MOD_ID, "/metal/metal_1")); } I'm assuming I need to call the setRegistryName method before I register the BlockItem but I'm not sure how to do that with a RegistryObject and a DeferredRegister.
  8. Thank you, that was the information I was looking for. The only reason I wasn't 100% sure is because I had asked for help elsewhere and was told my JSON was missing the correct pathing but I couldn't for the life of me see anything wrong with it.
  9. I'm working on a decorative block mod for my personal use. The blocks will be split into categories. To that end I am trying to organize all my block/item models into sub packages. I'm relatively new to Minecraft modding and java in general but after watching a few tutorials I've managed to get everything working as expected except for one thing: I can't get item models to load when organized into sub packages. In the console I get this error: Now obviously it's telling me it can't find find the model. If I take the item model for metal_1 out of : models/item/metal/ And just place it into models/item/ It works as expected. Here is my item model for metal_1. Since it's a block I'm simply setting the parent to the block model. As you can see I'm clearly referencing the metal package in my path. { "parent": "blockpalette:block/metal/metal_1" } Here's my assets structure (ignore bpglass, its a WIP): For testing purposes I'm only trying to get metal_1 to load from a sub package. I will move the rest of the files once I figure a solution. I've watched multiple tutorials and read the Forge documentation but can't find any information on item model pathing. Everyone seems to just put them directly in the item package. I know blockstates can't be put into sub packages, is this true for item models as well? That seems a bit weird that block models can be placed in sub packages but item models cant. Any help would be appreciated.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.