Skip to content

Commit

Permalink
bruh
Browse files Browse the repository at this point in the history
  • Loading branch information
ArduFish committed Jul 17, 2024
1 parent 85b2701 commit fb9a66d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/ro/fishmc/ModItems.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
package ro.fishmc;

import eu.raspberrymods.fishlib.ObsidianTool;
import net.minecraft.component.type.AttributeModifiersComponent;
import net.minecraft.item.Item;
import net.minecraft.item.SwordItem;
import net.minecraft.item.ToolMaterials;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.util.Identifier;
import net.minecraft.util.Rarity;

import static net.minecraft.item.Items.register;

Expand All @@ -20,8 +23,11 @@ public static Item register(Item item, String id) {
// Return the registered item!
return registeredItem;
}
public static final Item OBSIDIAN_CLAYMORE = register(new SwordItem(ObsidianTool.INSTANCE, new Item.Settings()), "obsidian_claymore");

public static final Item OBSIDIAN_CLAYMORE = register(new SwordItem(ObsidianTool.INSTANCE, new Item.Settings().maxCount(1).fireproof().attributeModifiers(
SwordItem.createAttributeModifiers(
ObsidianTool.INSTANCE,
15, -3f))), "obsidian_claymore");
public static void initialize() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/handheld",
"textures": {
"layer0": "fishmc:item/obsidian_claymore"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fb9a66d

Please sign in to comment.