Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/06/20 in all areas

  1. you can also use the onBlockActivated method from your block class, and check what item the player is holding. Or you can use the onItemUse method from your item class, and check what is the block the item is being used on. This may be better than listening to the event, because then you're only running code when your item is used or when your block is right-clicked, not on every player Interaction
    1 point
  2. I'm nowhere near a pro, and I do not feel very qualified to answer this. However, that said, I do recommend deleting your Minecraft resource files (the folders "assets" "versions" and "libraries") in "%appdata%\.minecraft" (on Windows) and then running Minecraft 1.16.4 from the vanilla launcher again.
    1 point
  3. hi This tutorial has two examples of entity registration that you might find helpful https://github.com/TheGreyGhost/MinecraftByExample/tree/master/src/main/java/minecraftbyexample/mbe81_entity_projectile -tgg
    1 point
  4. Hey, I may be misunderstanding what you want to do, but make sure you do not change the version string in mods.toml. It should be: version="${file.jarVersion}" That string will be auto-replaced by gradle. In build.gradle under jar/manifest/attributes, you can set "Implementation-Version" to "project.version". e.g. "Implementation-Version": project.version, This should be enough for gradle to pull the version from the Jar Metadata. Note: If you are running from Eclipse your Mod's Version may display as "NONE", that's fine. When you actually create a jar for your mod, for instance with the "build/jar" Gradle Task. That jar should have a valid version when you drop it into a "mods" folder.
    1 point
×
×
  • Create New...

Important Information

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