Add the insolator #17

Merged
BlakeRain merged 19 commits from BlakeRain/utamacraft:main into main 2023-12-01 18:20:57 +00:00
31 changed files with 192 additions and 10 deletions
Showing only changes of commit e6b7fe5096 - Show all commits

BIN
assets/bulb.afdesign Normal file

Binary file not shown.

BIN
assets/fiber_glass.afdesign Normal file

Binary file not shown.

BIN
assets/pcb.afdesign Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -11,6 +11,8 @@ import net.banutama.utamacraft.item.ModItems;
import net.minecraft.world.item.BlockItem; import net.minecraft.world.item.BlockItem;
import net.minecraft.world.item.Item; import net.minecraft.world.item.Item;
import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.material.Material;
import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries; import net.minecraftforge.registries.ForgeRegistries;
@ -25,6 +27,11 @@ public class ModBlocks {
registerBlock("ethereal_glass", EtherealGlassBlock::new); registerBlock("ethereal_glass", EtherealGlassBlock::new);
public static final RegistryObject<Block> TINTED_ETHEREAL_GLASS = public static final RegistryObject<Block> TINTED_ETHEREAL_GLASS =
registerBlock("tinted_ethereal_glass", TintedEtherealGlassBlock::new); registerBlock("tinted_ethereal_glass", TintedEtherealGlassBlock::new);
public static final RegistryObject<Block> TUNGSTEN_BLOCK =
registerBlock("tungsten_block",
() -> new Block(BlockBehaviour.Properties.of(Material.METAL)
.strength(12.0f)
.requiresCorrectToolForDrops()));
public static final RegistryObject<Block> INSOLATOR = public static final RegistryObject<Block> INSOLATOR =
registerBlock("insolator", InsolatorBlock::new); registerBlock("insolator", InsolatorBlock::new);

View File

@ -13,9 +13,18 @@ public class ModItems {
public static final RegistryObject<Item> LOGO = public static final RegistryObject<Item> LOGO =
ITEMS.register("utamacraft_logo", () -> new Item(new Item.Properties())); ITEMS.register("utamacraft_logo", () -> new Item(new Item.Properties()));
public static final RegistryObject<Item> PLAYER_PERIPHERAL = public static final RegistryObject<Item> PLAYER_PERIPHERAL =
ITEMS.register("player_peripheral", PlayerPeripheralItem::new); ITEMS.register("player_peripheral", PlayerPeripheralItem::new);
public static final RegistryObject<Item> TUNGSTEN_INGOT =
ITEMS.register("tungsten_ingot", () -> new Item(new Item.Properties()));
public static final RegistryObject<Item> RAW_TUNGSTEN =
ITEMS.register("raw_tungsten", () -> new Item(new Item.Properties()));
public static final RegistryObject<Item> FIBER_GLASS =
ITEMS.register("fiber_glass", () -> new Item(new Item.Properties()));
public static final RegistryObject<Item> PCB =
ITEMS.register("pcb", () -> new Item(new Item.Properties()));
public static final RegistryObject<Item> BULB =
ITEMS.register("bulb", () -> new Item(new Item.Properties()));
public static void register(IEventBus eventBus) { public static void register(IEventBus eventBus) {
ITEMS.register(eventBus); ITEMS.register(eventBus);

View File

@ -0,0 +1,5 @@
{
"variants": {
"": { "model": "utamacraft:block/tungsten_block" }
}
}

View File

@ -2,9 +2,16 @@
"block.utamacraft.ethereal_glass": "Ethereal Glass", "block.utamacraft.ethereal_glass": "Ethereal Glass",
"block.utamacraft.insolator": "Insolator", "block.utamacraft.insolator": "Insolator",
"block.utamacraft.tinted_ethereal_glass": "Tinted Ethereal Glass", "block.utamacraft.tinted_ethereal_glass": "Tinted Ethereal Glass",
"block.utamacraft.tungsten_block": "Tungsten Block",
"block_entity.utamacraft.insolator": "Insolator", "block_entity.utamacraft.insolator": "Insolator",
"item.utamacraft.bulb": "Bulb",
"item.utamacraft.fiber_glass": "Fiberglass",
"item.utamacraft.insolator": "Insolator", "item.utamacraft.insolator": "Insolator",
"item.utamacraft.pcb": "Printed Circuit Board",
"item.utamacraft.player_peripheral": "Player peripheral", "item.utamacraft.player_peripheral": "Player peripheral",
"item.utamacraft.raw_tungsten": "Raw Tungsten",
"item.utamacraft.tungsten_block": "Tungsten Block",
"item.utamacraft.tungsten_ingot": "Tungsten Ingot",
"item.utamacraft.utamacraft_logo": "Utamacraft", "item.utamacraft.utamacraft_logo": "Utamacraft",
"itemGroup.utamacraft_tab": "Utamacraft", "itemGroup.utamacraft_tab": "Utamacraft",
"tooltip.utamacraft.ethereal_glass": "Glass that is not solid to players", "tooltip.utamacraft.ethereal_glass": "Glass that is not solid to players",

View File

@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "utamacraft:block/tungsten_block"
}
}

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,3 @@
{
"parent": "utamacraft:block/tungsten_block"
}

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -0,0 +1,23 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
" # ",
"#T#",
" C "
],
"key": {
"#": {
"item": "minecraft:glass"
},
"T": {
"item": "utamacraft:tungsten_ingot"
},
"C": {
"item": "minecraft:copper_ingot"
}
},
"result": {
"item": "utamacraft:bulb",
"count": 1
}
}

View File

@ -0,0 +1,19 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"SK",
"KS"
],
"key": {
"S": {
"item": "minecraft:sugar_cane"
},
"K": {
"item": "minecraft:kelp"
}
},
"result": {
"item": "utamacraft:fiber_glass",
"count": 1
}
}

View File

@ -1,19 +1,22 @@
{ {
"type": "minecraft:crafting_shaped", "type": "minecraft:crafting_shaped",
"pattern": [ "pattern": [
"ROR", "TCT",
"I I", "TB ",
"sss" "sPs"
], ],
"key": { "key": {
"O": { "T": {
"item": "minecraft:obsidian" "item": "utamacraft:tungsten_ingot"
}, },
"R": { "C": {
"item": "minecraft:redstone_block" "item": "minecraft:copper_ingot"
}, },
"I": { "B": {
"item": "minecraft:iron_block" "item": "utamacraft:bulb"
},
"P": {
"item": "utamacraft:pcb"
}, },
"s": { "s": {
"item": "minecraft:stone_slab" "item": "minecraft:stone_slab"

View File

@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"FF",
"CG"
],
"key": {
"F": {
"item": "utamacraft:fiber_glass"
},
"C": {
"item": "minecraft:copper_ingot"
},
"G": {
"item": "minecraft:gold_ingot"
}
},
"result": {
"item": "utamacraft:pcb",
"count": 1
}
}

View File

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"TTT",
"TTT",
"TTT"
],
"key": {
"T": {
"item": "utamacraft:tungsten_ingot"
}
},
"result": {
"item": "utamacraft:tungsten_block"
}
}

View File

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "utamacraft:tungsten_block"
}
],
"result": {
"item": "utamacraft:tungsten_ingot",
"count": 9
}
}

View File

@ -0,0 +1,10 @@
{
"type": "minecraft:blasting",
"cookingtime": 200,
"experience": 1.0,
"group": "tungsten",
"ingredient": {
"item": "utamacraft:raw_tungsten"
},
"result": "utamacraft:tungsten_ingot"
}

View File

@ -0,0 +1,10 @@
{
"type": "minecraft:smelting",
"cookingtime": 400,
"experience": 1.0,
"group": "tungsten",
"ingredient": {
"item": "utamacraft:raw_tungsten"
},
"result": "utamacraft:tungsten_ingot"
}