From 1f2927358e85486176a0b0592ad883536b8730eb Mon Sep 17 00:00:00 2001 From: Agatha Rose Date: Mon, 12 Apr 2021 01:09:27 +0300 Subject: [PATCH] Add asbestos removal PPE --- .../dev/agatharose/asbestos/Asbestos.java | 25 +++++++++ .../agatharose/asbestos/AsbestosRegistry.java | 26 ++++++++- .../asbestos/CarcinogenicBlock.java | 11 ++-- .../asbestos/item/PpeArmorMaterial.java | 53 ++++++++++++++++++ .../asbestos/scheduler/MesotheliomaSched.java | 5 ++ .../resources/assets/asbestos/lang/en_us.json | 4 ++ .../asbestos/models/item/ppe_boots.json | 6 ++ .../asbestos/models/item/ppe_chestplate.json | 6 ++ .../asbestos/models/item/ppe_helmet.json | 6 ++ .../asbestos/models/item/ppe_leggings.json | 6 ++ .../asbestos/textures/item/ppe_boots.png | Bin 0 -> 260 bytes .../asbestos/textures/item/ppe_chestplate.png | Bin 0 -> 367 bytes .../asbestos/textures/item/ppe_helmet.png | Bin 0 -> 330 bytes .../asbestos/textures/item/ppe_leggings.png | Bin 0 -> 260 bytes .../models/armor/asbestos_ppe_layer_1.png | Bin 0 -> 1376 bytes .../models/armor/asbestos_ppe_layer_2.png | Bin 0 -> 578 bytes .../data/asbestos/recipes/ppe_boots.json | 16 ++++++ .../data/asbestos/recipes/ppe_chestplate.json | 16 ++++++ .../data/asbestos/recipes/ppe_helmet.json | 19 +++++++ .../data/asbestos/recipes/ppe_leggings.json | 16 ++++++ 20 files changed, 210 insertions(+), 5 deletions(-) create mode 100644 src/main/java/dev/agatharose/asbestos/item/PpeArmorMaterial.java create mode 100644 src/main/resources/assets/asbestos/models/item/ppe_boots.json create mode 100644 src/main/resources/assets/asbestos/models/item/ppe_chestplate.json create mode 100644 src/main/resources/assets/asbestos/models/item/ppe_helmet.json create mode 100644 src/main/resources/assets/asbestos/models/item/ppe_leggings.json create mode 100644 src/main/resources/assets/asbestos/textures/item/ppe_boots.png create mode 100644 src/main/resources/assets/asbestos/textures/item/ppe_chestplate.png create mode 100644 src/main/resources/assets/asbestos/textures/item/ppe_helmet.png create mode 100644 src/main/resources/assets/asbestos/textures/item/ppe_leggings.png create mode 100644 src/main/resources/assets/minecraft/textures/models/armor/asbestos_ppe_layer_1.png create mode 100644 src/main/resources/assets/minecraft/textures/models/armor/asbestos_ppe_layer_2.png create mode 100644 src/main/resources/data/asbestos/recipes/ppe_boots.json create mode 100644 src/main/resources/data/asbestos/recipes/ppe_chestplate.json create mode 100644 src/main/resources/data/asbestos/recipes/ppe_helmet.json create mode 100644 src/main/resources/data/asbestos/recipes/ppe_leggings.json diff --git a/src/main/java/dev/agatharose/asbestos/Asbestos.java b/src/main/java/dev/agatharose/asbestos/Asbestos.java index d75ab6f..54ef4b1 100644 --- a/src/main/java/dev/agatharose/asbestos/Asbestos.java +++ b/src/main/java/dev/agatharose/asbestos/Asbestos.java @@ -2,6 +2,8 @@ package dev.agatharose.asbestos; import static dev.agatharose.asbestos.AsbestosRegistry.*; +import java.util.Arrays; + import dev.agatharose.asbestos.component.MesotheliomaComponent; import dev.agatharose.asbestos.component.PlayerMesotheliomaComponent; import dev.agatharose.asbestos.config.AsbestosConfig; @@ -17,6 +19,9 @@ import net.fabricmc.api.ModInitializer; import net.minecraft.block.Block; import net.minecraft.entity.damage.DamageSource; import net.minecraft.entity.effect.StatusEffect; +import net.minecraft.entity.player.PlayerEntity; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; import net.minecraft.util.Identifier; import net.minecraft.util.registry.Registry; @@ -33,6 +38,26 @@ public class Asbestos implements ModInitializer, EntityComponentInitializer { // blocks that will contribute to mesothelioma levels without being broken public static Block[] HARMFUL_PASSIVE_BLOCKS = { ASBESTOS_BLOCK }; + // any armor that protects the player from asbestos exposure + public static Item[] PPE_ARMOR = { PPE_HELMET, PPE_CHESTPLATE, PPE_LEGGINGS, PPE_BOOTS }; + + /** + * Check if the player is safe from asbestos exposure + * + * @param player + */ + public static boolean isProtectedFromAsbestos(PlayerEntity player) { + // iterate over the player's armor items + for (ItemStack item : player.getArmorItems()) { + // if they have at least one non-protective piece of armor, they are not immune + if (!Arrays.asList(PPE_ARMOR).contains(item.getItem())) { + return false; + } + } + // otherwise, they're safe + return true; + } + @Override public void onInitialize() { AsbestosRegistry.register(); diff --git a/src/main/java/dev/agatharose/asbestos/AsbestosRegistry.java b/src/main/java/dev/agatharose/asbestos/AsbestosRegistry.java index 640db76..ebe88b1 100644 --- a/src/main/java/dev/agatharose/asbestos/AsbestosRegistry.java +++ b/src/main/java/dev/agatharose/asbestos/AsbestosRegistry.java @@ -1,5 +1,6 @@ package dev.agatharose.asbestos; +import dev.agatharose.asbestos.item.PpeArmorMaterial; import dev.agatharose.asbestos.item.ScraperItem; import dev.agatharose.asbestos.item.ScraperToolMaterial; import net.fabricmc.fabric.api.biome.v1.BiomeModifications; @@ -8,8 +9,11 @@ import net.fabricmc.fabric.api.item.v1.FabricItemSettings; import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings; import net.fabricmc.fabric.api.tool.attribute.v1.FabricToolTags; import net.minecraft.block.Material; +import net.minecraft.entity.EquipmentSlot; import net.minecraft.entity.effect.StatusEffectInstance; import net.minecraft.entity.effect.StatusEffects; +import net.minecraft.item.ArmorItem; +import net.minecraft.item.ArmorMaterial; import net.minecraft.item.BlockItem; import net.minecraft.item.FoodComponent; import net.minecraft.item.Item; @@ -29,7 +33,7 @@ import net.minecraft.world.gen.feature.OreFeatureConfig; @SuppressWarnings("deprecation") public class AsbestosRegistry { - // block/item/effect definitions + // block/item definitions public static final Item ASBESTOS_FIBERS = new Item(new FabricItemSettings().group(ItemGroup.MATERIALS) .fireproof() .food(new FoodComponent.Builder().alwaysEdible().statusEffect( @@ -53,6 +57,20 @@ public class AsbestosRegistry { public static ToolItem IRON_SCRAPER = new ScraperItem(ScraperToolMaterial.INSTANCE, 0.0f, -3.0f, new Item.Settings().group(ItemGroup.TOOLS)); + // asbestos removal ppe + + public static final ArmorMaterial PPE_ARMOR_MATERIAL = new PpeArmorMaterial(); + public static final Item PPE_HELMET = new ArmorItem(PPE_ARMOR_MATERIAL, EquipmentSlot.HEAD, + new Item.Settings().group(ItemGroup.COMBAT)); + public static final Item PPE_CHESTPLATE = new ArmorItem(PPE_ARMOR_MATERIAL, EquipmentSlot.CHEST, + new Item.Settings().group(ItemGroup.COMBAT)); + public static final Item PPE_LEGGINGS = new ArmorItem(PPE_ARMOR_MATERIAL, EquipmentSlot.LEGS, + new Item.Settings().group(ItemGroup.COMBAT)); + public static final Item PPE_BOOTS = new ArmorItem(PPE_ARMOR_MATERIAL, EquipmentSlot.FEET, + new Item.Settings().group(ItemGroup.COMBAT)); + + // serpentinite worldgen + private static ConfiguredFeature SERPENTINITE_OVERWORLD = Feature.ORE .configure(new OreFeatureConfig(OreFeatureConfig.Rules.BASE_STONE_OVERWORLD, SERPENTINITE_BLOCK.getDefaultState(), 5)) @@ -98,5 +116,11 @@ public class AsbestosRegistry { // scraper tool Registry.register(Registry.ITEM, new Identifier("asbestos", "iron_scraper"), IRON_SCRAPER); + + // asbestos removal ppe + Registry.register(Registry.ITEM, new Identifier("asbestos", "ppe_helmet"), PPE_HELMET); + Registry.register(Registry.ITEM, new Identifier("asbestos", "ppe_chestplate"), PPE_CHESTPLATE); + Registry.register(Registry.ITEM, new Identifier("asbestos", "ppe_leggings"), PPE_LEGGINGS); + Registry.register(Registry.ITEM, new Identifier("asbestos", "ppe_boots"), PPE_BOOTS); } } diff --git a/src/main/java/dev/agatharose/asbestos/CarcinogenicBlock.java b/src/main/java/dev/agatharose/asbestos/CarcinogenicBlock.java index b873d6d..d486b40 100644 --- a/src/main/java/dev/agatharose/asbestos/CarcinogenicBlock.java +++ b/src/main/java/dev/agatharose/asbestos/CarcinogenicBlock.java @@ -27,10 +27,13 @@ public class CarcinogenicBlock extends Block { // call the original method super.onBreak(world, pos, state, player); - // get the player's initial mesothelioma progress - int exposure = Asbestos.MESOTHELIOMA.get(player).getMesothelioma(); + // check if player is capable of safely removing asbestos + if (!Asbestos.isProtectedFromAsbestos(player)) { + // get the player's initial mesothelioma progress + int exposure = Asbestos.MESOTHELIOMA.get(player).getMesothelioma(); - // increase it by the block's dangerousness level - Asbestos.MESOTHELIOMA.get(player).setMesothelioma(exposure + dangerousness); + // increase it by the block's dangerousness level + Asbestos.MESOTHELIOMA.get(player).setMesothelioma(exposure + dangerousness); + } } } diff --git a/src/main/java/dev/agatharose/asbestos/item/PpeArmorMaterial.java b/src/main/java/dev/agatharose/asbestos/item/PpeArmorMaterial.java new file mode 100644 index 0000000..3b8aeea --- /dev/null +++ b/src/main/java/dev/agatharose/asbestos/item/PpeArmorMaterial.java @@ -0,0 +1,53 @@ +package dev.agatharose.asbestos.item; + +import net.minecraft.entity.EquipmentSlot; +import net.minecraft.item.ArmorMaterial; +import net.minecraft.item.Items; +import net.minecraft.recipe.Ingredient; +import net.minecraft.sound.SoundEvent; +import net.minecraft.sound.SoundEvents; + +public class PpeArmorMaterial implements ArmorMaterial { + private static final int[] BASE_DURABILITY = new int[] { 13, 15, 16, 11 }; + private static final int[] PROTECTION_VALUES = new int[] { 1, 1, 2, 1 }; + + @Override + public int getDurability(EquipmentSlot slot) { + return BASE_DURABILITY[slot.getEntitySlotId()] * 4; + } + + @Override + public int getProtectionAmount(EquipmentSlot slot) { + return PROTECTION_VALUES[slot.getEntitySlotId()]; + } + + @Override + public int getEnchantability() { + return 4; + } + + @Override + public SoundEvent getEquipSound() { + return SoundEvents.BLOCK_WOOL_HIT; + } + + @Override + public Ingredient getRepairIngredient() { + return Ingredient.ofItems(Items.STRING); + } + + @Override + public String getName() { + return "asbestos_ppe"; + } + + @Override + public float getToughness() { + return 0.0F; + } + + @Override + public float getKnockbackResistance() { + return 0; + } +} \ No newline at end of file diff --git a/src/main/java/dev/agatharose/asbestos/scheduler/MesotheliomaSched.java b/src/main/java/dev/agatharose/asbestos/scheduler/MesotheliomaSched.java index 72f9f78..2f11d42 100644 --- a/src/main/java/dev/agatharose/asbestos/scheduler/MesotheliomaSched.java +++ b/src/main/java/dev/agatharose/asbestos/scheduler/MesotheliomaSched.java @@ -31,6 +31,11 @@ public class MesotheliomaSched { player.addStatusEffect(new StatusEffectInstance(Asbestos.MESOTHELIOMA_EFFECT, 32767)); } + // don't have to check for asbestos if the player is safe from it + if (Asbestos.isProtectedFromAsbestos(player)) { + return; + } + int offset = config.mesothelioma.offset; // iterate over every block in the cuboid diff --git a/src/main/resources/assets/asbestos/lang/en_us.json b/src/main/resources/assets/asbestos/lang/en_us.json index 63d5dc1..7120511 100644 --- a/src/main/resources/assets/asbestos/lang/en_us.json +++ b/src/main/resources/assets/asbestos/lang/en_us.json @@ -5,6 +5,10 @@ "block.asbestos.asbestos_tile_block": "Asbestos Tiles", "item.asbestos.asbestos_fibers": "Asbests Fibers", "item.asbestos.iron_scraper": "Asbestos Scraper", + "item.asbestos.ppe_helmet": "Asbestos Removal PPE Helmet", + "item.asbestos.ppe_chestplate": "Asbestos Removal PPE Chestplate", + "item.asbestos.ppe_leggings": "Asbestos Removal PPE Leggings", + "item.asbestos.ppe_boots": "Asbestos Removal PPE Boots", "effect.asbestos.mesothelioma": "Mesothelioma", "death.attack.mesotheliomaDamage": "%1$s was entitled to financial compensation", "text.autoconfig.asbestos.title": "Asbestos Removal", diff --git a/src/main/resources/assets/asbestos/models/item/ppe_boots.json b/src/main/resources/assets/asbestos/models/item/ppe_boots.json new file mode 100644 index 0000000..ec23563 --- /dev/null +++ b/src/main/resources/assets/asbestos/models/item/ppe_boots.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "asbestos:item/ppe_boots" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/asbestos/models/item/ppe_chestplate.json b/src/main/resources/assets/asbestos/models/item/ppe_chestplate.json new file mode 100644 index 0000000..b5dae4c --- /dev/null +++ b/src/main/resources/assets/asbestos/models/item/ppe_chestplate.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "asbestos:item/ppe_chestplate" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/asbestos/models/item/ppe_helmet.json b/src/main/resources/assets/asbestos/models/item/ppe_helmet.json new file mode 100644 index 0000000..53be401 --- /dev/null +++ b/src/main/resources/assets/asbestos/models/item/ppe_helmet.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "asbestos:item/ppe_helmet" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/asbestos/models/item/ppe_leggings.json b/src/main/resources/assets/asbestos/models/item/ppe_leggings.json new file mode 100644 index 0000000..3aaeb33 --- /dev/null +++ b/src/main/resources/assets/asbestos/models/item/ppe_leggings.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "asbestos:item/ppe_leggings" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/asbestos/textures/item/ppe_boots.png b/src/main/resources/assets/asbestos/textures/item/ppe_boots.png new file mode 100644 index 0000000000000000000000000000000000000000..a57c3d93f016145abc2cbb9af73e56be5decaffd GIT binary patch literal 260 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|_IbKEhFJ6_ zCrGgNoRIOizW)EjpSSI0#*c*46M(?ceB;I~QyPI_;g+2fH44>o&i(rG)i~_=zW+bu zoOuqjzPI0({^R3k^{}&NbRPx$DM>^@R5*>rQaet=KolI4mDZAh#+Kt802d(H9Sssxk>DOEH5Z{poPZ9AE=4LL z(a=H31(KkoaqP$|tz{bCG&qBMqQ0DOAeR1`&jgDl@-SME?6!v+ck zz+9GZyKf*5&2SyRq!IDMPcqK)U*mtOs!@C9d3luYSLw50$5 N002ovPDHLkV1kXMoL>L{ literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/asbestos/textures/item/ppe_helmet.png b/src/main/resources/assets/asbestos/textures/item/ppe_helmet.png new file mode 100644 index 0000000000000000000000000000000000000000..efb95db4e58c647a7938f7304c6ad2a76a856868 GIT binary patch literal 330 zcmV-Q0k!^#P)Px$1W80eR5*>*lCes|P!xv0ijYv$<@WXsq@Z?n5p;6UNpukE+GptlWXc*cb?I0K zCktI%b#X`_bLgUSIq4FohNSm4tN2fsbI$kQ^TUCEua2vDb9r65>d%W8YkuDaj~?y- z=&K%56jjfNDPP}~4U>)w?yDX^1NJ=+fJqQgH`&|XVDqaK1z{8uMlrtUHOyKg0EAHt z!0GV`vKA&m0KoWZWX)O;>R`Ug(MnhS_s>r;vJT_w{GtTt`dy3|w%@IHP}k$_efjnC4ZzXCA=CM6 c=j`9=7nDM8WDpp>?f?J)07*qoM6N<$f@=AbS^xk5 literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/asbestos/textures/item/ppe_leggings.png b/src/main/resources/assets/asbestos/textures/item/ppe_leggings.png new file mode 100644 index 0000000000000000000000000000000000000000..892bbf2db2ecd31c06d0ba02232dc17b1ad6f96e GIT binary patch literal 260 zcmV+f0sH=mP)Px#zDYzuR5*>rkueIwFc^hDMNo+Ck=z`-PN8E5FVH>Us`qek@iN7<2`yCW6l|JA z>eM$r-urle0!wQ(HBN`)5DS~uaDP6W&SqLZ=Q#jM*S!0lw(9^8LZGz<7{(9>V5M|z z!vO5I+vo}FsZqTur!0g3AQcI!sXc(Vz)l7zr39eJGL-hqL4durl=AyvB}0*A^G+Dg zpW}M~Ab4v`LBK!q0II1;_lXybt#SaSH9x~4dB1SE-h#oHzq~#>@>1P;Miu}70000< KMNUMnLSTaCs%hE) literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/minecraft/textures/models/armor/asbestos_ppe_layer_1.png b/src/main/resources/assets/minecraft/textures/models/armor/asbestos_ppe_layer_1.png new file mode 100644 index 0000000000000000000000000000000000000000..a3052d44c5d1094776932c1d0ced340a4b5b796d GIT binary patch literal 1376 zcmV-m1)utfP)Px)8c9S!RA_1a}(D6cpvhgkbIPGn~{`;wJS;e5}tCnAG5|og7Xbj8K?D7GFm?UWr=Kji*0@giE`cOD zf#;9Ks!NNL-*ZC%6T;1)F@9dD0Dv{ZO@`9|p6^@Y^;#RpNf!XDHxPQKU+g{`U8$!3 z5j>Yb5qUY@3>tRFZzG%rAS8K$Ay9EA#$M2m2S|;%dd>bPICH=- z%K#DUz{DGpA8BP!A_99D^NKemlV>|`4C)|b*SorIYKSuy^ z866mt47(u!puOAzfZTD&=k4W|Jt<_JKsg#p&t)C){`QC0S||8a3P4Wr>e3?C+v^x+ z8EUn+ke;65!MEQ40G@pJy?rj{=IR9TK6#Yd=fY6ei3M5dX>k1h*I!}1wT6wiH?aTD zJ^&z$I{5vk-w+-BUFbdY#-yR&`{2&CdVoho2)QeC*Y(yKR##Rnc>q{%txb`a#O96B z!)}ZR0Mk2EU0TEsKmUR^2X6`|_Kyc>)*Dz|S;d#1--qrO_#R+7zewB&56~_L83dmV6j>aPRIm zdWT0jGWryl6%srN%3x=6Ym}r3k~G0p8o}dEq^D<=Nbm5-wz-cVK0+9Ekfe#7L_<7& z_{i1(VK>YfLS84yiCu#pp=*olf;0Yp{qf1Dz0w+2cgF*K_Qiv_bM~I@j#vd&D-~ND z&8rM+L4aYFAvFefKHi@D{+G}9Mr_gPVO*nHsa&|OaF)W&dIQ~q2nZ=hLkpnvRMfV=!+_u0tvee2rHDXB4lG1d@# zUKVtFU0ni`lKmpM^cl=ba+qcCd>>&qw6R_b0_)~U9HSo(@a{Vskn(cZ=@Hr}(pW6Z zf$4&)y0nPi;ZbgFS59#UodYD38iOj3i*YJ1$x*)Bi|md`g1{sn$Q&WpE7C#!GO6mh zMYyy9NQRK)0pzZ$l}b)N6``PIhgoLjX&l*gG6_<45)y9G5|{UYb62I?YZBTRNgU^n zLrG3Tj>}{xTWJXzM0$~{q6MzN003s5@2N4Rjy6qx*0?6_swB%4TctmW&VxMSq*6>o zR-yCjS@If59Os@Fd5QKoc|FUp5>8uM(VwB*$ti0%=9GCJs5xL|wq`b@%n&>Q) z=`}pL8~l?5HF-TwrGW8{r^eWwmPVCFo0g}dnwXX^ifQcyv#w_vKq{FUlOxJ|{hUTf zjj>&wOgeOJhJYld<++xu3nY2IbC_kh1X$$yWe86hfaRlXT8fBkaO~CVeY-G=5D95a z%2VlAulI9DC_{tu`tiWF)4EQOUQ<*Wmo&>>T%xA648wIxyAU=$go76iF$FLMBuN#fXkV%OCf*OYVghA>Y^ iPx${7FPXRA_#VUXRv1CBz}8Rtj%lzrosVrasT)j1sW43m8+u`x;BT_#bDQ6uIx9TYnC> z4*(Z;Uv9QqDF8r-5kUV7kZr6*mlE6goK_0&u0Nc0kB}6QF%^KvB#_;u1R*85l%SR3 zr08tzIU|9`V1<;>nN7YfCGHCVpyxASKAZluCqU%E0)4;$;C;Kq1C~ z&pU^;+aNS8ymPpJxS#Bxr$Un68*4d0ve$0YcYa_nmydtkeA|*F<}#Z1me8~;rNB^b zb7?iE;Ys zFxE~Yvqxw5=k50`^^4H7I5f^}@9TpJI<&|8`s5XGw2pNtA?&{NR@iT%6xizbANCnj zajADn@t!;>Q&hmw2?#L`UWFk>E^U%h09fsQDJpp(k07*qoM6N<$f+$i5djJ3c literal 0 HcmV?d00001 diff --git a/src/main/resources/data/asbestos/recipes/ppe_boots.json b/src/main/resources/data/asbestos/recipes/ppe_boots.json new file mode 100644 index 0000000..7964812 --- /dev/null +++ b/src/main/resources/data/asbestos/recipes/ppe_boots.json @@ -0,0 +1,16 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + " ", + "S S", + "S S" + ], + "key": { + "S": { + "item": "minecraft:string" + } + }, + "result": { + "item": "asbestos:ppe_boots" + } +} \ No newline at end of file diff --git a/src/main/resources/data/asbestos/recipes/ppe_chestplate.json b/src/main/resources/data/asbestos/recipes/ppe_chestplate.json new file mode 100644 index 0000000..09755d6 --- /dev/null +++ b/src/main/resources/data/asbestos/recipes/ppe_chestplate.json @@ -0,0 +1,16 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "S S", + "SSS", + "SSS" + ], + "key": { + "S": { + "item": "minecraft:string" + } + }, + "result": { + "item": "asbestos:ppe_chestplate" + } +} \ No newline at end of file diff --git a/src/main/resources/data/asbestos/recipes/ppe_helmet.json b/src/main/resources/data/asbestos/recipes/ppe_helmet.json new file mode 100644 index 0000000..233a098 --- /dev/null +++ b/src/main/resources/data/asbestos/recipes/ppe_helmet.json @@ -0,0 +1,19 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "SSS", + "SGS", + "S S" + ], + "key": { + "S": { + "item": "minecraft:string" + }, + "G": { + "item": "minecraft:black_stained_glass_pane" + } + }, + "result": { + "item": "asbestos:ppe_helmet" + } +} \ No newline at end of file diff --git a/src/main/resources/data/asbestos/recipes/ppe_leggings.json b/src/main/resources/data/asbestos/recipes/ppe_leggings.json new file mode 100644 index 0000000..8afb08b --- /dev/null +++ b/src/main/resources/data/asbestos/recipes/ppe_leggings.json @@ -0,0 +1,16 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "SSS", + "S S", + "S S" + ], + "key": { + "S": { + "item": "minecraft:string" + } + }, + "result": { + "item": "asbestos:ppe_leggings" + } +} \ No newline at end of file