Jump to content

Cadiboo

Members
  • Posts

    3624
  • Joined

  • Last visited

  • Days Won

    58

Everything posted by Cadiboo

  1. You define the "glassless", "default" and "intricate" in your code, but only have "normal" in your block state.
  2. You have a mod that requires creative core, but you don't have it installed (or you have the wrong version installed)
  3. Either you badly registered your block, or you're trying to set your property on an air block, not your block. do NOT do this. Override fillStateContainer
  4. You installed the deobf version of Bookshelf (Bookshelf-1.12.2-2.3.585-deobf.jar)made for mod developers, not mod users. Download the non-deobf version.
  5. You can spawn particles in the Block#randomDisplayTick method. Look at BlockEnchantmentTable#randomDisplayTick, BlockLiquid#randomDisplayTick and BlockFurnace#randomDisplayTick.
  6. Blocks are singletons. This means that there is only one block instance in the entire game. To store stuff like this you need to use BlockStates and their properties (look at tallgrass for examples). Depending on what you want, you might be able to accomplish everything with the json model system. If not, you can use the IModelData system.
  7. Damage indicators has a bug. Make sure you have the latest version. If you do, report the error to the mod author.
  8. No, you're misunderstanding. The client is always lying. You need to do all your logic on the server and send the result to the client. NOT the other way around
  9. Don't do this. You're passing in null as the thing thats meant to do the model lookup that you call in the next line. use Minecraft#getBlockRendererDispatcher()
  10. BlockRendererDispatcher#getModelForState(IBlockState)#getQuads#get#getSprite Will get you the sprite in the texture map which you will use for anything to do with rendering. If for some reason you need the path of that sprite I’m pretty sure there’s a method on the sprite to get it’s resource location, however this will not always be a valid file or a file that contains what you expect because some textures are inbuilt (the missing texture) and others use animation (water, lava) and color (the enchantment texture) when they are rendered
  11. Some programs/mods are badly made/unoptimised (vanilla is an amazingly good example of this), there is no war around this. What you should do is find out which mods are making your game run slowly and not use them. Properly debugging your problem with the HUD profiler (shift+f3) and /debug to find what’s making your game go slowly would also help. Programs that are unoptimised and create a lot of new objects can cause lag spikes when Java needs to sort through all these objects and delete the ones that are no-longer being used to free up memory. If many, many new objects are being created very fast, it can significantly lower your FPS and create large amounts of other lag. Start off with just Forge installed and slowly build up mods. If you want help finding what mods are causing lag, please post the results of the /debug command.
  12. That is a tiny snippet of a log that doesn’t say anything useful. We need the entire debug.log from .minecraft/logs/
  13. Would they be like the enchantment particles and move around outside the block, or is it just an animated texture? If it’s just a texture, you can have your block have different models for different blockstates, and you can use .mcmeta to animate your texture (the way water and lava are animated)
  14. In my example, ConfigHelper.setAndSave saves a value. To use it, you need a ModConfig, a path for the value you want to set, and an actual value to set. Config saving is done async, so the changes you make will be applied usually within the next 10 seconds. Examples of setting a value https://github.com/Cadiboo/NoCubes/blob/6c28c100c61e8c629d33a83ba87dbaa41f7f7662/src/main/java/io/github/cadiboo/nocubes/config/ConfigHelper.java#L392-L407 Examples of setting a value + updating the baked value (unclean code, but it gets the job done until there’s a way to force a non-async save+load) https://github.com/Cadiboo/NoCubes/blob/91dcad05ec74621a4af31c0cc5e06ebbb3b094e2/src/main/java/io/github/cadiboo/nocubes/client/ClientEventSubscriber.java#L86-L104 Edit: I now use this method (which includes some hacks to replicate the functionality that my PR adds)
  15. Er no, snake case. It’s done automatically - setUnlocalisedName/setTranslationKey no longer exists
  16. The logger is working fine for me too.
  17. Post your debug.log from .minecraft/logs/ as described in then EAQ
  18. Report the error to the author
  19. Update your Forge version to at least #2779. If that doesn’t work, do what DaemonUmbra said
  20. I highly recommend starting off with one or two mods and building up until you find a combination of mods that doesn’t create lag for you. You might also want to consider installing OptiFine and/or other optimisation for the performance improvements that they offer.
  21. Seems to be an issue with waila (probably hwyla). Make sure you have the latest version of it and the latest forge version. If the problem persists, contact the author (create an issue on its issues page)
  22. Specifically it requires a Forge version of at least #2779
×
×
  • Create New...

Important Information

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