1.19-1.0.1-unstable
This commit is contained in:
10
src/main/java/net/arcmods/ryantlg/customToolItemClasses/not/notAxeItem.java
Executable file
10
src/main/java/net/arcmods/ryantlg/customToolItemClasses/not/notAxeItem.java
Executable file
@@ -0,0 +1,10 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.not;
|
||||
|
||||
import net.minecraft.item.AxeItem;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
|
||||
public class notAxeItem extends AxeItem {
|
||||
public notAxeItem(ToolMaterial material, int attackDamage, float attackSpeed, Settings settings) {
|
||||
super(material, attackDamage, attackSpeed, settings);
|
||||
}
|
||||
}
|
||||
11
src/main/java/net/arcmods/ryantlg/customToolItemClasses/not/notHoeItem.java
Executable file
11
src/main/java/net/arcmods/ryantlg/customToolItemClasses/not/notHoeItem.java
Executable file
@@ -0,0 +1,11 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.not;
|
||||
|
||||
import net.minecraft.item.HoeItem;
|
||||
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
|
||||
public class notHoeItem extends HoeItem {
|
||||
public notHoeItem(ToolMaterial material, int attackDamage, float attackSpeed, Settings settings) {
|
||||
super(material, attackDamage, attackSpeed, settings);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.not;
|
||||
|
||||
import net.minecraft.item.PickaxeItem;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
|
||||
public class notPickaxeItem extends PickaxeItem {
|
||||
public notPickaxeItem(ToolMaterial material, int attackDamage, float attackSpeed, Settings settings) {
|
||||
super(material, attackDamage, attackSpeed, settings);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.not;
|
||||
|
||||
import net.minecraft.item.ShovelItem;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
|
||||
public class notShovelItem extends ShovelItem{
|
||||
|
||||
public notShovelItem(ToolMaterial material, float attackDamage, float attackSpeed, Settings settings) {
|
||||
super(material, attackDamage, attackSpeed, settings);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.not;
|
||||
|
||||
import net.minecraft.item.SwordItem;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
|
||||
public class notSwordItem extends SwordItem{
|
||||
|
||||
public notSwordItem(ToolMaterial toolMaterial, int attackDamage, float attackSpeed, Settings settings) {
|
||||
super(toolMaterial, attackDamage, attackSpeed, settings);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -20,6 +20,7 @@ import net.arcmods.ryantlg.items.miscItems.FunnyItems;
|
||||
import net.arcmods.ryantlg.items.miscItems.OtherItems;
|
||||
import net.arcmods.ryantlg.items.miscItems.fabricOfReality;
|
||||
import net.arcmods.ryantlg.items.tools.jeremiumTools;
|
||||
import net.arcmods.ryantlg.items.tools.notTools;
|
||||
import net.arcmods.ryantlg.items.tools.omniumTools;
|
||||
import net.arcmods.ryantlg.items.tools.oriumTools;
|
||||
import net.arcmods.ryantlg.lootTables.grassVanillaWeem;
|
||||
@@ -100,6 +101,7 @@ public class gameritems implements ModInitializer {
|
||||
JeremiumOreGen.register();
|
||||
|
||||
notArmour.register();
|
||||
notTools.register();
|
||||
gamerBow.register();
|
||||
// stupidBow.register(); // incomplete: lazy
|
||||
|
||||
|
||||
34
src/main/java/net/arcmods/ryantlg/items/tools/notTools.java
Normal file
34
src/main/java/net/arcmods/ryantlg/items/tools/notTools.java
Normal file
@@ -0,0 +1,34 @@
|
||||
package net.arcmods.ryantlg.items.tools;
|
||||
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.not.notAxeItem;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.not.notHoeItem;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.not.notPickaxeItem;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.not.notShovelItem;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.not.notSwordItem;
|
||||
import net.arcmods.ryantlg.toolMaterials.notToolMaterial;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ToolItem;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.Rarity;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class notTools {
|
||||
|
||||
public static ToolItem NOT_SWORD = new notSwordItem(notToolMaterial.INSTANCE, 6, -0.1F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem NOT_PICKAXE = new notPickaxeItem(notToolMaterial.INSTANCE, -48, -0.1F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem NOT_SHOVEL = new notShovelItem(notToolMaterial.INSTANCE, -40, -0.1F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem NOT_AXE = new notAxeItem(notToolMaterial.INSTANCE, 10, -0.1F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem NOT_HOE = new notHoeItem(notToolMaterial.INSTANCE, -49, -0.1F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.EPIC));
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "not_sword"), NOT_SWORD);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "not_pickaxe"), NOT_PICKAXE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "not_shovel"), NOT_SHOVEL);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "not_axe"), NOT_AXE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "not_hoe"), NOT_HOE);
|
||||
|
||||
gameritems.LOGGER.info("notTools loaded");
|
||||
}
|
||||
}
|
||||
36
src/main/java/net/arcmods/ryantlg/toolMaterials/notToolMaterial.java
Executable file
36
src/main/java/net/arcmods/ryantlg/toolMaterials/notToolMaterial.java
Executable file
@@ -0,0 +1,36 @@
|
||||
package net.arcmods.ryantlg.toolMaterials;
|
||||
|
||||
import net.arcmods.ryantlg.items.miscItems.fabricOfReality;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
import net.minecraft.recipe.Ingredient;
|
||||
|
||||
public class notToolMaterial implements ToolMaterial {
|
||||
|
||||
public static final notToolMaterial INSTANCE = new notToolMaterial();
|
||||
|
||||
@Override
|
||||
public int getDurability() {
|
||||
return 50000;
|
||||
}
|
||||
@Override
|
||||
public float getMiningSpeedMultiplier() {
|
||||
return 50.0F;
|
||||
}
|
||||
@Override
|
||||
public float getAttackDamage() {
|
||||
return 50.0F;
|
||||
}
|
||||
@Override
|
||||
public int getMiningLevel() {
|
||||
return 4;
|
||||
}
|
||||
@Override
|
||||
public int getEnchantability() {
|
||||
return 50;
|
||||
}
|
||||
@Override
|
||||
public Ingredient getRepairIngredient() {
|
||||
return Ingredient.ofItems(fabricOfReality.FABRIC_OF_REALITY);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user