added remaining items and lead ore
|
|
@ -1,5 +1,6 @@
|
||||||
package com.skdevstudios.util_rings;
|
package com.skdevstudios.util_rings;
|
||||||
|
|
||||||
|
import com.skdevstudios.util_rings.init.BlockInit;
|
||||||
import com.skdevstudios.util_rings.init.CreativeTabInit;
|
import com.skdevstudios.util_rings.init.CreativeTabInit;
|
||||||
import com.skdevstudios.util_rings.init.ItemsInit;
|
import com.skdevstudios.util_rings.init.ItemsInit;
|
||||||
|
|
||||||
|
|
@ -22,6 +23,8 @@ public class UtilRings
|
||||||
IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
|
IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
|
||||||
//Register the Items
|
//Register the Items
|
||||||
ItemsInit.ITEMS.register(modEventBus);
|
ItemsInit.ITEMS.register(modEventBus);
|
||||||
|
//Register the Blocks
|
||||||
|
BlockInit.BLOCKS.register(modEventBus);
|
||||||
//Register the Creative Tabs
|
//Register the Creative Tabs
|
||||||
CreativeTabInit.CREATIVE_MODE_TABS.register(modEventBus);
|
CreativeTabInit.CREATIVE_MODE_TABS.register(modEventBus);
|
||||||
// Register the Event Bus
|
// Register the Event Bus
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.skdevstudios.util_rings.init;
|
||||||
|
|
||||||
|
import com.skdevstudios.util_rings.UtilRings;
|
||||||
|
|
||||||
|
import net.minecraft.world.level.block.Block;
|
||||||
|
import net.minecraft.world.level.block.Blocks;
|
||||||
|
import net.minecraft.world.level.block.state.BlockBehaviour;
|
||||||
|
import net.minecraftforge.registries.DeferredRegister;
|
||||||
|
import net.minecraftforge.registries.ForgeRegistries;
|
||||||
|
import net.minecraftforge.registries.RegistryObject;
|
||||||
|
|
||||||
|
public class BlockInit {
|
||||||
|
public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, UtilRings.MODID);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> LEAD_ORE = BLOCKS.register("lead_ore", () -> new Block(BlockBehaviour.Properties.copy(Blocks.IRON_ORE)));
|
||||||
|
}
|
||||||
|
|
@ -17,12 +17,32 @@ public class CreativeTabInit {
|
||||||
public static final RegistryObject<CreativeModeTab> UTIL_RINGS_TAB = CREATIVE_MODE_TABS.register("rings_tab", () -> CreativeModeTab.builder()
|
public static final RegistryObject<CreativeModeTab> UTIL_RINGS_TAB = CREATIVE_MODE_TABS.register("rings_tab", () -> CreativeModeTab.builder()
|
||||||
.title(Component.translatable("itemGroup.rings_tab"))
|
.title(Component.translatable("itemGroup.rings_tab"))
|
||||||
.withTabsBefore(CreativeModeTabs.COMBAT)
|
.withTabsBefore(CreativeModeTabs.COMBAT)
|
||||||
.icon(() -> ItemsInit.IRON_RING.get().getDefaultInstance())
|
.icon(() -> ItemsInit.JEWELERS_HAMMER.get().getDefaultInstance())
|
||||||
.displayItems((parameters, output) -> {
|
.displayItems((parameters, output) -> {
|
||||||
output.accept(ItemsInit.IRON_RING.get());
|
output.accept(ItemsInit.IRON_RING.get());
|
||||||
|
output.accept(ItemsInit.IRON_RING_LEFT.get());
|
||||||
|
output.accept(ItemsInit.IRON_RING_TOP.get());
|
||||||
|
output.accept(ItemsInit.IRON_RING_BOTTOM.get());
|
||||||
|
output.accept(ItemsInit.IRON_RING_RIGHT.get());
|
||||||
|
output.accept(ItemsInit.JEWELERS_HAMMER.get());
|
||||||
|
output.accept(ItemsInit.LEAD_DUST.get());
|
||||||
|
output.accept(ItemsInit.LEAD_NUGGET.get());
|
||||||
|
output.accept(ItemsInit.LEAD_INGOT.get());
|
||||||
|
output.accept(ItemsInit.TIN_DUST.get());
|
||||||
|
output.accept(ItemsInit.TIN_NUGGET.get());
|
||||||
|
output.accept(ItemsInit.TIN_INGOT.get());
|
||||||
|
output.accept(ItemsInit.PINE_TAR.get());
|
||||||
|
output.accept(ItemsInit.PINE_CONE.get());
|
||||||
|
output.accept(ItemsInit.ROSIN_SOLUTION.get());
|
||||||
|
output.accept(ItemsInit.ROSIN.get());
|
||||||
|
output.accept(ItemsInit.SOLDER_BLEND.get());
|
||||||
|
output.accept(ItemsInit.SOLDER_SHOT.get());
|
||||||
|
output.accept(ItemsInit.SOLDER_SPOOL.get());
|
||||||
|
output.accept(ItemsInit.SOLDER_WIRE.get());
|
||||||
output.accept(ItemsInit.VOLCANIC_GLASS_RING.get());
|
output.accept(ItemsInit.VOLCANIC_GLASS_RING.get());
|
||||||
output.accept(ItemsInit.MAGNET_RING.get());
|
output.accept(ItemsInit.MAGNET_RING.get());
|
||||||
output.accept(ItemsInit.GROWTH_RING.get());
|
output.accept(ItemsInit.GROWTH_RING.get());
|
||||||
|
output.accept(BlockInit.LEAD_ORE.get());
|
||||||
})
|
})
|
||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ import com.skdevstudios.util_rings.items.GrowthRing;
|
||||||
import com.skdevstudios.util_rings.items.MagnetRing;
|
import com.skdevstudios.util_rings.items.MagnetRing;
|
||||||
import com.skdevstudios.util_rings.items.VolcanicGlassRing;
|
import com.skdevstudios.util_rings.items.VolcanicGlassRing;
|
||||||
|
|
||||||
|
import net.minecraft.world.item.BlockItem;
|
||||||
import net.minecraft.world.item.Item;
|
import net.minecraft.world.item.Item;
|
||||||
import net.minecraftforge.registries.DeferredRegister;
|
import net.minecraftforge.registries.DeferredRegister;
|
||||||
import net.minecraftforge.registries.ForgeRegistries;
|
import net.minecraftforge.registries.ForgeRegistries;
|
||||||
|
|
@ -15,8 +16,28 @@ public class ItemsInit {
|
||||||
public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, UtilRings.MODID);
|
public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, UtilRings.MODID);
|
||||||
|
|
||||||
public static final RegistryObject<Item> IRON_RING = ITEMS.register("iron_ring", () -> new Item(new Item.Properties().stacksTo(1)));
|
public static final RegistryObject<Item> IRON_RING = ITEMS.register("iron_ring", () -> new Item(new Item.Properties().stacksTo(1)));
|
||||||
|
public static final RegistryObject<Item> IRON_RING_LEFT = ITEMS.register("iron_ring_left", () -> new Item(new Item.Properties().stacksTo(1)));
|
||||||
|
public static final RegistryObject<Item> IRON_RING_TOP = ITEMS.register("iron_ring_top", () -> new Item(new Item.Properties().stacksTo(1)));
|
||||||
|
public static final RegistryObject<Item> IRON_RING_BOTTOM = ITEMS.register("iron_ring_bottom", () -> new Item(new Item.Properties().stacksTo(1)));
|
||||||
|
public static final RegistryObject<Item> IRON_RING_RIGHT = ITEMS.register("iron_ring_right", () -> new Item(new Item.Properties().stacksTo(1)));
|
||||||
|
public static final RegistryObject<Item> JEWELERS_HAMMER = ITEMS.register("jewelers_hammer", () -> new Item(new Item.Properties().stacksTo(1)));
|
||||||
|
public static final RegistryObject<Item> LEAD_DUST = ITEMS.register("lead_dust", () -> new Item(new Item.Properties().stacksTo(1)));
|
||||||
|
public static final RegistryObject<Item> LEAD_NUGGET = ITEMS.register("lead_nugget", () -> new Item(new Item.Properties().stacksTo(1)));
|
||||||
|
public static final RegistryObject<Item> LEAD_INGOT = ITEMS.register("lead_ingot", () -> new Item(new Item.Properties().stacksTo(1)));
|
||||||
|
public static final RegistryObject<Item> TIN_DUST = ITEMS.register("tin_dust", () -> new Item(new Item.Properties().stacksTo(1)));
|
||||||
|
public static final RegistryObject<Item> TIN_NUGGET = ITEMS.register("tin_nugget", () -> new Item(new Item.Properties().stacksTo(1)));
|
||||||
|
public static final RegistryObject<Item> TIN_INGOT = ITEMS.register("tin_ingot", () -> new Item(new Item.Properties().stacksTo(1)));
|
||||||
|
public static final RegistryObject<Item> PINE_TAR = ITEMS.register("pine_tar", () -> new Item(new Item.Properties().stacksTo(1)));
|
||||||
|
public static final RegistryObject<Item> PINE_CONE = ITEMS.register("pine_cone", () -> new Item(new Item.Properties().stacksTo(1)));
|
||||||
|
public static final RegistryObject<Item> ROSIN_SOLUTION = ITEMS.register("rosin_solution", () -> new Item(new Item.Properties().stacksTo(1)));
|
||||||
|
public static final RegistryObject<Item> ROSIN = ITEMS.register("rosin", () -> new Item(new Item.Properties().stacksTo(1)));
|
||||||
|
public static final RegistryObject<Item> SOLDER_BLEND = ITEMS.register("solder_blend", () -> new Item(new Item.Properties().stacksTo(1)));
|
||||||
|
public static final RegistryObject<Item> SOLDER_SHOT = ITEMS.register("solder_shot", () -> new Item(new Item.Properties().stacksTo(1)));
|
||||||
|
public static final RegistryObject<Item> SOLDER_SPOOL = ITEMS.register("solder_spool", () -> new Item(new Item.Properties().stacksTo(1)));
|
||||||
|
public static final RegistryObject<Item> SOLDER_WIRE = ITEMS.register("solder_wire", () -> new Item(new Item.Properties().stacksTo(1)));
|
||||||
public static final RegistryObject<Item> VOLCANIC_GLASS_RING = ITEMS.register("volcanic_glass_ring", () -> new VolcanicGlassRing(new Item.Properties().stacksTo(1)));
|
public static final RegistryObject<Item> VOLCANIC_GLASS_RING = ITEMS.register("volcanic_glass_ring", () -> new VolcanicGlassRing(new Item.Properties().stacksTo(1)));
|
||||||
public static final RegistryObject<Item> MAGNET_RING = ITEMS.register("magnet_ring", () -> new MagnetRing(new Item.Properties().stacksTo(1)));
|
public static final RegistryObject<Item> MAGNET_RING = ITEMS.register("magnet_ring", () -> new MagnetRing(new Item.Properties().stacksTo(1)));
|
||||||
public static final RegistryObject<Item> GROWTH_RING = ITEMS.register("growth_ring", () -> new GrowthRing(new Item.Properties().stacksTo(1)));
|
public static final RegistryObject<Item> GROWTH_RING = ITEMS.register("growth_ring", () -> new GrowthRing(new Item.Properties().stacksTo(1)));
|
||||||
|
public static final RegistryObject<BlockItem> LEAD_ORE_ITEM = ITEMS.register("lead_ore", () -> new BlockItem(BlockInit.LEAD_ORE.get(), new Item.Properties()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"": {
|
||||||
|
"model": "util_rings:block/lead_ore"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -3,5 +3,25 @@
|
||||||
"item.util_rings.volcanic_glass_ring": "Ring of Volcanic Glass",
|
"item.util_rings.volcanic_glass_ring": "Ring of Volcanic Glass",
|
||||||
"item.util_rings.magnet_ring": "Ring of Magnatism",
|
"item.util_rings.magnet_ring": "Ring of Magnatism",
|
||||||
"item.util_rings.growth_ring": "Ring of Accelerated Growth",
|
"item.util_rings.growth_ring": "Ring of Accelerated Growth",
|
||||||
|
"item.util_rings.iron_ring_right": "Iron Ring Parts Right",
|
||||||
|
"item.util_rings.iron_ring_top": "Iron Ring Parts Top",
|
||||||
|
"item.util_rings.iron_ring_bottom": "Iron Ring Parts Bottom",
|
||||||
|
"item.util_rings.iron_ring_left": "Iron Ring Parts Left",
|
||||||
|
"item.util_rings.jewelers_hammer": "Jewelers Hammer",
|
||||||
|
"item.util_rings.lead_dust": "Lead Dust",
|
||||||
|
"item.util_rings.lead_nugget": "Lead Nugget",
|
||||||
|
"item.util_rings.lead_ingot": "Lead Ingot",
|
||||||
|
"item.util_rings.pine_tar": "Pine Tar",
|
||||||
|
"item.util_rings.pine_cone": "Pine Cone",
|
||||||
|
"item.util_rings.rosin_solution": "Rosin Solution",
|
||||||
|
"item.util_rings.rosin": "Rosin",
|
||||||
|
"item.util_rings.solder_blend": "Solder Blend",
|
||||||
|
"item.util_rings.solder_shot": "Solder Shot",
|
||||||
|
"item.util_rings.solder_spool": "Solder Spool",
|
||||||
|
"item.util_rings.solder_wire": "Solder Wire",
|
||||||
|
"item.util_rings.tin_dust": "Tin Dust",
|
||||||
|
"item.util_rings.tin_nugget": "Tin Nugget",
|
||||||
|
"item.util_rings.tin_ingot": "Tin Ingot",
|
||||||
|
"block.util_rings.lead_ore": "Lead Ore",
|
||||||
"itemGroup.rings_tab": "Utility Rings"
|
"itemGroup.rings_tab": "Utility Rings"
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent":"minecraft:block/cube_all",
|
||||||
|
"textures":{
|
||||||
|
"all":"util_rings:block/lead_ore"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent":"minecraft:item/generated",
|
||||||
|
"textures":{
|
||||||
|
"layer0":"util_rings:item/iron_ring_bottom"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent":"minecraft:item/generated",
|
||||||
|
"textures":{
|
||||||
|
"layer0":"util_rings:item/iron_ring_left"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent":"minecraft:item/generated",
|
||||||
|
"textures":{
|
||||||
|
"layer0":"util_rings:item/iron_ring_right"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent":"minecraft:item/generated",
|
||||||
|
"textures":{
|
||||||
|
"layer0":"util_rings:item/iron_ring_top"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent":"minecraft:item/generated",
|
||||||
|
"textures":{
|
||||||
|
"layer0":"util_rings:item/jewelers_hammer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent":"minecraft:item/generated",
|
||||||
|
"textures":{
|
||||||
|
"layer0":"util_rings:item/lead_dust"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent":"minecraft:item/generated",
|
||||||
|
"textures":{
|
||||||
|
"layer0":"util_rings:item/lead_ingot"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent":"minecraft:item/generated",
|
||||||
|
"textures":{
|
||||||
|
"layer0":"util_rings:item/lead_nugget"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"parent": "util_rings:block/lead_ore"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent":"minecraft:item/generated",
|
||||||
|
"textures":{
|
||||||
|
"layer0":"util_rings:item/pine_cone"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent":"minecraft:item/generated",
|
||||||
|
"textures":{
|
||||||
|
"layer0":"util_rings:item/pine_tar"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent":"minecraft:item/generated",
|
||||||
|
"textures":{
|
||||||
|
"layer0":"util_rings:item/rosin"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent":"minecraft:item/generated",
|
||||||
|
"textures":{
|
||||||
|
"layer0":"util_rings:item/rosin_solution"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent":"minecraft:item/generated",
|
||||||
|
"textures":{
|
||||||
|
"layer0":"util_rings:item/solder_blend"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent":"minecraft:item/generated",
|
||||||
|
"textures":{
|
||||||
|
"layer0":"util_rings:item/solder_shot"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent":"minecraft:item/generated",
|
||||||
|
"textures":{
|
||||||
|
"layer0":"util_rings:item/solder_spool"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent":"minecraft:item/generated",
|
||||||
|
"textures":{
|
||||||
|
"layer0":"util_rings:item/solder_wire"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent":"minecraft:item/generated",
|
||||||
|
"textures":{
|
||||||
|
"layer0":"util_rings:item/tin_dust"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent":"minecraft:item/generated",
|
||||||
|
"textures":{
|
||||||
|
"layer0":"util_rings:item/tin_ingot"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent":"minecraft:item/generated",
|
||||||
|
"textures":{
|
||||||
|
"layer0":"util_rings:item/tin_nugget"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Before Width: | Height: | Size: 241 B After Width: | Height: | Size: 241 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 704 B After Width: | Height: | Size: 704 B |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |