Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/08/19 in all areas

  1. Youtube tutorials are usually not reliable as many creators take shortcuts which are not very appreciated on this Forum. An amazing source for information in addition to the ones named by GloriousAlpaca are Minecraft classes and methods themselves and other mods which have an open Github. I think key bindings are saved in the options.txt which you could edit. I would not recommend changing the default Ui as changing minecraft code may make other mods incompatible. Opening a second inventory or a second hotbar is possible by drawing a ui for the hotbar and having a custom container and gui for the inventory. If you want to save data to the player you need to make your own capability which you attach to the player.
    2 points
  2. For anybody reading this, it worked by doing this: int c = ((EntityPlayerMP) entity).getStatFile().readStat(StatList.DEATHS)
    1 point
  3. You can save data on a player using a capability. I suggest you look at the official documentation: https://mcforge.readthedocs.io/en/1.13.x/datastorage/capabilities/ You can also look at this tutorial: https://jabelarminecraft.blogspot.com/p/minecraft-17x.html While it is outdated I have found it to still be of help!
    1 point
  4. What version? The "most recent version of Minecraft" is 1.14.2 and that command was removed between 1.12.2 and 1.13.
    1 point
  5. I would guess something is broken with applied fluidics, try removing it and see if if you still have a problem. If so, post new logs.
    1 point
  6. Ok wow. I didn't expect that. I just dug into things myself and I can't find how vanilla draws durability bars. Those functions were completely removed. AH HA, they were moved into an interface called IForgeItem. getDurabilityForDisplay, showDurabilityBar, getRGBDurabilityForDisplay I realize that its cleaner to perform as few edits to the vanilla classes as possible, but jeeze, even knowing this functions had to exist somewhere did not make them easy to find. I literally had to go find the item renderer class and start from there. We can no longer tell people "just go look at vanilla" we also have to say "...and Forge's extension interface" and then people will have to ask "wtf is that? where is it?"
    1 point
×
×
  • Create New...

Important Information

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