added oregen
This commit is contained in:
parent
d194f35dc5
commit
81955929d0
15 changed files with 111 additions and 21 deletions
|
|
@ -3,7 +3,6 @@ package com.skdevstudios.util_rings;
|
||||||
import com.skdevstudios.util_rings.init.BlockInit;
|
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;
|
||||||
import com.skdevstudios.util_rings.init.PotionInit;
|
|
||||||
|
|
||||||
import net.minecraftforge.common.MinecraftForge;
|
import net.minecraftforge.common.MinecraftForge;
|
||||||
import net.minecraftforge.eventbus.api.IEventBus;
|
import net.minecraftforge.eventbus.api.IEventBus;
|
||||||
|
|
@ -26,11 +25,8 @@ public class UtilRings
|
||||||
ItemsInit.ITEMS.register(modEventBus);
|
ItemsInit.ITEMS.register(modEventBus);
|
||||||
//Register the Blocks
|
//Register the Blocks
|
||||||
BlockInit.BLOCKS.register(modEventBus);
|
BlockInit.BLOCKS.register(modEventBus);
|
||||||
//Register the Potions
|
|
||||||
PotionInit.POTIONS.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
|
||||||
MinecraftForge.EVENT_BUS.register(this);
|
MinecraftForge.EVENT_BUS.register(this);
|
||||||
//Register the Config
|
//Register the Config
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,6 @@ public class PineLog extends Block {
|
||||||
@Override
|
@Override
|
||||||
public BlockState getStateForPlacement(BlockPlaceContext context) {
|
public BlockState getStateForPlacement(BlockPlaceContext context) {
|
||||||
Direction direction = context.getHorizontalDirection();
|
Direction direction = context.getHorizontalDirection();
|
||||||
return this.defaultBlockState().setValue(AXIS, direction.getAxis()).setValue(FACING, direction);
|
return this.defaultBlockState().setValue(AXIS, direction.getAxis());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ public class ItemsInit {
|
||||||
public static final RegistryObject<Item> LEAD_DUST = ITEMS.register("lead_dust", () -> new Item(new Item.Properties().stacksTo(64)));
|
public static final RegistryObject<Item> LEAD_DUST = ITEMS.register("lead_dust", () -> new Item(new Item.Properties().stacksTo(64)));
|
||||||
public static final RegistryObject<Item> LEAD_NUGGET = ITEMS.register("lead_nugget", () -> new Item(new Item.Properties().stacksTo(64)));
|
public static final RegistryObject<Item> LEAD_NUGGET = ITEMS.register("lead_nugget", () -> new Item(new Item.Properties().stacksTo(64)));
|
||||||
public static final RegistryObject<Item> LEAD_INGOT = ITEMS.register("lead_ingot", () -> new Item(new Item.Properties().stacksTo(64)));
|
public static final RegistryObject<Item> LEAD_INGOT = ITEMS.register("lead_ingot", () -> new Item(new Item.Properties().stacksTo(64)));
|
||||||
public static final RegistryObject<Item> RAW_TIN = ITEMS.register("raw_lead", () -> new Item(new Item.Properties().stacksTo(64)));
|
public static final RegistryObject<Item> RAW_TIN = ITEMS.register("raw_tin", () -> new Item(new Item.Properties().stacksTo(64)));
|
||||||
public static final RegistryObject<Item> TIN_DUST = ITEMS.register("tin_dust", () -> new Item(new Item.Properties().stacksTo(64)));
|
public static final RegistryObject<Item> TIN_DUST = ITEMS.register("tin_dust", () -> new Item(new Item.Properties().stacksTo(64)));
|
||||||
public static final RegistryObject<Item> TIN_NUGGET = ITEMS.register("tin_nugget", () -> new Item(new Item.Properties().stacksTo(64)));
|
public static final RegistryObject<Item> TIN_NUGGET = ITEMS.register("tin_nugget", () -> new Item(new Item.Properties().stacksTo(64)));
|
||||||
public static final RegistryObject<Item> TIN_INGOT = ITEMS.register("tin_ingot", () -> new Item(new Item.Properties().stacksTo(64)));
|
public static final RegistryObject<Item> TIN_INGOT = ITEMS.register("tin_ingot", () -> new Item(new Item.Properties().stacksTo(64)));
|
||||||
|
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
package com.skdevstudios.util_rings.init;
|
|
||||||
|
|
||||||
import com.skdevstudios.util_rings.UtilRings;
|
|
||||||
|
|
||||||
import net.minecraft.world.item.alchemy.Potion;
|
|
||||||
import net.minecraftforge.registries.DeferredRegister;
|
|
||||||
import net.minecraftforge.registries.ForgeRegistries;
|
|
||||||
|
|
||||||
public class PotionInit {
|
|
||||||
public static final DeferredRegister<Potion> POTIONS = DeferredRegister.create(ForgeRegistries.POTIONS, UtilRings.MODID);
|
|
||||||
}
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
"item.util_rings.iron_ring_top": "Iron Ring Parts Top",
|
"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_bottom": "Iron Ring Parts Bottom",
|
||||||
"item.util_rings.iron_ring_left": "Iron Ring Parts Left",
|
"item.util_rings.iron_ring_left": "Iron Ring Parts Left",
|
||||||
|
"item.util_rings.iron_plate": "Iron Plate",
|
||||||
"item.util_rings.jewelers_hammer": "Jewelers Hammer",
|
"item.util_rings.jewelers_hammer": "Jewelers Hammer",
|
||||||
"item.util_rings.lead_dust": "Lead Dust",
|
"item.util_rings.lead_dust": "Lead Dust",
|
||||||
"item.util_rings.lead_nugget": "Lead Nugget",
|
"item.util_rings.lead_nugget": "Lead Nugget",
|
||||||
|
|
@ -19,6 +20,8 @@
|
||||||
"item.util_rings.solder_shot": "Solder Shot",
|
"item.util_rings.solder_shot": "Solder Shot",
|
||||||
"item.util_rings.solder_spool": "Solder Spool",
|
"item.util_rings.solder_spool": "Solder Spool",
|
||||||
"item.util_rings.solder_wire": "Solder Wire",
|
"item.util_rings.solder_wire": "Solder Wire",
|
||||||
|
"item.util_rings.raw_lead": "Raw Lead",
|
||||||
|
"item.util_rings.raw_tin": "Raw Tin",
|
||||||
"item.util_rings.tin_dust": "Tin Dust",
|
"item.util_rings.tin_dust": "Tin Dust",
|
||||||
"item.util_rings.tin_nugget": "Tin Nugget",
|
"item.util_rings.tin_nugget": "Tin Nugget",
|
||||||
"item.util_rings.tin_ingot": "Tin Ingot",
|
"item.util_rings.tin_ingot": "Tin Ingot",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"parent":"minecraft:item/generated",
|
"parent":"minecraft:item/generated",
|
||||||
"textures":{
|
"textures":{
|
||||||
"layer0":"util_rings:item/iron_plate"
|
"layer0":"util_rings:item/raw_lead"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"parent":"minecraft:item/generated",
|
"parent":"minecraft:item/generated",
|
||||||
"textures":{
|
"textures":{
|
||||||
"layer0":"util_rings:item/iron_plate"
|
"layer0":"util_rings:item/raw_tin"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"type": "forge:add_features",
|
||||||
|
"features": "util_rings:lead_ore",
|
||||||
|
"biomes": "#minecraft:is_overworld",
|
||||||
|
"step": "underground_ores"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"type": "forge:add_features",
|
||||||
|
"features": "util_rings:tin_ore",
|
||||||
|
"biomes": "#minecraft:is_overworld",
|
||||||
|
"step": "underground_ores"
|
||||||
|
}
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
"entries": [
|
"entries": [
|
||||||
{
|
{
|
||||||
"type": "minecraft:item",
|
"type": "minecraft:item",
|
||||||
"name": "util_rings:lead_ore"
|
"name": "util_rings:raw_lead"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"conditions": [
|
"conditions": [
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
"entries": [
|
"entries": [
|
||||||
{
|
{
|
||||||
"type": "minecraft:item",
|
"type": "minecraft:item",
|
||||||
"name": "util_rings:tin_ore"
|
"name": "util_rings:raw_tin"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"conditions": [
|
"conditions": [
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"type": "minecraft:ore",
|
||||||
|
"config": {
|
||||||
|
"size": 9,
|
||||||
|
"discard_chance_on_air_exposure": 0,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"target": {
|
||||||
|
"predicate_type": "minecraft:tag_match",
|
||||||
|
"tag": "minecraft:stone_ore_replaceables"
|
||||||
|
},
|
||||||
|
"state": {
|
||||||
|
"Name": "util_rings:lead_ore"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"type": "minecraft:ore",
|
||||||
|
"config": {
|
||||||
|
"size": 9,
|
||||||
|
"discard_chance_on_air_exposure": 0,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"target": {
|
||||||
|
"predicate_type": "minecraft:tag_match",
|
||||||
|
"tag": "minecraft:stone_ore_replaceables"
|
||||||
|
},
|
||||||
|
"state": {
|
||||||
|
"Name": "util_rings:tin_ore"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,27 @@
|
||||||
|
{
|
||||||
|
"feature": "util_rings:lead_ore",
|
||||||
|
"placement": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:count",
|
||||||
|
"count": 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:in_square"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:height_range",
|
||||||
|
"height": {
|
||||||
|
"type": "minecraft:trapezoid",
|
||||||
|
"min_inclusive": {
|
||||||
|
"absolute": -24
|
||||||
|
},
|
||||||
|
"max_inclusive": {
|
||||||
|
"absolute": 56
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:biome"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,27 @@
|
||||||
|
{
|
||||||
|
"feature": "util_rings:tin_ore",
|
||||||
|
"placement": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:count",
|
||||||
|
"count": 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:in_square"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:height_range",
|
||||||
|
"height": {
|
||||||
|
"type": "minecraft:trapezoid",
|
||||||
|
"min_inclusive": {
|
||||||
|
"absolute": -24
|
||||||
|
},
|
||||||
|
"max_inclusive": {
|
||||||
|
"absolute": 56
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:biome"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in a new issue