Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/28/20 in all areas

  1. Your answer ("please learn basic Java programming before making a mod.") was of no help at all either way. This question wasn't even about basic Java--the RegistryObject class and all of its methods are part of Minecraft Forge, and so it is completely reasonable not to know a specific function from it. Moomallowz, I appreciate your attitude and I hope your mod is going well! You are not a dunce, those are understandable and clear questions, and you are working to improve.
    2 points
  2. Howdy That might be tricky depending on what you're trying to achieve; it will make blocks under your glass appear dark? It will probably help to dig through the vanilla code for notSolid and the vanilla calculations for light propagation, with any luck you will find a combination of properties that achieves what you want without messing up rendering effects like ambient occlusion or the rendering culling (the "see through portal" effect you discovered). AbstractGlassBlock is a good place to start, glass already reduces the light passing through it by a certain amount (like water as well, from memory) so that may be a further clue. Re tutorials- You might find this tutorial project (working examples) useful; it's currently at 1.16.4 https://github.com/TheGreyGhost/MinecraftByExample http://greyminecraftcoder.blogspot.com/2020/05/minecraft-by-example.html -TGG
    1 point
  3. You can override certain methods to disable light passthrough. Specifically, setting Block#propagatesSkylightDown to false will disable light passing through the block iirc. None that I would recommend. You can still use old tutorials like those of McJty with a little bit of care, but most of them should still be relevant. You can read this to get a small rundown of some changes:
    1 point
  4. Its called a SRG name. Its an automatically assigned identifier by the decompilation process so that even as obfuscated names get shuffled and changed every time Mojang updates the game, the SRG names stay constant. But it means that when major versions happen the SRG -> MCP name identification and mapping needs to be rediscovered.
    1 point
  5. Yes, you have marked a method with @Override but are not actually overriding a method. You need to correct the method signature so that you are overriding a method.
    1 point
  6. Well, it's the reason his item wasn't being accepted, was it not? The line required an instance of an item, not the item itself which with a DeferredRegister is handled with .get()?
    1 point
  7. If you're registering your objects using a deferred register, you'll need to use RegistryHandler.EXOTIC_SPICE.get()
    1 point
  8. Call the WandererTradesEvent event and add your own custom ITrades to the list in the event.
    1 point
×
×
  • Create New...

Important Information

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