Minecraft PC IP: play.cubecraft.net

DrHam

Forum Veteran
Sep 15, 2015
3,615
4,165
518
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

Team online

Latest posts

Latest profile posts

Xi1m wrote on TheOrderOfSapphire's profile.
:3🍜
TheOrderOfSapphire wrote on thejumboyt's profile.
Welcome to the forums! I hope you will like it here!:D
I may or may not have bought 6 Birthday Bundles (used one on myself) and I may or may not do a Giveaway for 1 soon 😉
IMG_5319.png
Top Bottom