+ Added Ruby and Sapphire tools

main
Herobane 11 months ago
parent e9c074f037
commit 4a5cf46170

@ -51,6 +51,17 @@ public class Learning {
event.accept(ModItems.SAPPHIRE_SWORD);
}
if(event.getTabKey() == CreativeModeTabs.TOOLS_AND_UTILITIES) {
event.accept(ModItems.RUBY_SHOVEL);
event.accept(ModItems.RUBY_PICKAXE);
event.accept(ModItems.RUBY_AXE);
event.accept(ModItems.RUBY_HOE);
event.accept(ModItems.SAPPHIRE_SHOVEL);
event.accept(ModItems.SAPPHIRE_PICKAXE);
event.accept(ModItems.SAPPHIRE_AXE);
event.accept(ModItems.SAPPHIRE_HOE);
}
}
@SubscribeEvent

@ -1,7 +1,11 @@
package net.herobane.learning.item;
import net.herobane.learning.Learning;
import net.minecraft.world.item.AxeItem;
import net.minecraft.world.item.HoeItem;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.PickaxeItem;
import net.minecraft.world.item.ShovelItem;
import net.minecraft.world.item.SwordItem;
import net.minecraft.world.item.Tiers;
import net.minecraftforge.eventbus.api.IEventBus;
@ -20,6 +24,18 @@ public class ModItems {
// Tools and weapons
public static final RegistryObject<Item> RUBY_SWORD = ITEMS.register("ruby_sword", () -> new SwordItem(Tiers.DIAMOND, 3, -2.4f, new Item.Properties()));
public static final RegistryObject<Item> SAPPHIRE_SWORD = ITEMS.register("sapphire_sword", () -> new SwordItem(Tiers.DIAMOND, 3, -2.4f, new Item.Properties()));
public static final RegistryObject<Item> RUBY_AXE = ITEMS.register("ruby_axe", () -> new AxeItem(Tiers.DIAMOND, 5.0f, -3.0f, new Item.Properties()));
public static final RegistryObject<Item> SAPPHIRE_AXE = ITEMS.register("sapphire_axe", () -> new AxeItem(Tiers.DIAMOND, 5.0f, -3.0f, new Item.Properties()));
public static final RegistryObject<Item> RUBY_PICKAXE = ITEMS.register("ruby_pickaxe", () -> new PickaxeItem(Tiers.DIAMOND, 1, -2.8f, new Item.Properties()));
public static final RegistryObject<Item> SAPPHIRE_PICKAXE = ITEMS.register("sapphire_pickaxe", () -> new PickaxeItem(Tiers.DIAMOND, 1, -2.8f, new Item.Properties()));
public static final RegistryObject<Item> RUBY_SHOVEL = ITEMS.register("ruby_shovel", () -> new ShovelItem(Tiers.DIAMOND, 1.5f, -3.0f, new Item.Properties()));
public static final RegistryObject<Item> SAPPHIRE_SHOVEL = ITEMS.register("sapphire_shovel", () -> new ShovelItem(Tiers.DIAMOND, 1.5f, -3.0f, new Item.Properties()));
public static final RegistryObject<Item> RUBY_HOE = ITEMS.register("ruby_hoe", () -> new HoeItem(Tiers.DIAMOND, -3, .0f, new Item.Properties()));
public static final RegistryObject<Item> SAPPHIRE_HOE = ITEMS.register("sapphire_hoe", () -> new HoeItem(Tiers.DIAMOND, -3, .0f, new Item.Properties()));
public static void register(IEventBus eventBus) {

@ -3,5 +3,17 @@
"item.learning.sapphire": "Sapphire",
"item.learning.ruby_sword": "Ruby Sword",
"item.learning.sapphire_sword": "Sapphire Sword"
"item.learning.sapphire_sword": "Sapphire Sword",
"item.learning.ruby_axe": "Ruby Axe",
"item.learning.sapphire_axe": "Sapphire Axe",
"item.learning.ruby_pickaxe": "Ruby Pickaxe",
"item.learning.sapphire_pickaxe": "Sapphire Pickaxe",
"item.learning.ruby_shovel": "Ruby Shovel",
"item.learning.sapphire_shovel": "Sapphire Shovel",
"item.learning.ruby_hoe": "Ruby Hoe",
"item.learning.sapphire_hoe": "Sapphire Hoe"
}

@ -2,6 +2,18 @@
"item.learning.ruby": "Rubis",
"item.learning.sapphire": "Saphir",
"item.learning.ruby_sword": "Epee de Rubis",
"item.learning.sapphire_sword": "Epee de Saphir"
"item.learning.ruby_sword": "Épée en rubis",
"item.learning.sapphire_sword": "Épée en saphir",
"item.learning.ruby_axe": "Hache en rubis",
"item.learning.sapphire_axe": "Hache en saphir",
"item.learning.ruby_pickaxe": "Pioche en rubis",
"item.learning.sapphire_pickaxe": "Pioche en saphir",
"item.learning.ruby_shovel": "Pelle en rubis",
"item.learning.sapphire_shovel": "Pelle en saphir",
"item.learning.ruby_hoe": "Houe en rubis",
"item.learning.sapphire_hoe": "Houe en saphir"
}

@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "learning:item/ruby_axe"
}
}

@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "learning:item/ruby_hoe"
}
}

@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "learning:item/ruby_pickaxe"
}
}

@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "learning:item/ruby_shovel"
}
}

@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "learning:item/sapphire_axe"
}
}

@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "learning:item/sapphire_hoe"
}
}

@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "learning:item/sapphire_pickaxe"
}
}

@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "learning:item/sapphire_shovel"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 775 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 772 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 741 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 772 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 756 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 747 B

Loading…
Cancel
Save