Minecraft PC IP: play.cubecraft.net

DrHam

Forum Professional
Sep 15, 2015
3,615
4,166
558
Kepler-452b
Hello, I'm posting this little thing that may help some people (when you touch water it kills you):
Code:
@EventHandler
public void onPlayerMove(PlayerMoveEvent e) {
    Material m = e.getPlayer().getLocation().getBlock().getType();
    if (m == Material.STATIONARY_WATER || m == Material
       p.setHealt(0,0);

I'll make explanation later
 
Members Online

Latest profile posts

It's been over 3 years since I reached #1 on the EggWars leaderboard.

Time flies, and I really miss the 2018–2023 Java community.

I never thought I'd miss it this much...
how to apply for owner
aienmg9 wrote on SfenKer's profile.
Hi, can I be your first friend?
starblade9603 wrote on AnolTongi's profile.
Sr.mod when?
Marcenator wrote on Auri's profile.
And happy birthday if it's your birthday 🎊🎊.I wish you some good coding skills and health. Also happiness obviously
Top Bottom