mna
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.stupidium;
|
||||
|
||||
import net.minecraft.item.AxeItem;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
|
||||
public class StupidiumAxeItem extends AxeItem {
|
||||
|
||||
public StupidiumAxeItem(ToolMaterial material, float attackDamage, float attackSpeed, Settings settings) {
|
||||
super(material, attackDamage, attackSpeed, settings);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.stupidium;
|
||||
|
||||
import net.minecraft.item.BowItem;
|
||||
import net.arcmods.ryantlg.statusEffects.GamerEffects;
|
||||
import net.minecraft.entity.LivingEntity;
|
||||
import net.minecraft.entity.effect.StatusEffectInstance;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class StupidiumBowItem extends BowItem{
|
||||
|
||||
public StupidiumBowItem(Settings settings) {
|
||||
super(settings);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean postHit(ItemStack stack, LivingEntity attackee, LivingEntity attacker) {
|
||||
attackee.addStatusEffect(new StatusEffectInstance(GamerEffects.STUPID, 20*5, 0), attacker);
|
||||
return super.postHit(stack, attackee, attacker);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.stupidium;
|
||||
|
||||
import net.minecraft.item.HoeItem;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
|
||||
public class StupidiumHoeItem extends HoeItem{
|
||||
|
||||
public StupidiumHoeItem(ToolMaterial material, int attackDamage, float attackSpeed, Settings settings) {
|
||||
super(material, attackDamage, attackSpeed, settings);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.stupidium;
|
||||
|
||||
import net.minecraft.item.PickaxeItem;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
|
||||
public class StupidiumPickaxeItem extends PickaxeItem{
|
||||
|
||||
public StupidiumPickaxeItem(ToolMaterial material, int attackDamage, float attackSpeed, Settings settings) {
|
||||
super(material, attackDamage, attackSpeed, settings);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.stupidium;
|
||||
|
||||
import net.minecraft.item.ShovelItem;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
|
||||
public class StupidiumShovelItem extends ShovelItem{
|
||||
|
||||
public StupidiumShovelItem(ToolMaterial material, float attackDamage, float attackSpeed, Settings settings) {
|
||||
super(material, attackDamage, attackSpeed, settings);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.stupidium;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.entity.LivingEntity;
|
||||
import net.minecraft.entity.effect.StatusEffectInstance;
|
||||
import net.arcmods.ryantlg.statusEffects.GamerEffects;
|
||||
import net.minecraft.client.item.TooltipContext;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.SwordItem;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.util.Formatting;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class StupidiumSwordItem extends SwordItem {
|
||||
public StupidiumSwordItem(ToolMaterial material, int attackDamage, float attackSpeed, Settings settings) {
|
||||
super(material, attackDamage, attackSpeed, settings);
|
||||
}
|
||||
@Override
|
||||
public void appendTooltip(ItemStack itemStack, World world, List<Text> tooltip, TooltipContext tooltipContext) {
|
||||
tooltip.add(Text.translatable("item.gameritems.stupidium_tools.tooltip").formatted(Formatting.DARK_PURPLE, Formatting.ITALIC) );
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean postHit(ItemStack stack, LivingEntity attackee, LivingEntity attacker) {
|
||||
attackee.addStatusEffect(new StatusEffectInstance(GamerEffects.STUPID, 20*6, 0), attacker);
|
||||
return super.postHit(stack, attackee, attacker);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user