This commit is contained in:
DrMangoTea
2023-08-30 15:28:13 +02:00
parent 3cd181cb03
commit 6356cfbc4f
95 changed files with 848 additions and 7 deletions

View File

@@ -1,20 +1,53 @@
// 1.19.2 2023-08-30T12:58:15.3014071 Registrate Provider for tfmg [Recipes, Advancements, Loot tables, Tags (blocks), Tags (items), Tags (fluids), Tags (entity_types), Blockstates, Item models, Lang (en_us/en_ud)]
// 1.19.2 2023-08-30T15:11:12.5771746 Registrate Provider for tfmg [Recipes, Advancements, Loot tables, Tags (blocks), Tags (items), Tags (fluids), Tags (entity_types), Blockstates, Item models, Lang (en_us/en_ud)]
9ca537517fb8baeff3d4e4137c93aebd6b874c81 assets/tfmg/blockstates/cast_iron_block.json
fa1fa0509cd94e57da7624b5d094c228d6b92593 assets/tfmg/blockstates/creosote.json
a9b81338133077138f447a0d159f094edb61242a assets/tfmg/blockstates/crude_oil_fluid.json
03983ce3de10310cd75b98f17c9161653b7034cd assets/tfmg/blockstates/diesel.json
b0a3f4da5d9efdd01800c8b9738aee194565c6e7 assets/tfmg/blockstates/gasoline.json
c7aa764cc11ee837deeed68c9c2d8567ea078f5c assets/tfmg/blockstates/heavy_machinery_casing.json
dea24edfcb504c6c74560174a94bd7d3e5d58e76 assets/tfmg/blockstates/heavy_oil.json
7199cbfa37e83fcedf8e99af48b05b283aef319f assets/tfmg/blockstates/kerosene.json
55cba7d103b52b31f2deb59effcc01cfae6e2c05 assets/tfmg/blockstates/liquid_concrete.json
d3ba2682652fd44337d1f82ec382df17611fabe1 assets/tfmg/blockstates/liquid_plastic.json
2dc4b1da2bee0275cbb13ef89003d56f62d4443d assets/tfmg/blockstates/lubrication_oil.json
ebd6804b999acea36abbf07c2381ee6dee0d7a16 assets/tfmg/blockstates/napalm.json
0f33dc6b2a736164b17f416ce7d127c87bfb6441 assets/tfmg/blockstates/napalm_bomb.json
89f2902010903aad686571ef37c781b111147456 assets/tfmg/blockstates/naphtha.json
e6983072149d1a9a2f4d39e4e1feac599ff7413e assets/tfmg/blockstates/steel_block.json
df44115876045e6f863de2f8be6a9166b336a2f1 assets/tfmg/blockstates/steel_casing.json
a7cd711917057f78c673c344fa3d5ed9da99538f assets/tfmg/lang/en_ud.json
f3eb466b0b241c6d1bf5f84b37ad3c2f9d486c4c assets/tfmg/lang/en_us.json
9b6e45ec197d4be5d93c630ddb0fa693cc0dd731 assets/tfmg/lang/en_ud.json
0e424b3aa9a7543e31f6e5567518fe9453ce75b1 assets/tfmg/lang/en_us.json
37789d06ec6cfc0312be7b1b66ac1ec6403d4516 assets/tfmg/models/block/cast_iron_block.json
80fb4a90f861992322bfd63f1232593e8cce708e assets/tfmg/models/block/creosote.json
391762cca00f54de8a43d076b028eb3e3b5cb5cf assets/tfmg/models/block/crude_oil_fluid.json
997750c71f9ead915c393c5821146a57dcd01bfa assets/tfmg/models/block/diesel.json
e0cf42adbfeaa5c781b8239352335985658ae2d3 assets/tfmg/models/block/gasoline.json
717ee09803cb584062c9717f45475fbd15673cde assets/tfmg/models/block/heavy_machinery_casing.json
725ac5c4c5aade982edbcb6c4e6c53626f0e68e4 assets/tfmg/models/block/heavy_oil.json
796f870ee5d3f55ace500798ae389e532c7233b8 assets/tfmg/models/block/kerosene.json
eced115e0feb825f719abc480c4f9d7e7cc698c8 assets/tfmg/models/block/liquid_concrete.json
03ace76bbda220374985683aeea1eb4466bd4f13 assets/tfmg/models/block/liquid_plastic.json
6de36688139c9b11ed1ce6ef26ef1b65dfad34f5 assets/tfmg/models/block/lubrication_oil.json
80fb4a90f861992322bfd63f1232593e8cce708e assets/tfmg/models/block/napalm.json
b541c0cab9298f1d2578639349755b93f1019621 assets/tfmg/models/block/napalm_bomb.json
e8e7bb74d46f9cec768a5443c10870fe1dd2105b assets/tfmg/models/block/naphtha.json
0ceb30eaff16a495c9a165ca16c925cbff836755 assets/tfmg/models/block/steel_block.json
465b1fed10d06090e5e8d19457f9fa48fe890bb4 assets/tfmg/models/block/steel_casing.json
ec38882fb9010884823d6d6afa604f8a6512d279 assets/tfmg/models/item/cast_iron_block.json
df4e7fa8f3f60908f58794528a8db60dce7d0135 assets/tfmg/models/item/copper_grenade.json
0abf2b2d61995c4fd3e3c88656e740ffe0a2f083 assets/tfmg/models/item/creosote_bucket.json
e857cfbd6dfd0fe4b38e48f432f7a92e82dc5e22 assets/tfmg/models/item/crude_oil_fluid_bucket.json
3497bcbaee50b2f766de659043bf3c36823b570d assets/tfmg/models/item/diesel_bucket.json
ed2830b2988403aebaca633b2e315878b41f7503 assets/tfmg/models/item/gasoline_bucket.json
3fdff9e88db39939ee31968358eb51c060006766 assets/tfmg/models/item/heavy_machinery_casing.json
f3bea42a905b7df9395bda18f751e2ee0c023e65 assets/tfmg/models/item/heavy_oil_bucket.json
8996fe57623ded9433d6766e80a39e41a2aba1ca assets/tfmg/models/item/kerosene_bucket.json
46bda405310f45b8faff7d29f3e2b76b6e6d512f assets/tfmg/models/item/liquid_concrete_bucket.json
630e09bfe78ed89d966b0e78599e818ef69f56a6 assets/tfmg/models/item/liquid_plastic_bucket.json
c86a836bfcf884dc13094fd908a561dd1d8f7ad8 assets/tfmg/models/item/lubrication_oil_bucket.json
afac1fce0904a0df4e68d731b897ff1be6c68766 assets/tfmg/models/item/napalm_bomb.json
b41853a4ae8b890f924058e57d274e956e6f4e37 assets/tfmg/models/item/napalm_bucket.json
aa94f1afebb7c458e85849d8ddff76c27efefb80 assets/tfmg/models/item/naphtha_bucket.json
57bf86df814741f846feb8be4a10afe633f51721 assets/tfmg/models/item/steel_block.json
d34ca92f5288cbb5cecee06f046a072763b2926c assets/tfmg/models/item/steel_casing.json
72da5f91f1992b502e90c8fc84d654e075163eb7 assets/tfmg/models/item/thermite_grenade.json
@@ -24,6 +57,12 @@ f189171410564631c6074593da126b8d13fe9f8b assets/tfmg/models/item/zinc_grenade.js
c98956ac34e02a8c1c801122486771ef89fb640b data/forge/tags/blocks/storage_blocks.json
7c5615c56bb169570a061f052ebb1f5115760c16 data/forge/tags/blocks/storage_blocks/cast_iron.json
37b1c9c3ae722d8110db48015993ede3e194c0a0 data/forge/tags/blocks/storage_blocks/steel.json
72ff73d6648b7d6c8a20c50b611805e4e026ea91 data/forge/tags/items/buckets/diesel.json
07dced8cfc10e17e73d755ee5f0f4c06c4652389 data/forge/tags/items/buckets/gasoline.json
fe799186308cfd70f041f1dcf56129a0ccbaf219 data/forge/tags/items/buckets/kerosene.json
a779b7e09e7de79b73efb212644edff6739da610 data/forge/tags/items/buckets/napalm.json
fdf3b8fdf1975b0eee671f428803caa4e17dc5bd data/forge/tags/items/buckets/naphtha.json
5f98116af6d1d5e0324ff11449e719e7e2593c0c data/forge/tags/items/buckets/plastic.json
c98956ac34e02a8c1c801122486771ef89fb640b data/forge/tags/items/storage_blocks.json
7c5615c56bb169570a061f052ebb1f5115760c16 data/forge/tags/items/storage_blocks/cast_iron.json
37b1c9c3ae722d8110db48015993ede3e194c0a0 data/forge/tags/items/storage_blocks/steel.json

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "tfmg:block/creosote"
}
}
}

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "tfmg:block/crude_oil_fluid"
}
}
}

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "tfmg:block/diesel"
}
}
}

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "tfmg:block/gasoline"
}
}
}

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "tfmg:block/heavy_oil"
}
}
}

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "tfmg:block/kerosene"
}
}
}

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "tfmg:block/liquid_concrete"
}
}
}

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "tfmg:block/liquid_plastic"
}
}
}

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "tfmg:block/lubrication_oil"
}
}
}

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "tfmg:block/napalm"
}
}
}

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "tfmg:block/naphtha"
}
}
}

View File

@@ -1,7 +1,18 @@
{
"block.tfmg.cast_iron_block": "uoɹI ʇsɐƆ ɟo ʞɔoןᗺ",
"block.tfmg.creosote": "ǝʇosoǝɹƆ",
"block.tfmg.crude_oil_fluid": "pınןןıO ǝpnɹƆ",
"block.tfmg.diesel": "ןǝsǝıᗡ",
"block.tfmg.gasoline": "ǝuıןosɐ⅁",
"block.tfmg.heavy_machinery_casing": "buısɐƆ ʎɹǝuıɥɔɐW ʎʌɐǝH",
"block.tfmg.heavy_oil": "ןıO ʎʌɐǝH",
"block.tfmg.kerosene": "ǝuǝsoɹǝʞ",
"block.tfmg.liquid_concrete": "ǝʇǝɹɔuoƆ pınbıꞀ",
"block.tfmg.liquid_plastic": ıʇsɐןԀ pınbıꞀ",
"block.tfmg.lubrication_oil": "ןıO uoıʇɐɔıɹqnꞀ",
"block.tfmg.napalm": "ɯןɐdɐN",
"block.tfmg.napalm_bomb": "qɯoᗺ ɯןɐdɐN",
"block.tfmg.naphtha": "ɐɥʇɥdɐN",
"block.tfmg.steel_block": "ןǝǝʇS ɟo ʞɔoןᗺ",
"block.tfmg.steel_casing": "buısɐƆ ןǝǝʇS",
"entity.tfmg.blue_spark": "ʞɹɐdS ǝnןᗺ",
@@ -11,7 +22,35 @@
"entity.tfmg.spark": "ʞɹɐdS",
"entity.tfmg.thermite_grenade": "ǝpɐuǝɹ⅁ ǝʇıɯɹǝɥ⟘",
"entity.tfmg.zin_grenade": "ǝpɐuǝɹ⅁ uıZ",
"fluid.tfmg.butane": "ǝuɐʇnᗺ",
"fluid.tfmg.carbon_dioxide": "ǝpıxoıᗡ uoqɹɐƆ",
"fluid.tfmg.creosote": "ǝʇosoǝɹƆ",
"fluid.tfmg.crude_oil_fluid": "ןıO ǝpnɹƆ",
"fluid.tfmg.diesel": "ןǝsǝıᗡ",
"fluid.tfmg.ethylene": "ǝuǝןʎɥʇƎ",
"fluid.tfmg.gasoline": "ǝuıןosɐ⅁",
"fluid.tfmg.heavy_oil": "ןıO ʎʌɐǝH",
"fluid.tfmg.kerosene": "ǝuǝsoɹǝʞ",
"fluid.tfmg.liquid_concrete": "ǝʇǝɹɔuoƆ pınbıꞀ",
"fluid.tfmg.liquid_plastic": ıʇsɐןԀ pınbıꞀ",
"fluid.tfmg.lpg": "⅁ԀꞀ",
"fluid.tfmg.lubrication_oil": "ןıO uoıʇɐɔıɹqnꞀ",
"fluid.tfmg.napalm": "pınןℲ buıןooƆ",
"fluid.tfmg.naphtha": "ɐɥʇɥdɐN",
"fluid.tfmg.propane": "ǝuɐdoɹԀ",
"fluid.tfmg.propylene": "ǝuǝןʎdoɹԀ",
"item.tfmg.copper_grenade": "ǝpɐuǝɹ⅁ ɹǝddoƆ",
"item.tfmg.creosote_bucket": "ʇǝʞɔnᗺ ǝʇosoǝɹƆ",
"item.tfmg.crude_oil_fluid_bucket": "ʇǝʞɔnᗺ pınןןıO ǝpnɹƆ",
"item.tfmg.diesel_bucket": "ʇǝʞɔnᗺ ןǝsǝıᗡ",
"item.tfmg.gasoline_bucket": "ʇǝʞɔnᗺ ǝuıןosɐ⅁",
"item.tfmg.heavy_oil_bucket": "ʇǝʞɔnᗺ ןıO ʎʌɐǝH",
"item.tfmg.kerosene_bucket": "ʇǝʞɔnᗺ ǝuǝsoɹǝʞ",
"item.tfmg.liquid_concrete_bucket": "ʇǝʞɔnᗺ ǝʇǝɹɔuoƆ pınbıꞀ",
"item.tfmg.liquid_plastic_bucket": "ʇǝʞɔnᗺ ɔıʇsɐןԀ pınbıꞀ",
"item.tfmg.lubrication_oil_bucket": "ʇǝʞɔnᗺ ןıO uoıʇɐɔıɹqnꞀ",
"item.tfmg.napalm_bucket": "ʇǝʞɔnᗺ ɯןɐdɐN",
"item.tfmg.naphtha_bucket": "ʇǝʞɔnᗺ ɐɥʇɥdɐN",
"item.tfmg.thermite_grenade": "ǝpɐuǝɹ⅁ ǝʇıɯɹǝɥ⟘",
"item.tfmg.zinc_grenade": "ǝpɐuǝɹ⅁ ɔuıZ"
}

View File

@@ -1,7 +1,18 @@
{
"block.tfmg.cast_iron_block": "Block of Cast Iron",
"block.tfmg.creosote": "Creosote",
"block.tfmg.crude_oil_fluid": "Crude Oil Fluid",
"block.tfmg.diesel": "Diesel",
"block.tfmg.gasoline": "Gasoline",
"block.tfmg.heavy_machinery_casing": "Heavy Machinery Casing",
"block.tfmg.heavy_oil": "Heavy Oil",
"block.tfmg.kerosene": "Kerosene",
"block.tfmg.liquid_concrete": "Liquid Concrete",
"block.tfmg.liquid_plastic": "Liquid Plastic",
"block.tfmg.lubrication_oil": "Lubrication Oil",
"block.tfmg.napalm": "Napalm",
"block.tfmg.napalm_bomb": "Napalm Bomb",
"block.tfmg.naphtha": "Naphtha",
"block.tfmg.steel_block": "Block of Steel",
"block.tfmg.steel_casing": "Steel Casing",
"entity.tfmg.blue_spark": "Blue Spark",
@@ -11,10 +22,35 @@
"entity.tfmg.spark": "Spark",
"entity.tfmg.thermite_grenade": "Thermite Grenade",
"entity.tfmg.zin_grenade": "Zin Grenade",
"fluid.tfmg.butane": "Butane",
"fluid.tfmg.carbon_dioxide": "Carbon Dioxide",
"fluid.tfmg.creosote": "Creosote",
"fluid.tfmg.crude_oil_fluid": "Crude Oil",
"fluid.tfmg.diesel": "Diesel",
"fluid.tfmg.ethylene": "Ethylene",
"fluid.tfmg.gasoline": "Gasoline",
"fluid.tfmg.heavy_oil": "Heavy Oil",
"fluid.tfmg.kerosene": "Kerosene",
"fluid.tfmg.liquid_concrete": "Liquid Concrete",
"fluid.tfmg.liquid_plastic": "Liquid Plastic",
"fluid.tfmg.lpg": "LPG",
"fluid.tfmg.lubrication_oil": "Lubrication Oil",
"fluid.tfmg.napalm": "Cooling Fluid",
"fluid.tfmg.naphtha": "Naphtha",
"fluid.tfmg.propane": "Propane",
"fluid.tfmg.propylene": "Propylene",
"item.tfmg.copper_grenade": "Copper Grenade",
"item.tfmg.creosote_bucket": "Creosote Bucket",
"item.tfmg.crude_oil_fluid_bucket": "Crude Oil Fluid Bucket",
"item.tfmg.diesel_bucket": "Diesel Bucket",
"item.tfmg.gasoline_bucket": "Gasoline Bucket",
"item.tfmg.heavy_oil_bucket": "Heavy Oil Bucket",
"item.tfmg.kerosene_bucket": "Kerosene Bucket",
"item.tfmg.liquid_concrete_bucket": "Liquid Concrete Bucket",
"item.tfmg.liquid_plastic_bucket": "Liquid Plastic Bucket",
"item.tfmg.lubrication_oil_bucket": "Lubrication Oil Bucket",
"item.tfmg.napalm_bucket": "Napalm Bucket",
"item.tfmg.naphtha_bucket": "Naphtha Bucket",
"item.tfmg.thermite_grenade": "Thermite Grenade",
"item.tfmg.zinc_grenade": "Zinc Grenade",
"itemGroup.tfmg.base": "Create: The Factory Must Grow",
"itemGroup.tfmg.concrete": "Create: TFMG: Concrete"
"item.tfmg.zinc_grenade": "Zinc Grenade"
}

View File

@@ -0,0 +1,5 @@
{
"textures": {
"particle": "tfmg:fluid/napalm_still"
}
}

View File

@@ -0,0 +1,5 @@
{
"textures": {
"particle": "tfmg:fluid/crude_oil_still"
}
}

View File

@@ -0,0 +1,5 @@
{
"textures": {
"particle": "tfmg:fluid/diesel_still"
}
}

View File

@@ -0,0 +1,5 @@
{
"textures": {
"particle": "tfmg:fluid/gasoline_still"
}
}

View File

@@ -0,0 +1,5 @@
{
"textures": {
"particle": "tfmg:fluid/heavy_oil_still"
}
}

View File

@@ -0,0 +1,5 @@
{
"textures": {
"particle": "tfmg:fluid/kerosene_still"
}
}

View File

@@ -0,0 +1,5 @@
{
"textures": {
"particle": "tfmg:fluid/liquid_concrete"
}
}

View File

@@ -0,0 +1,5 @@
{
"textures": {
"particle": "tfmg:fluid/liquid_plastic_still"
}
}

View File

@@ -0,0 +1,5 @@
{
"textures": {
"particle": "tfmg:fluid/lubrication_oil_still"
}
}

View File

@@ -0,0 +1,5 @@
{
"textures": {
"particle": "tfmg:fluid/napalm_still"
}
}

View File

@@ -0,0 +1,5 @@
{
"textures": {
"particle": "tfmg:fluid/naphtha_still"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "tfmg:item/creosote_bucket"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "tfmg:item/crude_oil_fluid_bucket"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "tfmg:item/diesel_bucket"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "tfmg:item/gasoline_bucket"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "tfmg:item/heavy_oil_bucket"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "tfmg:item/kerosene_bucket"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "tfmg:item/liquid_concrete_bucket"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "tfmg:item/liquid_plastic_bucket"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "tfmg:item/lubrication_oil_bucket"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "tfmg:item/napalm_bucket"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "tfmg:item/naphtha_bucket"
}
}

View File

@@ -0,0 +1,5 @@
{
"values": [
"tfmg:diesel_bucket"
]
}

View File

@@ -0,0 +1,6 @@
{
"values": [
"tfmg:crude_oil_fluid_bucket",
"tfmg:gasoline_bucket"
]
}

View File

@@ -0,0 +1,5 @@
{
"values": [
"tfmg:kerosene_bucket"
]
}

View File

@@ -0,0 +1,5 @@
{
"values": [
"tfmg:napalm_bucket"
]
}

View File

@@ -0,0 +1,5 @@
{
"values": [
"tfmg:naphtha_bucket"
]
}

View File

@@ -0,0 +1,5 @@
{
"values": [
"tfmg:liquid_plastic_bucket"
]
}

View File

@@ -38,6 +38,7 @@ public class CreateTFMG
TFMGItems.register();
TFMGEntityTypes.register();
TFMGCreativeModeTabs.init();
TFMGFluids.register();
DistExecutor.safeRunWhenOn(Dist.CLIENT, () -> CreateTFMGClient::new);
TFMGColoredFires.register(modEventBus);

View File

@@ -0,0 +1,377 @@
package com.drmangotea.tfmg.registry;
import java.util.function.Consumer;
import java.util.function.Supplier;
import javax.annotation.Nullable;
import com.drmangotea.tfmg.CreateTFMG;
import com.simibubi.create.AllTags;
import org.jetbrains.annotations.NotNull;
import com.mojang.blaze3d.shaders.FogShape;
import com.mojang.blaze3d.systems.RenderSystem;
import com.mojang.math.Vector3f;
import com.simibubi.create.AllTags.AllFluidTags;
import com.simibubi.create.content.decoration.palettes.AllPaletteStoneTypes;
import com.simibubi.create.content.fluids.VirtualFluid;
import com.simibubi.create.content.fluids.potion.PotionFluid;
import com.simibubi.create.content.fluids.potion.PotionFluid.PotionFluidType;
import com.simibubi.create.foundation.utility.Color;
import com.simibubi.create.infrastructure.config.AllConfigs;
import com.tterrag.registrate.builders.FluidBuilder.FluidTypeFactory;
import com.tterrag.registrate.util.entry.FluidEntry;
import net.minecraft.client.Camera;
import net.minecraft.client.multiplayer.ClientLevel;
import net.minecraft.client.renderer.FogRenderer.FogMode;
import net.minecraft.core.BlockPos;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.level.BlockAndTintGetter;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.material.Fluid;
import net.minecraft.world.level.material.FluidState;
import net.minecraftforge.client.extensions.common.IClientFluidTypeExtensions;
import net.minecraftforge.common.ForgeMod;
import net.minecraftforge.fluids.FluidInteractionRegistry;
import net.minecraftforge.fluids.FluidInteractionRegistry.InteractionInformation;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.fluids.FluidType;
import net.minecraftforge.fluids.ForgeFlowingFluid;
import static com.drmangotea.tfmg.CreateTFMG.REGISTRATE;
public class TFMGFluids {
public static final ResourceLocation CONCRETE_RL = CreateTFMG.asResource("fluid/liquid_concrete");
public static final ResourceLocation LPG_RL = CreateTFMG.asResource("fluid/lpg");
public static final ResourceLocation BUTANE_RL = CreateTFMG.asResource("fluid/butane");
public static final ResourceLocation PROPANE_RL = CreateTFMG.asResource("fluid/propane");
public static final ResourceLocation CARBON_DIOXIDE_RL = CreateTFMG.asResource("fluid/carbon_dioxide");
public static final ResourceLocation NAPHTHA_STILL_RL = CreateTFMG.asResource("fluid/naphtha_still");
public static final ResourceLocation NAPHTHA_FLOW_RL = CreateTFMG.asResource("fluid/naphtha_flow");
public static final ResourceLocation DIESEL_STILL_RL = CreateTFMG.asResource("fluid/diesel_still");
public static final ResourceLocation DIESEL_FLOW_RL = CreateTFMG.asResource("fluid/diesel_flow");
public static final ResourceLocation GASOLINE_STILL_RL = CreateTFMG.asResource("fluid/gasoline_still");
public static final ResourceLocation GASOLINE_FLOW_RL = CreateTFMG.asResource("fluid/gasoline_flow");
public static final ResourceLocation KEROSENE_STILL_RL = CreateTFMG.asResource("fluid/kerosene_still");
public static final ResourceLocation KEROSENE_FLOW_RL = CreateTFMG.asResource("fluid/kerosene_flow");
public static final ResourceLocation HEAVY_OIL_STILL_RL = CreateTFMG.asResource("fluid/heavy_oil_still");
public static final ResourceLocation HEAVY_OIL_FLOW_RL = CreateTFMG.asResource("fluid/heavy_oil_flow");
public static final ResourceLocation LUBRICATION_OIL_STILL_RL = CreateTFMG.asResource("fluid/lubrication_oil_still");
public static final ResourceLocation LUBRICATION_OIL_FLOW_RL = CreateTFMG.asResource("fluid/lubrication_oil_flow");
public static final ResourceLocation NAPALM_STILL_RL = CreateTFMG.asResource("fluid/napalm_still");
public static final ResourceLocation NAPALM_FLOW_RL = CreateTFMG.asResource("fluid/napalm_flow");
public static final ResourceLocation PLASTIC_STILL_RL = CreateTFMG.asResource("fluid/liquid_plastic_still");
public static final ResourceLocation PLASTIC_FLOW_RL = CreateTFMG.asResource("fluid/liquid_plastic_flow");
public static final ResourceLocation CRUDE_OIL_STILL_RL = CreateTFMG.asResource("fluid/crude_oil_still");
public static final ResourceLocation CRUDE_OIL_FLOW_RL = CreateTFMG.asResource("fluid/crude_oil_flow");
public static final FluidEntry<VirtualFluid> CARBON_DIOXIDE
= REGISTRATE.virtualFluid("carbon_dioxide",CARBON_DIOXIDE_RL,CARBON_DIOXIDE_RL)
.lang("Carbon Dioxide")
.register();
public static final FluidEntry<VirtualFluid> LPG =
REGISTRATE.virtualFluid("lpg",LPG_RL,LPG_RL)
.lang("LPG")
.register();
public static final FluidEntry<VirtualFluid> PROPANE =
REGISTRATE.virtualFluid("propane",PROPANE_RL,PROPANE_RL)
.lang("Propane")
.register();
public static final FluidEntry<VirtualFluid> BUTANE =
REGISTRATE.virtualFluid("butane",BUTANE_RL,BUTANE_RL)
.lang("Butane")
.register();
public static final FluidEntry<VirtualFluid> ETHYLENE =
REGISTRATE.virtualFluid("ethylene",BUTANE_RL,BUTANE_RL)
.lang("Ethylene")
.register();
public static final FluidEntry<VirtualFluid> PROPYLENE =
REGISTRATE.virtualFluid("propylene",PROPANE_RL,PROPANE_RL)
.lang("Propylene")
.register();
public static final FluidEntry<ForgeFlowingFluid.Flowing> CRUDE_OIL_FLUID =
REGISTRATE.fluid("crude_oil_fluid",CRUDE_OIL_STILL_RL,CRUDE_OIL_FLOW_RL)
.lang("Crude Oil")
.properties(b -> b.viscosity(1000)
.density(1000))
.fluidProperties(p -> p.levelDecreasePerBlock(1)
.tickRate(10)
.slopeFindDistance(5)
.explosionResistance(100f))
.source(ForgeFlowingFluid.Source::new)
.bucket()
.tag(AllTags.forgeItemTag("buckets/gasoline"))
.build()
.register();
public static final FluidEntry<ForgeFlowingFluid.Flowing> LIQUID_PLASTIC =
REGISTRATE.fluid("liquid_plastic",PLASTIC_STILL_RL,PLASTIC_FLOW_RL)
.lang("Liquid Plastic")
.properties(b -> b.viscosity(1500)
.density(1000))
.fluidProperties(p -> p.levelDecreasePerBlock(1)
.tickRate(10)
.slopeFindDistance(2)
.explosionResistance(100f))
.source(ForgeFlowingFluid.Source::new)
.bucket()
.tag(AllTags.forgeItemTag("buckets/plastic"))
.build()
.register();
public static final FluidEntry<ForgeFlowingFluid.Flowing> GASOLINE =
REGISTRATE.fluid("gasoline",GASOLINE_STILL_RL,GASOLINE_FLOW_RL)
.lang("Gasoline")
.properties(b -> b.viscosity(500)
.density(500))
.fluidProperties(p -> p.levelDecreasePerBlock(1)
.tickRate(7)
.slopeFindDistance(5)
.explosionResistance(100f))
.source(ForgeFlowingFluid.Source::new)
.bucket()
.tag(AllTags.forgeItemTag("buckets/gasoline"))
.build()
.register();
public static final FluidEntry<ForgeFlowingFluid.Flowing> DIESEL =
REGISTRATE.fluid("diesel",DIESEL_STILL_RL,DIESEL_FLOW_RL)
.lang("Diesel")
.properties(b -> b.viscosity(500)
.density(500))
.fluidProperties(p -> p.levelDecreasePerBlock(1)
.tickRate(7)
.slopeFindDistance(5)
.explosionResistance(100f))
.source(ForgeFlowingFluid.Source::new)
.bucket()
.tag(AllTags.forgeItemTag("buckets/diesel"))
.build()
.register();
public static final FluidEntry<ForgeFlowingFluid.Flowing> KEROSENE =
REGISTRATE.fluid("kerosene",KEROSENE_STILL_RL,KEROSENE_FLOW_RL)
.lang("Kerosene")
.properties(b -> b.viscosity(500)
.density(500))
.fluidProperties(p -> p.levelDecreasePerBlock(1)
.tickRate(7)
.slopeFindDistance(5)
.explosionResistance(100f))
.source(ForgeFlowingFluid.Source::new)
.bucket()
.tag(AllTags.forgeItemTag("buckets/kerosene"))
.build()
.register();
public static final FluidEntry<ForgeFlowingFluid.Flowing> NAPHTHA =
REGISTRATE.fluid("naphtha",NAPHTHA_STILL_RL,NAPHTHA_FLOW_RL)
.lang("Naphtha")
.properties(b -> b.viscosity(500)
.density(500))
.fluidProperties(p -> p.levelDecreasePerBlock(1)
.tickRate(7)
.slopeFindDistance(5)
.explosionResistance(100f))
.source(ForgeFlowingFluid.Source::new)
.bucket()
.tag(AllTags.forgeItemTag("buckets/naphtha"))
.build()
.register();
public static final FluidEntry<ForgeFlowingFluid.Flowing> HEAVY_OIL =
REGISTRATE.fluid("heavy_oil",HEAVY_OIL_STILL_RL,HEAVY_OIL_FLOW_RL)
.lang("Heavy Oil")
.properties(b -> b.viscosity(1000)
.density(1000))
.fluidProperties(p -> p.levelDecreasePerBlock(1)
.tickRate(10)
.slopeFindDistance(5)
.explosionResistance(100f))
.source(ForgeFlowingFluid.Source::new)
.bucket()
.build()
.register();
public static final FluidEntry<ForgeFlowingFluid.Flowing> LUBRICATION_OIL =
REGISTRATE.fluid("lubrication_oil",LUBRICATION_OIL_STILL_RL,LUBRICATION_OIL_FLOW_RL)
.lang("Lubrication Oil")
.properties(b -> b.viscosity(500)
.density(500))
.fluidProperties(p -> p.levelDecreasePerBlock(1)
.tickRate(7)
.slopeFindDistance(5)
.explosionResistance(100f))
.source(ForgeFlowingFluid.Source::new)
.bucket()
.build()
.register();
public static final FluidEntry<ForgeFlowingFluid.Flowing> NAPALM =
REGISTRATE.fluid("napalm",NAPALM_STILL_RL,NAPALM_FLOW_RL)
.lang("Napalm")
.properties(b -> b.viscosity(1000)
.density(1000))
.fluidProperties(p -> p.levelDecreasePerBlock(1)
.tickRate(10)
.slopeFindDistance(5)
.explosionResistance(100f))
.source(ForgeFlowingFluid.Source::new)
.bucket()
.tag(AllTags.forgeItemTag("buckets/napalm"))
.build()
.register();
public static final FluidEntry<ForgeFlowingFluid.Flowing> COOLING_FLUID =
REGISTRATE.fluid("cooling_fluid",NAPALM_STILL_RL,NAPALM_FLOW_RL)
.lang("Cooling Fluid")
.properties(b -> b.viscosity(1000)
.density(1000))
.fluidProperties(p -> p.levelDecreasePerBlock(1)
.tickRate(10)
.slopeFindDistance(5)
.explosionResistance(100f))
.source(ForgeFlowingFluid.Source::new)
.bucket()
// .tag(AllTags.forgeItemTag("buckets/napalm"))
.build()
.register();
public static final FluidEntry<ForgeFlowingFluid.Flowing> CREOSOTE =
REGISTRATE.fluid("creosote",NAPALM_STILL_RL,NAPALM_FLOW_RL)
.lang("Creosote")
.properties(b -> b.viscosity(1000)
.density(1000))
.fluidProperties(p -> p.levelDecreasePerBlock(1)
.tickRate(10)
.slopeFindDistance(5)
.explosionResistance(100f))
.source(ForgeFlowingFluid.Source::new)
.bucket()
//.tag(AllTags.forgeItemTag("buckets/napalm"))
.build()
.register();
public static final FluidEntry<ForgeFlowingFluid.Flowing> LIQUID_CONCRETE =
REGISTRATE.fluid("liquid_concrete",CONCRETE_RL,CONCRETE_RL)
.lang("Liquid Concrete")
.properties(b -> b.viscosity(9999)
.density(9999))
.fluidProperties(p -> p.levelDecreasePerBlock(0)
.tickRate(9999)
.slopeFindDistance(0)
.explosionResistance(100f))
.source(ForgeFlowingFluid.Source::new)
.bucket()
//.tag(AllTags.forgeItemTag("buckets/napalm"))
.build()
.register();
// Load this class
public static void register() {
}
/*
private static class NoColorFluidAttributes extends FluidType {
protected NoColorFluidAttributes(Builder builder, Fluid fluid) {
super(builder, fluid);
}
@Override
public int getColor(BlockAndTintGetter world, BlockPos pos) {
return 0x00ffffff;
}
}
*/
/*
@Nullable
public static BlockState getLavaInteraction(FluidState fluidState) {
Fluid fluid = fluidState.getType();
if (fluid.isSame(TFMGFluids.CRUDE_OIL_FLUID.get()))
return TFMGBlocks.FOSSILSTONE
.get()
.defaultBlockState();
if (fluid.isSame(TFMGFluids.GASOLINE.get()))
return TFMGBlocks.FOSSILSTONE
.get()
.defaultBlockState();
if (fluid.isSame(DIESEL.get()))
return TFMGBlocks.FOSSILSTONE
.get()
.defaultBlockState();
if (fluid.isSame(LUBRICATION_OIL.get()))
return TFMGBlocks.FOSSILSTONE
.get()
.defaultBlockState();
if (fluid.isSame(HEAVY_OIL.get()))
return TFMGBlocks.FOSSILSTONE
.get()
.defaultBlockState();
if (fluid.isSame(KEROSENE.get()))
return TFMGBlocks.FOSSILSTONE
.get()
.defaultBlockState();
if (fluid.isSame(NAPHTHA.get()))
return TFMGBlocks.FOSSILSTONE
.get()
.defaultBlockState();
return null;
}
*/
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B