Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/30/17 in all areas

  1. Not really. But I do know you'll be interested in ISimpleBlockRenderingHandler
    1 point
  2. No worries! We all have days like that. Heck, there have been times when writing up a post to as a question or figure out a bug, I'll arrive at the solution. It's called rubber duck debugging.
    1 point
  3. You can't remove the blocks from being in existence, but you can remove them from the world. There's an OreGen event, you would just need to subscribe to it, then cancel it. (I'm blanking on the exact name atm)
    1 point
  4. AH HA, that debug output solves it: String str = b.getPropertyString(state.getProperties()); ModelResourceLocation mrl = new ModelResourceLocation(state.getBlock().getRegistryName(), str); // HERE Log.info("Registering variant : " + str + " -- Meta : " + this.getMetaFromState(state) + " @ " + mrl.toString()); ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(state.getBlock()), this.getMetaFromState(state), mrl);
    1 point
  5. You don't use "inventory" for metadata blocks. Well, you can, but you need to then supply a JSON item model file to specify which texture to use (this is how vanilla does it). It's way easier to reuse the blockstate json for item models when possible (all hail Forge). This is why there's all that StateMapper#getPropertyString() stuff: we need to know what the state mapper says the variant string is so we can tell the Model Loader what variant model to go locate data for from the blockstate json.
    1 point
  6. Hello MrWisski, long time no see o/ Are you sure that BlockSoil:: initModel is actually called? Your ClientProxy#registerModels calls ModBlocks::initModels but does that reach BlockSoil::initModel? Are you sure that BlockStateContainer::getValidStates return the appropriate states, or does it only return a list containing the default state? If worse comes to worst, you can likely create your own ICustomModelLoader and create the baked models specifically for these ItemBlocks, but that's like lighting a candle with a flamethrower mounted on a tank.
    1 point
  7. Jabelar's stuff is great. I used his article on updating older mods (yes, I have it bookmarked) to update mine from 1.8 to 1.11. Jabelar is great at diving deep into specific subjects and explaining things that others don't. For brand-new, from-scratch stuff, I usually recommend Shadowfacts tutorials. I've occasionally used McJty's tutorials, as well. You can also learn a ton by browsing Choonster's test mod and/or The Grey Ghost's Minecraft by Example.
    1 point
×
×
  • Create New...

Important Information

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