From 532823b32c73b9a0af91e1424b9ea5edd0555e36 Mon Sep 17 00:00:00 2001 From: yuesha-yc Date: Fri, 29 Oct 2021 00:34:05 -0700 Subject: [PATCH] Now fixes tag system --- README.md | 69 +++++++++++++++++++ .../com/teammoeg/steampowered/SPTags.java | 37 ++++++++++ .../teammoeg/steampowered/SteamPowered.java | 1 + .../pressurized_steam_container_not_tag.json | 17 ----- 4 files changed, 107 insertions(+), 17 deletions(-) create mode 100644 README.md create mode 100644 src/main/java/com/teammoeg/steampowered/SPTags.java delete mode 100644 src/main/resources/data/steampowered/recipes/filling/pressurized_steam_container_not_tag.json diff --git a/README.md b/README.md new file mode 100644 index 0000000..8eadb2a --- /dev/null +++ b/README.md @@ -0,0 +1,69 @@ +

logo

+ +#

Create: Steam Powered

+ +###

Expanding Create mod to the Steam Age

+ +
+

logo

+ + +####Foreword: + +Taking inspiration from the furnace engine in Create, we decide that we could make something more realistic and cooler. The main philosophy of this mod is to provide more "realistic" power generation methods and machines & contraptions that will work to achieve this goal. This mod is also playable even in Creative Mode because it includes many decorative blocks such as metal cogwheels. + +This mod requires Create and Flywheel as required dependencies. Immersive Engineering is an optional dependency that adds in steel for the mod. + +####What we added: + +Steam Engines of three types: Bronze, Cast Iron, and Steel +Flywheels of three types: Bronze, Cast Iron, and Steel +Cogwheels and Large Cogwheels of three types: Bronze, Cast Iron, and Steel +Steam: Designed with compatibility in mind! Other mods' steam fluids registered under forge:steam tag also works! +Burning Chambers of three types: Bronze, Cast Iron, and Steel +Steam Boilers of three types: Bronze, Cast Iron, and Steel + +Fully configurable steam engine outputs, steam consumption, cogwheel stress impact, dynamo output and intake + +####Upcoming Features: + +Steam Encased Fan + +Huge Cogwheels (say, 3x3 or 5x5 size) + +Multiblock boilers & dynamos + +Steam Ariship + +Steam Jetpack + +####Optional Feature: + +Dynamo that produces FE from RPM. Redstone signal can be provided to lock it from working. + +

logo

+ +(Credits and appreciation to MRH0's energy conversion code) + +As of 1.1.1, dynamo can be disabled in the server config. + +CC&A is a great mod that I recommend you to use along Steam Powered. They provide a lot of good utilities for a modpack. + +My only reason to add the dynamo to the mod is the fact that I want the people who only want the steam power part of create to run only with vanilla create and steam powered. + +####Open Source: + +This is a free and open source mod licensed under GNU GPL 3.0 License. +You are welcomed to contribute to this project. Visit Discord or Github Repo. + +####Discord: + +Join the discord to get exclusive update previews and new projects notifications + +https://discord.gg/BWn6E94 + +####Support the Devs: + +If you love what we create, support us to let us create more + +https://www.patreon.com/TeamMoegProjects \ No newline at end of file diff --git a/src/main/java/com/teammoeg/steampowered/SPTags.java b/src/main/java/com/teammoeg/steampowered/SPTags.java new file mode 100644 index 0000000..2ec3c61 --- /dev/null +++ b/src/main/java/com/teammoeg/steampowered/SPTags.java @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2021 TeamMoeg + * + * This file is part of Steam Powered. + * + * Steam Powered is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * Steam Powered is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Steam Powered. If not, see . + */ + +package com.teammoeg.steampowered; + +import net.minecraft.fluid.Fluid; +import net.minecraft.tags.FluidTags; +import net.minecraft.tags.ITag; + +public class SPTags { + + public static void init() { + + } + + public static final ITag.INamedTag STEAM = forgeTag("steam"); + + private static ITag.INamedTag forgeTag(String name) { + return FluidTags.bind("forge:" + name); + } + +} diff --git a/src/main/java/com/teammoeg/steampowered/SteamPowered.java b/src/main/java/com/teammoeg/steampowered/SteamPowered.java index 1aeebc1..d042cdd 100644 --- a/src/main/java/com/teammoeg/steampowered/SteamPowered.java +++ b/src/main/java/com/teammoeg/steampowered/SteamPowered.java @@ -81,6 +81,7 @@ public class SteamPowered { SPBlocks.register(); SPTiles.register(); SPItems.register(); + SPTags.init(); ModLoadingContext.get().registerConfig(ModConfig.Type.COMMON, SPConfig.COMMON_CONFIG); ModLoadingContext.get().registerConfig(ModConfig.Type.SERVER, SPConfig.SERVER_CONFIG); PacketHandler.register(); diff --git a/src/main/resources/data/steampowered/recipes/filling/pressurized_steam_container_not_tag.json b/src/main/resources/data/steampowered/recipes/filling/pressurized_steam_container_not_tag.json deleted file mode 100644 index fdb5399..0000000 --- a/src/main/resources/data/steampowered/recipes/filling/pressurized_steam_container_not_tag.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "type": "create:filling", - "ingredients": [ - { - "item": "steampowered:pressurized_gas_container" - }, - { - "fluid": "steampowered:steam", - "amount": 1000 - } - ], - "results": [ - { - "item": "steampowered:pressurized_steam_container" - } - ] -} \ No newline at end of file