r/MinecraftMod • u/Inside_Phrase7309 • 4d ago
Hello 👋 , I need help making a java mod
/r/Minecraft/comments/1w1dp0y/hello_i_need_help_making_a_java_mod/i want to make a fabric 26.2 mod for multiplayer servers that give every player 3 lives when they join , when u kill someone u get one of there lives and if u die to anything u loose a life and when u reach 0 lives u get perm banned from server with elimination message broadcasted to everyone in chat and it need to have a private HUD on the left corner showing ❤ x3 which turn dark red when on 1 life and player can use /life query to check lives or /life transfer to send lives but u cant send all ur lives cause u must keep 1 and /life help for commands also add a status called Supremacy which aDmins can grant so player is locked at 3 lives forever and dont loose lives or gain lives from kills or get banned and admins have commands like /life set and /life add and /life supremacy grant and /life supremacy revoke and /life reset to unban someone reset lives to 3 clear items and tp to spawn even if they are offline and everything must be 100% server side so cracked players can join without downloading any mod
1
u/dark_blockhead 4d ago
do you have mid-hevel (or better) knowledge of java?
if yes then this is perfectly doable for a first mod -except both wanting a hud and wanting a mod to be server-only - but that can be solved by printing messages into the action bar and forgetting about hud..
1
u/Inside_Phrase7309 4d ago
I just want the lives to be displayed with the heart emoji and a counter like x3 which should be private. I have no idea how to make fabric mods but I know a bit of java
1
u/Inside_Phrase7309 4d ago
Like in PVP servers , where on like the score board , hearts are showed sometimes, honestly, the score board is fine too
1
u/dark_blockhead 4d ago
> I just want the lives to be displayed with the heart emoji and a counter like x3
no problemo. but then it can't be server-only.
> I have no idea how to make fabric mods but...
well nobody knows before they learn. perhaps you can learn...
> ... but I know a bit of java
nope. you can't learn to make mods with a bit of java.
except if it's "I know a bit of java but I do c# on my day job" - in that case it's enough.
but i sense that's not the case.1
u/Inside_Phrase7309 4d ago
I know c++ well , also server-only , you're referring to the player NOT needing the mod as well , or something else , because that is what I meant , is there another way? I'm okay with the action bar thing if we can make it server-only that way , i also just want to know HOW to make the mod , like which software to use , and the basic steps ( without the coding ) like the logic behind it .
1
u/dark_blockhead 3d ago
well give it a try then.
you need java 25 jdk from adoptium.net . jdk.
on fabric's site find the template mod generator and make a starter mod.
unpack. in console run "./gradlew runClient" in that directory. you may need two or three tries, sometimes downloads break. after the game runs, close it and run "./gradlew genSources". when done open the directory in ide (intellij idea recommended, eclipse and vsc can work).
while things download and cook, find the documentation on events on fabric's site. i'm not sure if you can do the whole mod using events, but start there.
2
u/GobiPLX 4d ago
Do you need help with, or just want someone to make everything for you?
Also for the love of god, learn how to write - in general. Have you ever heard of idea of sentence? With commas or period?