kingsoul
This commit is contained in:
parent
d8ebb6e36a
commit
9a7797177d
@ -1,5 +1,7 @@
|
|||||||
package net.serenas.shitmod;
|
package net.serenas.shitmod;
|
||||||
|
|
||||||
|
import java.io.Console;
|
||||||
|
|
||||||
import net.minecraft.entity.effect.StatusEffect;
|
import net.minecraft.entity.effect.StatusEffect;
|
||||||
import net.minecraft.entity.effect.StatusEffectInstance;
|
import net.minecraft.entity.effect.StatusEffectInstance;
|
||||||
import net.minecraft.entity.player.PlayerEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
@ -16,9 +18,11 @@ public class kingsoul extends Item {
|
|||||||
super(settings);
|
super(settings);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TypedActionResult<ItemStack> use(World world, PlayerEntity playerentity, Hand hand) {
|
public TypedActionResult<ItemStack> use(World world, PlayerEntity PlayerEntity, Hand hand) {
|
||||||
boolean kingSoulActive = false;
|
boolean kingSoulActive;
|
||||||
|
|
||||||
if (kingSoulActive == true) {
|
if (kingSoulActive == true) {
|
||||||
kingSoulActive = false;
|
kingSoulActive = false;
|
||||||
@ -26,13 +30,14 @@ public class kingsoul extends Item {
|
|||||||
kingSoulActive = true;
|
kingSoulActive = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return new TypedActionResult<ItemStack>(ActionResult.SUCCESS, playerentity.getStackInHand(hand));
|
return new TypedActionResult<ItemStack>(ActionResult.SUCCESS, PlayerEntity.getStackInHand(hand));
|
||||||
|
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public void
|
|
||||||
|
|
||||||
if (kingSoulActive == true) {
|
if (kingSoulActive == true) {
|
||||||
return new kingsoulEffect();
|
new kingsoulEffect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user