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
  • Month
    • All time

      February 2 2017 - January 17 2021

    • Year

      January 17 2020 - January 17 2021

    • Month

      December 17 2020 - January 17 2021

    • Week

      January 10 2021 - January 17 2021

    • Today

      January 17 2021

    • Custom Date
    • Between and
  1. diesieben07

    diesieben07

    Forum Team


    • Points

      102

    • Content Count

      54922


    • Find Content
  2. ChampionAsh5357

    ChampionAsh5357

    Members


    • Points

      16

    • Content Count

      995


    • Find Content
  3. poopoodice

    poopoodice

    Members


    • Points

      15

    • Content Count

      880


    • Find Content
  4. DaemonUmbra

    DaemonUmbra

    Forum Team


    • Points

      8

    • Content Count

      10094


    • Find Content

Popular Content

Showing content with the highest reputation since 12/17/20 in all areas

  1. 2 points
    diesieben07

    (1.16.2) Inside a new capability

    Do not create a new LazyOptional every time. This defeats the entire purpose of LazyOptional.
    • Friday at 08:51 AM
  2. 2 points
    Draco18s

    How do I fix this error Tile Entities (1.15.2)

    You know how when you buy a pair of headphones, they come in a box? You have a box labeled "headphones" right now and you're trying to plug it into your computer, but it doesn't have an audio jack.
    • January 5
  3. 2 points
    Captain Milo

    Forge 1.12.2 installer help

    So I just recently wiped my hard drive and I wanted to re-install forge to run wynntils on the wynncraft server but everytime I try to install it it always gives this error: https://imgur.com/CswUiZi I've already tried to restart my pc and disabling the firewall, though it seems other versions (1.16.4) work so I don't know what I'm doing wrong. I did play once on the 1.12.2 version and Java should be the latest version since I just downloaded it off of their site (windows offline 64bit one) so I don't know what I'm doing wrong. Here's the link to the log: https://pastebin.com/8cvJFVPN
    • January 3
  4. 2 points
    diesieben07

    [1.16.4] [SOLVED] Problem with comparing dimensions

    • January 3
  5. 2 points
    diesieben07

    How do I assign a texture to a block?

    1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • December 31, 2020
  6. 2 points
    diesieben07

    How do I assign a texture to a block?

    Post your code and assets.
    • December 31, 2020
  7. 2 points
    diesieben07

    NBT What am I doing wrong?

    No. Stop. writeToNbt and readFromNbt are for saving to disk. Server-side. If you want to sync stuff to the client (assuming you want to use the vanilla mechanic, which uses NBT), you need to override a couple of methods (warning, this is a giant mess): getUpdateTag - Returns the data that should be sent to the client on initial chunk load (i.e. when it gets into render distance, etc.). Call super here and put whatever data you need to have available on the client in the NBTTagCompound returned from super. Then return it. handleUpdateTag - Called on the client with whatever tag was returned from getUpdateTag. By default this calls readFromNbt, which is a terrible default, but oh well. getUpdatePacket - Called to produce a subsequent update packet. You should return a SPacketUpdateTileEntity here if you need the data on the client to be updated from time to time. In theory you can return a partial update here, but usually it is best to just call getUpdateTag and pass that NBTTagCompound to the packet. The int parameter of the packet constructor can be set to whatever unsigned byte you like best. onDataPacket - Called on the client when the packet produced by getUpdatePacket is received. Usually you just need to call handleUpdateTag with the NBT data from the packet (SPacketUpdateTileEntity::getNbtCompound). getUpdateTag will always be called and it's data sent when the chunk is initially transferred to the client. You cannot stop this. If you need to update the client-side data later (i.e. you need the packet produced by getUpdatePacket to be sent), call World::notifyBlockUpdate on the server. You should care about when you call markDirty. You should not care when writeToNbt and readFromNbt are called. Remember, these are for saving the world to disk. Minecraft will do that when it sees fit. You need to call markDirty after doing the changes (so Minecraft knows to save to disk) and then call notifyBlockUpdate to notify the client of these changes (assuming you are using the syncing mechanism described above). Both happens server-side. That was in the context of "NBT is only used for saving to disk". ItemStacks have the terrible habit of using NBT for runtime storage, which is ugly, cumbersome and inefficient.
    • January 9, 2018
  8. 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.
    • 13 hours ago
  9. 1 point
    diesieben07

    1.16.4 Fishing Loot Table

    LootTableLoadEvent completely bypasses the data driven system. Modpack makers or just "regular users" can not change your logic by using a datapack if you use LootTableLoadEvent.
    • Thursday at 03:19 PM
  10. 1 point
    diesieben07

    (1.16.2) Making a new capability

    EnumFacing is Direction now. NBTBase would be INBT.
    • Thursday at 01:14 PM
  11. 1 point
    diesieben07

    1.16.4 Fishing Loot Table

    You could overwrite the vanilla fishing loot table, yes. However: Vanilla does not do any loot table merging. One datapack wins. So if you and another mod (or another data pack) both modify the fishing loot table, only one wins. That's why Forge has added global loot modifiers, which allow you to specify modifiers that act on the result of loot tables, without replacing them.
    • Thursday at 11:58 AM
  12. 1 point
    diesieben07

    [1.16.4] Loot table minecraft:blocks/grass not loaded

    Use global loot modifiers to change loot tables.
    • Thursday at 08:57 AM
  13. 1 point
    ChampionAsh5357

    [1.15.2] Change player name in Tab List (Player List)

    That grabs the name from the NetworkPlayerInfo which is separate. You would need to set it from the ClientPlayerEntity in a sided-safe manner.
    • Thursday at 01:21 AM
  14. 1 point
    diesieben07

    [1.16.4] How i can detect mouse cliking

    Use the already existing key binding for left mouse button.
    • Tuesday at 07:42 PM
  15. 1 point
    diesieben07

    Game crash don't load.

    Delete this file.
    • Monday at 06:28 PM
  16. 1 point
    diesieben07

    Game crash don't load.

    Forge installer will not open or close the launcher. Make sure you downloaded only the installer from https://files.minecraftforge.net/. The Minecraft launcher must be closed during Forge installation.
    • Monday at 04:47 PM
  17. 1 point
    poopoodice

    [1.16.4] How to add lore to ItemStack

    There's a list of tooltips provided, you can do whatever you want to it (remove them all, add your custom ones, or even flip them all around...).
    • Monday at 02:14 AM
  18. 1 point
    diesieben07

    minecraft world won't load/ can't create new one

    Refer to the Optifine downloads page regarding compatibility with Forge.
    • January 9
  19. 1 point
    diesieben07

    [1.16.4] How to use TickEvent.ClientTickEvent ?

    What on earth are you doing with that key binding thing Just call isKEyDown on your TEST field... You tell EventBusSubscriber to use the mod bus, but ClientTickEvent fires on the Forge bus.
    • January 9
  20. 1 point
    poopoodice

    How can I show an empty gui by key pressing

    I just noticed that the titles are actually rendered in drawGuiContainerForegroundLayer() not render(). Also I believe you only need to set the value once in the constructor, or in init().
    • January 8
  21. 1 point
    Draco18s

    [1.16.3] Received invalid biome id

    Then I don't know.
    • January 8
  22. 1 point
    poopoodice

    How can I show an empty gui by key pressing

    What is an empty gui? If it does not store any information (e.g. inventories, sharing data) a simple screen will work using Minecraft#displayGuiScreen (this is client only). Otherwise you will need a registered container and screen, and open it with NetworkHooks#openGui (this should be done on server, in this case you send a packet when the key is pressed). There's a key input event that you can use, or use client tick event to proceed with keybindings (check Minecraft.java).
    • January 8
  23. 1 point
    diesieben07

    How to setup a server

    Any version from 8-14 will work, Java 8 and 11 currently still receive LTS support. We usually recommend using https://adoptopenjdk.net/. I don't own or use a Mac so I can't help you with the installation.
    • January 6
  24. 1 point
    diesieben07

    Getting players list on a server side [ 1.16]

    PlayerList#getPlayers. Note that names are not suitable for anything but displaying them to the user - they can change. Internally you should work with UUIDs always. ServerLifecycleHooks.getCurrentServer
    • January 6
  25. 1 point
    Sterling00

    [1.16.4] I cant create a mob. Please help

    I think this is caused by the fact that you did not create the cows attributes. In your main class cunstructor do: // Register the setup method for modloading bus.addListener(this::setup); and add the method: private void setup (final FMLCommonSetupEvent event) { event.enqueueWork(() -> { GlobalEntityTypeAttributes.put(ModEntityTypes.GS_COW.get(), MobEntity.setCustomAttributes().create() } }
    • January 6
  26. 1 point
    ChampionAsh5357

    [SOLVED] [1.16.4] How do I generate ores?

    This is not applicable for 1.16.2+ as the system was changed. First, you will need to register your Configured Feature within the associated WorldGenRegistries. I would suggest looking at how the Features class does the registering and borrow the method. Note that this should be deferred until FMLCommonSetupEvent. For reference, the register event is not thread-safe, so it should be wrapped using the synchronous work queue provided in the event (e.g. enqueueWork). From there, you can attach the feature to the biome(s) of your choice using BiomeLoadingEvent. You can grab the generation settings builder there and add a feature during a specific point in the generation process, in your case most likely UNDERGROUND_ORES.
    • January 5
  27. 1 point
    diesieben07

    [1.16] Optional dependencies and data files

    No, I simply gave you all the options before - not my opinion on which is the best
    • January 5
  28. 1 point
    diesieben07

    Getting Entitys in Renderer

    Not at all. In fact Minecraft has something specifically for this, the entity ID. It exists precisely and only for this purpose - identifying entities across the client/server boundary.
    • January 2
  29. 1 point
    diesieben07

    [1.16.x] No Class TypeResolver Initialization Error

    Something is broken about your workspace. I would recommend to re-clone your repository (you are using Git or something similar, right?) and just try again with a new workspace.
    • December 30, 2020
  30. 1 point
    diesieben07

    [1.16.4] How to unregister/disable all recipes

    You already found it, you override each recipe JSON file using the data pack mechanism. Although I would advise not doing it manually, use data generation instead.
    • December 30, 2020
  31. 1 point
    ChampionAsh5357

    Complete Newbie, Followed Tutorial, How Do I Build a jar

    As, I've already explained, you need to download some JDK 8. Then, attach it to your IDE of choice and use that to compile the jar.
    • December 30, 2020
  32. 1 point
    diesieben07

    Watchdog kills server because a mod hangs out

    Looks like ChickenChunks is causing a deadlock: It is trying to access its own chunk while that chunk is being loaded. But the chunk loading cannot complete, because the chunkloader is still loading, but that cannot complete because its waiting for the chunk to load, which is waiting for the chunk loader to complete... you see where this is going. Report this to ChickenChunks.
    • December 29, 2020
  33. 1 point
    diesieben07

    [1.15.2] Every world-generated chest is empty

    Some mod that is modifying loot is breaking things. There are a lot of errors related to data loading in your log. allthemodium and shows invalid recipes. It seems to include recipes for 1.16 as well as recipes that reference items that do not exist. "slurpiesdongles" has invalid recipes that reference items that do not exist. "carpetstairsmod" has invalid recipes that reference items that do not exist. "productivebees" has invalid recipes that reference a recipe type that does not exist. "silentgems" has invalid recipes that reference tags that do not exist. "mekanism" has invalid recipes that reference a recipe type that does not exist. "quark" has invalid recipes that are straight up invalid JSON. "endores" has invalid loot tables that reference items that do not exist (this seems to be the most likely root cause, but it is hard to tell). Make sure these mods are up to date and report these issues to the mod authors, include the log. Then "explorercraft" causes an exception while trying to modify loot tables using an outdated, deprecated method. Report this to the mod author and tell them to use global loot modifiers. The error might not be their fault though, other mods down the line cause similar exceptions using the same, outdated and deprecated method. This does not mean they should not be using global loot modifiers instead. The total list of listeners to the deprecated event for modifying loot is:
    • December 29, 2020
  34. 1 point
    diesieben07

    [1.16.4] Resource packs not loaded from server

    Tried it, this is in the client log: Please read your logs.
    • December 29, 2020
  35. 1 point
    diesieben07

    Capability Issues

    You should really do this. Not sure what your issue is now though, would have to check with the debugger. Either do that yourself or post a Git repo of your mod.
    • December 28, 2020
  36. 1 point
    diesieben07

    Adding mods to IntelliJ run

    You need to use runtimeOnly, like Mekanism tells you.
    • December 28, 2020
  37. 1 point
    HomixHD

    I'm looking for a mod programmer

    someone who wants to be part of my team. must have at least one of these requirements that I am looking for: !) mod programmer (above all: mob, biomes, objects, weapons and blocks). 2) good at giving realistic animations to the mobs that I will show you. 3) good at textures (they must be "Mowzie's Mobs" style) """write to me with your Discord name""" CERBERUS Guerriero della morte Demone Piccolo drago Piccolo fungo Molti piccoli funghi Fungo medio Fungo gigante rovinare Non morto più solido Troll con tamburo Valhalla Knight
    • December 27, 2020
  38. 1 point
    diesieben07

    Capability Issues

    Either the Javadoc tells you, or you just have to use your IDE to search for where it is fired.
    • December 26, 2020
  39. 1 point
    DaemonUmbra

    Crash on server startup "Not enough data available"

    Check the world save for serverconfig, clear that folder too
    • December 24, 2020
  40. 1 point
    ChampionAsh5357

    [1.16.3] [Solved] Own Chunk Generator and Biome Generator with java code

    No, that wouldn't be feasible as this data driven system gets more developed over time. It would be just as easy to store a simple key interface that executes when a player is within a biome as needed without having to AT to extend the biome class.
    • December 23, 2020
  41. 1 point
    diesieben07

    Speed and armor not correctly "transferred" to vanilla clients

    Thanks for the report. This was actually me messing up a fix for vanilla clients showing errors due to Forge's custom attributes. I've fixed up the fix: https://github.com/MinecraftForge/MinecraftForge/pull/7560
    • December 21, 2020
  42. 1 point
    diesieben07

    [1.16.1] Player set to Op (Server)

    Please learn basic Java. The == operator is the wrong tool here.
    • December 18, 2020
  43. 1 point
    diesieben07

    why is forge modding so darn hard

    This is now wildly off topic, so I will close this thread.
    • December 7, 2020
  44. 1 point
    diesieben07

    Could not find net.minecraftforge:forge:1.16.3-34.1.35_mapped_snapshot_20201028-1.16.3.

    A jar file in your gradle cache is corrupted. The easiest, but brute-force, method is to just delete .gradle in your user home folder. But that will mean you need to re-import any Gradle project.
    • November 1, 2020
  45. 1 point
    poopoodice

    (SOLVED) Upgrading from 1.14 to 1.16

    minecraft 'net.minecraftforge:forge:...' under dependencies in build.gradle and if you are using intellij, there should be a gradle panel. Select it and there should be a refresh button, or when you made changes to the build.gradle file a small window will pop up and asks you if you want to reimport the gradle project.
    • August 28, 2020
  46. 1 point
    majesity

    [Solved] [1.16.1] Trouble with Capabilities and LazyOptionals

    Yes! This worked! Thank you so much. I can't express how grateful I am, I've spent nearly three days trying to figure out this issue and it finally works. Thank you.
    • July 25, 2020
  47. 1 point
    cookiedragon234

    On packet send/recieve events

    For anyone else looking for this in the future, create mixins for net.minecraft.network.NetworkManager like so: @Inject(method = "sendPacket(Lnet/minecraft/network/Packet;)V", at = @At("HEAD"), cancellable = true) private void onSendPacket(Packet<?> packet, CallbackInfo callbackInfo) { //System.out.println("Packet Sent: " + packet.toString()); PacketSent event = new PacketSent(packet); MinecraftForge.EVENT_BUS.post(event); if (event.isCanceled() && callbackInfo.isCancellable()) { callbackInfo.cancel(); } packet = event.packet; } @Inject(method = "channelRead0", at = @At("HEAD"), cancellable = true) private void onChannelRead(ChannelHandlerContext context, Packet<?> packet, CallbackInfo callbackInfo) { //System.out.println("Packet Recieved: " + packet.toString()); PacketRecieved event = new PacketRecieved(packet); MinecraftForge.EVENT_BUS.post(event); if (event.isCanceled() && callbackInfo.isCancellable()) { callbackInfo.cancel(); } packet = event.packet; } PacketSent and PacketRecieved are custom events that you can make yourself by making a class that extends Event.
    • August 13, 2019
  48. 1 point
    diesieben07

    [1.13.2] Check if mod is loaded

    ModList.get().isLoaded
    • March 5, 2019
  49. 1 point
    diesieben07

    NBT What am I doing wrong?

    Some things to clear up: Saving to disk for tile entities (and normal entities) happens automatically, you get no control over when it happens. The only thing you must do is call TileEntity::markDirty when data that needs saving has changed. This tells Minecraft "Hey, I need saving before you unload me". When that happens does not matter and you should not care about it. markDirty also tells nearby blocks "hey, my tile entity data has changed" (by calling Block::onNeighborChange if Block::getWeakChanges returns true for the neighboring block). This is used to update comparators when a nearby inventory changes. Making these two things one method is ugly, but that's how it is. Loading from disk for tile entities happens automatically. You can (usually) assume that your tile entity will not be in a state of "I am freshly created but do not have the data yet". Only exception is a constructor in your TileEntity class (seriously, you almost never should write one) and obviously the Block::createTileEntity method, where you just created the fresh instance. Stop thinking in terms of "store stuff in NBT". NBT is a serialization format (like JSON). You store things in your tile entity, which happens to use NBT to persist data into the world. But nobody but the methods writeToNbt and readFromNbt need to care about this and nobody else but them should touch NBT. getUpdateTag (which you have pointlessly overridden) is vanilla's crude tile entity synchronization mechanism. For vanilla this mechanism is "take the complete tile entity state, serialize it like we would if saving to disk and then shove it down the network". Adopting this mechanism in modded code is terrible, since modded tile entities often have incredibly complex functionality and produce lots of data when saving to disk. There is no need to shove all this crap down the network. Only send over what you need to and if you are feeling especially nice, stop using the terrible NBT-based syncing that vanilla uses. Now, on to the issues with your code: Do not implement that client-only ITickable interface on your tile entity. You will crash a dedicated server. Never, ever use getTileData. Seriously. For your own tile entities, store data in normal fields (see above). Do not use NBT here, NBT is for saving to disk, only (ignore ItemStacks, they are terrible).
    • January 9, 2018


  • All Activity
  • Home
  • Leaderboard
  • Theme

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