Jump to content
  • Home
  • Files
  • Docs
All Content
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Leaderboard

Leaderboard

  • Leaderboard
  • Past Leaders
  • Top Members
  • in all areas
    • All areas
    • Events
    • Event Comments
    • Event Reviews
    • Posts
    • Status Updates
    • Status Replies
  • Week
    • All time

      February 2 2017 - January 23 2021

    • Year

      January 23 2020 - January 23 2021

    • Month

      December 23 2020 - January 23 2021

    • Week

      January 16 2021 - January 23 2021

    • Today

      January 23 2021

    • Custom Date
    • Between and
  1. diesieben07

    diesieben07

    Forum Team


    • Points

      16

    • Content Count

      55122


    • Find Content
  2. DaemonUmbra

    DaemonUmbra

    Forum Team


    • Points

      7

    • Content Count

      10156


    • Find Content
  3. poopoodice

    poopoodice

    Members


    • Points

      5

    • Content Count

      897


    • Find Content
  4. Draco18s

    Draco18s

    Members


    • Points

      5

    • Content Count

      15935


    • Find Content

Popular Content

Showing content with the highest reputation since 01/16/21 in all areas

  1. 2 points
    Draco18s

    Stuck with block movement

    Why the fauk does your renderer change what blocks are in the world? That's not the job of a renderer.
    • Thursday at 09:14 PM
  2. 1 point
    kiou.23

    [1.16.4] Why recipe result calculated on server side?

    https://link.springer.com/referenceworkentry/10.1007%2F978-3-319-08234-9_272-1 It's the architecture, the server does all the logical shenanigans, and the client is only a viewport, an interface to the state that's managed in the server side
    • 3 hours ago
  3. 1 point
    DaemonUmbra

    HELP! WORLD WONT WORK

    What version of Minecraft are you using?
    • 4 hours ago
  4. 1 point
    diesieben07

    [1.16.5] Player Field of View

    getUseDuration needs to return a value > 0 for setActiveHand to work. By default it returns 0.
    • 13 hours ago
  5. 1 point
    poopoodice

    [1.16.5] Player Field of View

    Can be changed via FovUpdateEvent.
    • 14 hours ago
  6. 1 point
    iHamster

    Stuck with block movement

    I take it as a type of suggestion one can't decline
    • Thursday at 09:29 PM
  7. 1 point
    DaemonUmbra

    Java install not complete

    Some zip managers like to take control of the .jar file extension away from Java. Make sure you have Java installed and try running Jarfix once, then try the installer again.
    • Thursday at 09:07 PM
  8. 1 point
    Draco18s

    [1.16.5] get SeverWorld

    Gasp, you're not on the server.
    • Thursday at 08:02 PM
  9. 1 point
    poopoodice

    [1.16.5] get SeverWorld

    You need to check before casting, like we usually do. https://mcforge.readthedocs.io/en/latest/concepts/sides/#performing-side-specific-operations
    • Thursday at 07:48 PM
  10. 1 point
    diesieben07

    my server recently started crashing when I try to launch it

    solcarrot-server.toml This value contains invalid values: Invalid value: 165 170
    • Thursday at 05:30 PM
  11. 1 point
    diesieben07

    [SOLVED][1.16.4] Get Overworld save directory

    ServerChunkProvider#getSavedData and then DimensionSavedDataManager#folder (needs reflection) will get you the data folder. However I would really encourage you to consider not using a custom data format.
    • Thursday at 08:52 AM
  12. 1 point
    Turtledove

    [Solved] Place Crops on Water

    After you have your crop block, then look into how the lilypad item works.
    • Thursday at 01:13 AM
  13. 1 point
    Draco18s

    [Solved] Place Crops on Water

    I don't think this gives you water as a below block but rather a block that is waterlogged. Check how lily pads work.
    • Thursday at 12:48 AM
  14. 1 point
    poopoodice

    Forge Crash When Trying To Run Mod

    Make sure your modid is not capitalized.
    • Wednesday at 10:41 PM
  15. 1 point
    DaemonUmbra

    [ForgeGradle] Publish project to GitHub Packages

    I seem to recall getting this error myself... I think it had something to do with caps, also I do what GitHub suggests and put those in a gradle.properties in my user folder so they're global and there's no risk of accidentally committing them
    • Wednesday at 10:28 PM
  16. 1 point
    diesieben07

    [1.16.4] Get IChunk World / get current World for the overworld.

    Yup, thats world gen - i.e. no world access. WorldSavedData cannot be accessed during world gen. You can use IChunk#getBiomes to get biome information.
    • Wednesday at 01:22 PM
  17. 1 point
    MrDuck20

    Fatal error has occurred, this connection is terminated how do i fix?

    thats it
    • Wednesday at 12:19 PM
  18. 1 point
    DaemonUmbra

    GatherDataEvent not firing

    GatherDataEvent only fires during data runs, not during client or server runs
    • Wednesday at 04:43 AM
  19. 1 point
    DaemonUmbra

    1.16.4 Forge Crashing On Start

    The launcher bundles 8 on Windows, which is one reason we can't use features of newer Java versions
    • Wednesday at 01:13 AM
  20. 1 point
    AurenX

    [SOLVED] Modifying / Replacing Vanilla Blocks (1.16.X)

    Note: I am using registry events instead of deferred registry so if someone chimes in on a difference that works better than listen to them. this method still works so i am yet to be motivated to change. I am able to replace blocks using the RegistryEvent.Register<Block>. I get the old resource location ForgeRegistries.BLOCKS.getKey(oldBlock); and set the custom block with that blocks registry location newBlock.setRegistryName(resourceLocation); ForgeRegistries.BLOCKS.register(newBlock); I also replace the Item (again i dont know if this is still needed as doing so still works so i have yet to change it)
    • Tuesday at 08:40 PM
  21. 1 point
    diesieben07

    [1.16.4] SimplImpl sends packet to client instead server

    Do not use OnlyIn. Minecraft#player is always the client player. By accessing it on a packet thats sent to the server, you are reaching across logical sides, which will just crash on dedicated servers and cause strange behavior in single player.
    • Tuesday at 04:48 PM
  22. 1 point
    diesieben07

    *universal.jar files no longer on minecraftforge.net?

    You should never have downloaded them. Use the installer. The universal jars are for download by the installer, you should not be downloading them as a user. They were confusing to people and people downloaded the wrong thing, thats why they are no longer listed.
    • Tuesday at 02:22 PM
  23. 1 point
    diesieben07

    [1.16.4] Edit Conversion Progress of Zombie Villager (Help with Java Reflection)

    Read the documentation for invoke.
    • Tuesday at 09:37 AM
  24. 1 point
    poopoodice

    [1.16.4] Edit Conversion Progress of Zombie Villager (Help with Java Reflection)

    You did not pass the instance of the object (zombie).
    • Tuesday at 09:29 AM
  25. 1 point
    DaemonUmbra

    Mod Code Not Detecting Correct Version

    https://paste.gg/p/anonymous/47eb336f970d400bb9f707d7aed7c776#pastefile1-l30 That's not a valid mod ID
    • Tuesday at 02:26 AM
  26. 1 point
    diesieben07

    [1.16.4] onBlockAdded being called twice on server side

    https://github.com/MinecraftForge/MinecraftForge/pull/7607
    • Monday at 09:22 AM
  27. 1 point
    DaemonUmbra

    Forge Installation Problem

    Some zip managers like to take control of the .jar file extension away from Java. Make sure you have Java installed and try running Jarfix once, then try the installer again.
    • Monday at 03:45 AM
  28. 1 point
    diesieben07

    Game crashes while loading world

    Likely.
    • Sunday at 09:00 PM
  29. 1 point
    iiDk_lol

    Another Loading Screen Error for 1.2.5

    1.2.5 is no longer supported on this forum. Please update to a modern version of Minecraft for support. edit: i accidentally pressed last page and bumped this
    • Sunday at 08:29 PM
  30. 1 point
    diesieben07

    [1.16.4] Smithing table custom recipe use durability

    There is no way to do this. The smithing container is hardcoded to just decrease its inputs and not use the container item (see SmithingTableContainer#func_230301_a_).
    • Sunday at 05:24 PM
  31. 1 point
    Linky132

    (1.16.2) Making a new capability (3)

    I could be wrong, but I think you might need to add this code in the constructor: FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup); And you may need to change the setup method to non-static.
    • Sunday at 03:00 PM
  32. 1 point
    diesieben07

    (1.16.2) Making a new capability (3)

    @EventBusSubscriber subscribes to the forge bus by default, but FMLCommonSetupEvent is fired on the mod bus. Please use the code format when posting code.
    • Sunday at 12:06 PM
  33. 1 point
    ChampionAsh5357

    [SOLVED] [1.16.5 ] Dust Block Texture Glitch

    I would try increasing the size of the model to around 0.005 compared to a flat plane.
    • Sunday at 01:50 AM
  34. 1 point
    diesieben07

    [SOLVED] [1.16] Custom Sign won't render

    probably better just to ask in the modder support channels - your chances of getting a quick response are better. I am not the only person who can help If I'm online on discord and see it, I'll reply - otherwise someone else will.
    • January 16
  35. 1 point
    diesieben07

    Minecraft forge server login problem

    Why is your server running in offline mode? Client and server log do not match up at all. The server log shows connection attempts at [16Jan2021 20:02:10.516] and then a couple minutes later. The client logs shows one connection at [16Jan2021 18:46:27.912].
    • January 16
  36. 1 point
    diesieben07

    [SOLVED] [1.16] Custom Sign won't render

    There are several problems which all contribute to the things you are seeing (or rather not seeing): Your event handler for ModelRegistryEvent is not called, because you registered it to the wrong event bus. ModelRegistryEvent is fired on FMLJavaModLoadingContext.get().getModEventBus(), but you used MinecraftForge.EVENT_BUS. You create the RenderMaterial wrongly. Minecraft will use Atlases.getSignMaterial to create the material - which does not match up with what you are doing here. You need to also use that method. This means that the "minecraft" namespace will be used, there is no way around that. Because of this you should prefix the name of your WoodType with your ModID, so "effetewood_effete", to avoid collisions not only with the texture but also the WoodType registry. Then your texture also needs to be in minecraft/textures/entity/signs/effetewood_effete.png naturally. In ModelRegistryEvent you also need to add the RenderMaterial to the set of built-in textures (ModelBakery.LOCATIONS_BUILTIN_TEXTURES) so that Minecraft will actually load the texture and stitch it onto the atlas. Because the field is protected, you can use a little hack to avoid having to use reflection: static class FakeBakery extends ModelBakery { private FakeBakery(IResourceManager resourceManagerIn, BlockColors blockColorsIn, IProfiler profilerIn, int maxMipmapLevel) { super(resourceManagerIn, blockColorsIn, profilerIn, maxMipmapLevel); } static Set<RenderMaterial> getBuiltinTextures() { return ModelBakery.LOCATIONS_BUILTIN_TEXTURES; } } Now you can just call FakeBakery.getBuiltinTextures to get the field and add your RenderMaterial to it. Because you now have your own tile entity type, you need to tell Minecraft to use the SignTileEntityRenderer for it. Use ClientRegistry.bindTileEntityRenderer in FMLClientSetupEvent for that. Registering the wood type in ModelRegistryEvent means it won't be registered on the server. However FMLCommonSetupEvent is too late, so you have to do it in the mod constructor. Unfortunately in this case, mod construction (like many startup events, e.g. FMLCommonSetupEvent) runs in parallel on a threadpool, which means you cannot just register your WoodType there (the underlying data structure ObjectArraySet is not threadsafe). With normal event handlers (like FMLCommonSetupEvent) you can just use enqueueWork on the event to run something synchronously on the main thread. However in this case we are in the mod constructor, which doesn't receive an event instance. There is still a DeferredWorkQueue for us to use though (i.e. call enqueueWork to run something on the main thread): DeferredWorkQueue.lookup(Optional.of(FMLConstructModEvent.class)).get().enqueueWork with a Runnable lambda will do the trick. In there you can then safely register your WoodType. With these fixes the custom sign now works:
    • January 16
  37. 1 point
    diesieben07

    (1.16.2) How do I use onPlayerTick?

    ? Now you are spawning the entity on both client and server. You need to check World#isRemote and only spawn it on the server. @EventBusSubscriber is fine, you just need to user static methods with it.
    • January 16
  38. 1 point
    diesieben07

    (1.16.2) How do I use onPlayerTick?

    This will immediately crash the game, there are not just server side entities. The fact that it doesn't mean your event handler is not even running. It is not running, because @EventBusSubscriber only works with static event handler methods.
    • January 16
  39. 1 point
    ChampionAsh5357

    [SOLVED] How to register WallOrFloorItem / Torch

    Nope, you're just registering the item twice. Your block calls this method which creates an item to which you then create another item under the same name.
    • January 15
  40. 1 point
    poopoodice

    [1.16.4] Block not rendering as transparent

    Set the block's render type to cutout in client setup using RenderTypeLookUp.
    • January 14
  41. 1 point
    Draco18s

    GUI Documentation

    Apparently its been like that for 4 years. https://github.com/MinecraftForge/Documentation/issues/74
    • January 13
  42. 1 point
    LexManos

    1.14.3 Forge Installer cant open even if I downloaded Java

    Thank you for bumping a year and a half old thread to vouch for one of my moderators who has thousands of posts on this forum and was recommending a tool that is widely known/used in the community to fix jar file associations... I was scared that he was saying something wrong!
    • January 6
  43. 1 point
    BartsaaaaX

    Caused by: com.electronwill.nightconfig.core.io.ParsingException: Not enough data available

    I fixed it, I kept following this line of the crash report- net.minecraftforge.fml.config.ConfigFileTypeHandler$ConfigLoadingException: Failed loading config file usefulbackpacks-server.toml of type SERVER for modid usefulbackpacks and just kept deleting every server.toml or config file it said up until i deleted the forge.toml and then it worked.
    • November 19, 2020
  44. 1 point
    FrozenFarmer64

    Glowing Overlay for Blocks

    Ah ha! It worked! Thank you everybody for the incredible help! Here is a fairly detailed solution to the problem for anybody's reference: 1) Make your block tex multi-layered. TheGreyGhost has an excellent tutorial of this under mbe05 of Minecraft By Example. Be sure to register one layer as a RenderType.getCutout() and one as a RenderType.getTranslucent(), and to adjust the .json file accordingly. /* In charge of client initialization */ private void onClientSetup(final FMLClientSetupEvent event) { ... // Render type registry for glowing blocks RenderTypeLookup.setRenderLayer(MinenauticaBlocks.WRITHING_WEED, Minenautica::getDoubleLayer); ... } // Double layer render lookup public static boolean getDoubleLayer(RenderType layerToCheck) { return layerToCheck == RenderType.getCutout() || layerToCheck == RenderType.getTranslucent(); } 2) Create and register a custom IBakedModel. We need to register a custom IBakedModel because we will need to manually update the light value of the quads on the translucent layer of the model. Again, Minecraft By Example has an excellent tutorial of this under mbe04. I would use the CamouflageBakedModel as reference, as we will be using the standard model of the block, just with a modification to the quads. 3) Alter the getQuads method. We will be altering this method to check which render layer we are currently on, and then altering the quads on the translucent layer. We are most interested with the vertexData of BakedQuad, which holds the following data, again from Minecraft By Example: // vertexData[i + 0] = Float.floatToRawIntBits(positionIn.getX()); // vertexData[i + 1] = Float.floatToRawIntBits(positionIn.getY()); // vertexData[i + 2] = Float.floatToRawIntBits(positionIn.getZ()); // vertexData[i + 3] = shadeColor; // vertexData[i + 4] = Float.floatToRawIntBits(textureU)); // vertexData[i + 5] = Float.floatToRawIntBits(textureV)); // vertexData[i + 6] = baked lighting (blocklight + skylight) // vertexData[i + 7] = normal; There are four groups of these eight pieces of data, and we are concerned which changing the 7th element in each of these groups that correspond with the baked lighting value. It is critical to note that to account for both the block light and sky light, the value of baked lighting is a 32-bit integer, where the upper 16 bits contain the sky lighting * 16 and the lower 16 bits contain the block lighting * 16. So, for example, the brightest baked lighting value would be 2^16 * 15 * 16 + 15 * 16 = 15728880. We will run through each BakedQuad in the model and set the baked lighting values to this new baked lighting value. For a more detailed explanation, here is a good link. @Override @Nonnull public List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, @Nonnull Random rand, @Nonnull IModelData extraData) { List<BakedQuad> quads = this.model.getQuads(state, side, rand); if(MinecraftForgeClient.getRenderLayer() == RenderType.getTranslucent()) { for(int i = 0; i < quads.size(); i++) { BakedQuad quad = quads.get(i); int[] vertexData = quad.getVertexData(); for(int j = 0; j < 4; j++) { vertexData[8 * j + 6] = getLightValue(15, 15); } quads.set(i, new BakedQuad(vertexData, quad.getTintIndex(), quad.getFace(), quad.func_187508_a(), quad.shouldApplyDiffuseLighting())); } } return quads; } /* * Return the light value for a given sky lighting and block lighting * A 32-bit integer, with the upper bits skyLighting*16 and the lower bits blockLighting*16 */ private static final int UPPER_HALF = 65536; // 2^16 private static int getLightValue(int skyLighting, int blockLighting) { return UPPER_HALF * skyLighting * 16 + blockLighting * 16; } And that is it! There are few steps, but in the end we are just registering a translucent layer, and then adjusting the quads of that layer. Thank you everybody for the help, and I am posting pictures of the results below (for more pictures you can visit the mod's website at Minenautica). Light Image: https://ibb.co/djRYL32 Dark Image: https://ibb.co/dQ7TctP
    • June 23, 2020
  45. 1 point
    Stinkerpot

    Forge opening in Internet Explorer instead of Java

    I am having trouble opening opening Forge. It is opening in Internet Explorer instead of Java. It won't open in Java and can't use the "Open As" to open in Java.. What can I do to open in Java?
    • June 4, 2020
  46. 1 point
    TheGreyGhost

    1.15.2 Rendering particle fullbright

    Howdy Easiest way is just to return full brightness from your particle's method. Particle rendering has changed quite a bit from earlier versions of vanilla and you no longer need to do custom rendering for most particles. eg // can be used to change the skylight+blocklight brightness of the rendered Particle. @Override protected int getBrightnessForRender(float partialTick) { final int BLOCK_LIGHT = 15; // maximum brightness final int SKY_LIGHT = 15; // maximum brightness final int FULL_BRIGHTNESS_VALUE = LightTexture.packLight(BLOCK_LIGHT, SKY_LIGHT); return FULL_BRIGHTNESS_VALUE; // if you want the brightness to be the local illumination (from block light and sky light) you can just use // the Particle.getBrightnessForRender() base method, which contains: // BlockPos blockPos = new BlockPos(this.posX, this.posY, this.posZ); // return this.world.isBlockLoaded(blockPos) ? WorldRenderer.getCombinedLight(this.world, blockPos) : 0; } For a working example, see here https://github.com/TheGreyGhost/MinecraftByExample/tree/master/src/main/java/minecraftbyexample/mbe50_particle -TGG
    • May 12, 2020
  47. 1 point
    JavaMan7

    Custom structures tutorial and chest loot[1.12]

    Here is a video tutorial on custom structures and chest loot.here and code here
    • September 18, 2017
  48. 1 point
    fcelon

    [1.12.1] [Solved] Cannot interact with custom entity

    I just found it. @Override public boolean canBeCollidedWith() { return true; } After adding this to the code the entity works fine.
    • September 5, 2017
  49. 0 points
    diesieben07

    Forge Installation Problem

    1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • Sunday at 09:46 PM


  • All Activity
  • Home
  • Leaderboard
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community