From c7da687185b7e7c068c34153c91a6259354a9b00 Mon Sep 17 00:00:00 2001 From: Joshua7Perkins Date: Wed, 7 Oct 2020 02:02:38 -0500 Subject: [PATCH] update --- .../java/net/fabricmc/example/ExampleMod.java | 71 +++++++++++++++-- .../net/fabricmc/example/GoldDiamond.java | 75 ++++++++++++++++++ .../net/fabricmc/example/GoldNetherite.java | 75 ++++++++++++++++++ .../net/fabricmc/example/RingOfFlight.java | 25 ++++++ .../net/fabricmc/example/TutorialBook.java | 25 ++++++ .../blockstates/block_of_charcoal.json | 6 ++ .../models/block/block_of_charcoal.json | 7 ++ .../models/item/block_of_charcoal.json | 3 + .../examplemod/models/item/tutorial_book.json | 6 ++ .../textures/block/block_of_charcoal.png | Bin 0 -> 822 bytes .../textures/item/tutorial_book.png | Bin 0 -> 1233 bytes .../loot_tables/blocks/block_of_charcoal.json | 20 +++++ .../data/examplemod/recipes/charcoal.json | 16 ++++ .../examplemod/recipes/charcoal_block.json | 17 ++++ .../recipes/diamond_horse_armor.json | 17 ++++ .../examplemod/recipes/end_portal_frame.json | 24 ++++++ .../data/examplemod/recipes/ender_arrow.json | 8 ++ .../examplemod/recipes/experience_cage.json | 20 +++++ .../examplemod/recipes/flesh_to_leather.json | 9 +++ .../data/examplemod/recipes/flight_ring.json | 23 ++++++ .../recipes/gold_diamond_boots.json | 13 +++ .../recipes/gold_diamond_chestplate.json | 13 +++ .../recipes/gold_diamond_helmet.json | 13 +++ .../recipes/gold_diamond_leggings.json | 13 +++ .../examplemod/recipes/gold_horse_armor.json | 17 ++++ .../recipes/gold_netherite_boots.json | 13 +++ .../recipes/gold_netherite_chestplate.json | 13 +++ .../recipes/gold_netherite_helmet.json | 13 +++ .../recipes/gold_netherite_leggings.json | 13 +++ .../examplemod/recipes/iron_horse_armor.json | 17 ++++ .../data/examplemod/recipes/name_tag.json | 18 +++++ .../recipes/netherite_horse_armor.json | 17 ++++ .../data/examplemod/recipes/saddle.json | 20 +++++ .../data/examplemod/recipes/scaffolding.json | 21 +++++ 34 files changed, 656 insertions(+), 5 deletions(-) create mode 100644 src/main/java/net/fabricmc/example/GoldDiamond.java create mode 100644 src/main/java/net/fabricmc/example/GoldNetherite.java create mode 100644 src/main/java/net/fabricmc/example/RingOfFlight.java create mode 100644 src/main/java/net/fabricmc/example/TutorialBook.java create mode 100644 src/main/resources/assets/examplemod/blockstates/block_of_charcoal.json create mode 100644 src/main/resources/assets/examplemod/models/block/block_of_charcoal.json create mode 100644 src/main/resources/assets/examplemod/models/item/block_of_charcoal.json create mode 100644 src/main/resources/assets/examplemod/models/item/tutorial_book.json create mode 100644 src/main/resources/assets/examplemod/textures/block/block_of_charcoal.png create mode 100644 src/main/resources/assets/examplemod/textures/item/tutorial_book.png create mode 100644 src/main/resources/data/examplemod/loot_tables/blocks/block_of_charcoal.json create mode 100644 src/main/resources/data/examplemod/recipes/charcoal.json create mode 100644 src/main/resources/data/examplemod/recipes/charcoal_block.json create mode 100644 src/main/resources/data/examplemod/recipes/diamond_horse_armor.json create mode 100644 src/main/resources/data/examplemod/recipes/end_portal_frame.json create mode 100644 src/main/resources/data/examplemod/recipes/ender_arrow.json create mode 100644 src/main/resources/data/examplemod/recipes/experience_cage.json create mode 100644 src/main/resources/data/examplemod/recipes/flesh_to_leather.json create mode 100644 src/main/resources/data/examplemod/recipes/flight_ring.json create mode 100644 src/main/resources/data/examplemod/recipes/gold_diamond_boots.json create mode 100644 src/main/resources/data/examplemod/recipes/gold_diamond_chestplate.json create mode 100644 src/main/resources/data/examplemod/recipes/gold_diamond_helmet.json create mode 100644 src/main/resources/data/examplemod/recipes/gold_diamond_leggings.json create mode 100644 src/main/resources/data/examplemod/recipes/gold_horse_armor.json create mode 100644 src/main/resources/data/examplemod/recipes/gold_netherite_boots.json create mode 100644 src/main/resources/data/examplemod/recipes/gold_netherite_chestplate.json create mode 100644 src/main/resources/data/examplemod/recipes/gold_netherite_helmet.json create mode 100644 src/main/resources/data/examplemod/recipes/gold_netherite_leggings.json create mode 100644 src/main/resources/data/examplemod/recipes/iron_horse_armor.json create mode 100644 src/main/resources/data/examplemod/recipes/name_tag.json create mode 100644 src/main/resources/data/examplemod/recipes/netherite_horse_armor.json create mode 100644 src/main/resources/data/examplemod/recipes/saddle.json create mode 100644 src/main/resources/data/examplemod/recipes/scaffolding.json diff --git a/src/main/java/net/fabricmc/example/ExampleMod.java b/src/main/java/net/fabricmc/example/ExampleMod.java index e5ed082..8cd1042 100644 --- a/src/main/java/net/fabricmc/example/ExampleMod.java +++ b/src/main/java/net/fabricmc/example/ExampleMod.java @@ -1,14 +1,75 @@ package net.fabricmc.example; import net.fabricmc.api.ModInitializer; +import net.fabricmc.fabric.api.item.v1.FabricItemSettings; +import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings; +import net.minecraft.block.Block; +import net.minecraft.block.Material; +import net.minecraft.entity.EquipmentSlot; +import net.minecraft.item.ArmorItem; +import net.minecraft.item.BlockItem; +import net.minecraft.item.Item; +import net.minecraft.item.ItemGroup; +import net.minecraft.util.Identifier; +import net.minecraft.util.registry.Registry; public class ExampleMod implements ModInitializer { + + // This is a generic Item template + // public static final Item FabricItem = new Item(new FabricItemSettings().group(ItemGroup.MISC)); + + // VT Tutorial Book + // Implemented by Jerbyl + public static final TutorialBook TUTORIAL_BOOK = new TutorialBook(new FabricItemSettings().group(ItemGroup.MISC)); + + public static final RingOfFlight RING_OF_FLIGHT = new RingOfFlight(new FabricItemSettings().group(ItemGroup.MISC)); + + + // Charcoal block + // Implemented by Jerbyl + public static final Block BLOCK_OF_CHARCOAL = new Block(FabricBlockSettings.of(Material.STONE).hardness(5.0f)); + + // Gold-plated diamond armor items + // Implemented by Jerbyl + public static final Item GOLD_DIAMOND_HELMET = new ArmorItem(GoldDiamond.GOLD_DIAMOND, EquipmentSlot.HEAD, (new Item.Settings().group(ItemGroup.COMBAT))); + public static final Item GOLD_DIAMOND_CHESTPLATE = new ArmorItem(GoldDiamond.GOLD_DIAMOND, EquipmentSlot.CHEST, (new Item.Settings().group(ItemGroup.COMBAT))); + public static final Item GOLD_DIAMOND_LEGGINGS = new ArmorItem(GoldDiamond.GOLD_DIAMOND, EquipmentSlot.LEGS, (new Item.Settings().group(ItemGroup.COMBAT))); + public static final Item GOLD_DIAMOND_BOOTS = new ArmorItem(GoldDiamond.GOLD_DIAMOND, EquipmentSlot.FEET, (new Item.Settings().group(ItemGroup.COMBAT))); + + // Gold-plated netherite armor items + // Implemented by Jerbyl + public static final Item GOLD_NETHERITE_HELMET = new ArmorItem(GoldNetherite.GOLD_NETHERITE, EquipmentSlot.HEAD, (new Item.Settings().group(ItemGroup.COMBAT))); + public static final Item GOLD_NETHERITE_CHESTPLATE = new ArmorItem(GoldNetherite.GOLD_NETHERITE, EquipmentSlot.CHEST, (new Item.Settings().group(ItemGroup.COMBAT))); + public static final Item GOLD_NETHERITE_LEGGINGS = new ArmorItem(GoldNetherite.GOLD_NETHERITE, EquipmentSlot.LEGS, (new Item.Settings().group(ItemGroup.COMBAT))); + public static final Item GOLD_NETHERITE_BOOTS = new ArmorItem(GoldNetherite.GOLD_NETHERITE, EquipmentSlot.FEET, (new Item.Settings().group(ItemGroup.COMBAT))); + + @Override public void onInitialize() { - // This code runs as soon as Minecraft is in a mod-load-ready state. - // However, some things (like resources) may still be uninitialized. - // Proceed with mild caution. - System.out.println("Hello Fabric world!"); + // Adds registry entry for VT Tutorial Book + // Implemented by Jerbyl + Registry.register(Registry.ITEM, new Identifier("examplemod", "tutorial_book"), TUTORIAL_BOOK); + + // Adds registry entry for Ring Of Flight + // Implemented by Jerbyl + Registry.register(Registry.ITEM, new Identifier("examplemod", "ring_of_flight"), RING_OF_FLIGHT); + + // Adds registry entries for the Charcoal_Block item and block + // Implemented by Jerbyl + Registry.register(Registry.BLOCK, new Identifier("examplemod", "block_of_charcoal"), BLOCK_OF_CHARCOAL); + Registry.register(Registry.ITEM, new Identifier("examplemod", "block_of_charcoal"), new BlockItem(BLOCK_OF_CHARCOAL, new Item.Settings().group(ItemGroup.MISC))); + + // Adds registry entries for gold-trimmed diamond and netherite armors. + // Implemented by Jerbyl + Registry.register(Registry.ITEM,new Identifier("examplemod","gold_diamond_helmet"), GOLD_DIAMOND_HELMET); + Registry.register(Registry.ITEM,new Identifier("examplemod","gold_diamond_chestplate"), GOLD_DIAMOND_CHESTPLATE); + Registry.register(Registry.ITEM,new Identifier("examplemod","gold_diamond_leggings"), GOLD_DIAMOND_LEGGINGS); + Registry.register(Registry.ITEM,new Identifier("examplemod","gold_diamond_boots"), GOLD_DIAMOND_BOOTS); + Registry.register(Registry.ITEM,new Identifier("examplemod","gold_netherite_helmet"), GOLD_NETHERITE_HELMET); + Registry.register(Registry.ITEM,new Identifier("examplemod","gold_netherite_chestplate"), GOLD_NETHERITE_CHESTPLATE); + Registry.register(Registry.ITEM,new Identifier("examplemod","gold_netherite_leggings"), GOLD_NETHERITE_LEGGINGS); + Registry.register(Registry.ITEM,new Identifier("examplemod","gold_netherite_boots"), GOLD_NETHERITE_BOOTS); } -} + +} \ No newline at end of file diff --git a/src/main/java/net/fabricmc/example/GoldDiamond.java b/src/main/java/net/fabricmc/example/GoldDiamond.java new file mode 100644 index 0000000..40f97df --- /dev/null +++ b/src/main/java/net/fabricmc/example/GoldDiamond.java @@ -0,0 +1,75 @@ +package net.fabricmc.example; + +import net.fabricmc.api.EnvType; +import net.fabricmc.api.Environment; +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; +import net.minecraft.util.Lazy; + +import java.util.function.Supplier; + +public enum GoldDiamond implements ArmorMaterial { + + GOLD_DIAMOND("gold_diamond", 33, new int[]{3, 8, 6, 3}, 20, SoundEvents.ITEM_ARMOR_EQUIP_DIAMOND, 2.0F, 0.0F, () -> { + return Ingredient.ofItems(Items.DIAMOND); + }); + + private static final int[] BASE_DURABILITY = {13, 15, 16, 11}; + private final String name; + private final int durabilityMultiplier; + private final int[] armorValues; + private final int enchantability; + private final SoundEvent equipSound; + private final float toughness; + private final float knockbackResistance; + private final Lazy repairIngredient; + + GoldDiamond(String name, int durabilityMultiplier, int[] armorValueArr, int enchantability, SoundEvent soundEvent, float toughness, float knockbackResistance, Supplier repairIngredient) { + this.name = name; + this.durabilityMultiplier = durabilityMultiplier; + this.armorValues = armorValueArr; + this.enchantability = enchantability; + this.equipSound = soundEvent; + this.toughness = toughness; + this.knockbackResistance = knockbackResistance; + this.repairIngredient = new Lazy(repairIngredient); + } + + public int getDurability(EquipmentSlot equipmentSlot_1) { + return BASE_DURABILITY[equipmentSlot_1.getEntitySlotId()] * this.durabilityMultiplier; + } + + public int getProtectionAmount(EquipmentSlot equipmentSlot_1) { + return this.armorValues[equipmentSlot_1.getEntitySlotId()]; + } + + public int getEnchantability() { + return this.enchantability; + } + + public SoundEvent getEquipSound() { + return this.equipSound; + } + + public Ingredient getRepairIngredient() { + // We needed to make it a Lazy type so we can actually get the Ingredient from the Supplier. + return this.repairIngredient.get(); + } + + @Environment(EnvType.CLIENT) + public String getName() { + return this.name; + } + + public float getToughness() { + return this.toughness; + } + + public float getKnockbackResistance() { + return this.knockbackResistance; + } +} \ No newline at end of file diff --git a/src/main/java/net/fabricmc/example/GoldNetherite.java b/src/main/java/net/fabricmc/example/GoldNetherite.java new file mode 100644 index 0000000..6665514 --- /dev/null +++ b/src/main/java/net/fabricmc/example/GoldNetherite.java @@ -0,0 +1,75 @@ +package net.fabricmc.example; + +import net.fabricmc.api.EnvType; +import net.fabricmc.api.Environment; +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; +import net.minecraft.util.Lazy; + +import java.util.function.Supplier; + +public enum GoldNetherite implements ArmorMaterial { + + GOLD_NETHERITE("gold_netherite", 37, new int[]{3, 8, 6, 3}, 25, SoundEvents.ITEM_ARMOR_EQUIP_NETHERITE, 3.0F, 1.0F, () -> { + return Ingredient.ofItems(Items.NETHERITE_INGOT); + }); + + private static final int[] BASE_DURABILITY = {13, 15, 16, 11}; + private final String name; + private final int durabilityMultiplier; + private final int[] armorValues; + private final int enchantability; + private final SoundEvent equipSound; + private final float toughness; + private final float knockbackResistance; + private final Lazy repairIngredient; + + GoldNetherite(String name, int durabilityMultiplier, int[] armorValueArr, int enchantability, SoundEvent soundEvent, float toughness, float knockbackResistance, Supplier repairIngredient) { + this.name = name; + this.durabilityMultiplier = durabilityMultiplier; + this.armorValues = armorValueArr; + this.enchantability = enchantability; + this.equipSound = soundEvent; + this.toughness = toughness; + this.knockbackResistance = knockbackResistance; + this.repairIngredient = new Lazy(repairIngredient); + } + + public int getDurability(EquipmentSlot equipmentSlot_1) { + return BASE_DURABILITY[equipmentSlot_1.getEntitySlotId()] * this.durabilityMultiplier; + } + + public int getProtectionAmount(EquipmentSlot equipmentSlot_1) { + return this.armorValues[equipmentSlot_1.getEntitySlotId()]; + } + + public int getEnchantability() { + return this.enchantability; + } + + public SoundEvent getEquipSound() { + return this.equipSound; + } + + public Ingredient getRepairIngredient() { + // We needed to make it a Lazy type so we can actually get the Ingredient from the Supplier. + return this.repairIngredient.get(); + } + + @Environment(EnvType.CLIENT) + public String getName() { + return this.name; + } + + public float getToughness() { + return this.toughness; + } + + public float getKnockbackResistance() { + return this.knockbackResistance; + } +} \ No newline at end of file diff --git a/src/main/java/net/fabricmc/example/RingOfFlight.java b/src/main/java/net/fabricmc/example/RingOfFlight.java new file mode 100644 index 0000000..94a215e --- /dev/null +++ b/src/main/java/net/fabricmc/example/RingOfFlight.java @@ -0,0 +1,25 @@ +package net.fabricmc.example; + +import net.minecraft.entity.player.PlayerEntity; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; +import net.minecraft.sound.SoundEvents; +import net.minecraft.util.ActionResult; +import net.minecraft.util.Hand; +import net.minecraft.util.TypedActionResult; +import net.minecraft.world.World; + +public class RingOfFlight extends Item { + + public RingOfFlight(Settings settings) { + super(settings); + } + + @Override + public TypedActionResult use(World world, PlayerEntity playerEntity, Hand hand) { + playerEntity.playSound(SoundEvents.ENTITY_ARROW_HIT_PLAYER, 1.0F, 1.0F); + return new TypedActionResult<>(ActionResult.SUCCESS, playerEntity.getStackInHand(hand)); + } +} + + diff --git a/src/main/java/net/fabricmc/example/TutorialBook.java b/src/main/java/net/fabricmc/example/TutorialBook.java new file mode 100644 index 0000000..6c774d7 --- /dev/null +++ b/src/main/java/net/fabricmc/example/TutorialBook.java @@ -0,0 +1,25 @@ +package net.fabricmc.example; + +import net.minecraft.entity.player.PlayerEntity; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; +import net.minecraft.sound.SoundEvents; +import net.minecraft.util.ActionResult; +import net.minecraft.util.Hand; +import net.minecraft.util.TypedActionResult; +import net.minecraft.world.World; + +public class TutorialBook extends Item { + + public TutorialBook(Settings settings) { + super(settings); + } + + @Override + public TypedActionResult use(World world, PlayerEntity playerEntity, Hand hand) { + playerEntity.playSound(SoundEvents.ENTITY_PLAYER_HURT, 1.0F, 1.0F); + return new TypedActionResult<>(ActionResult.SUCCESS, playerEntity.getStackInHand(hand)); + } +} + + diff --git a/src/main/resources/assets/examplemod/blockstates/block_of_charcoal.json b/src/main/resources/assets/examplemod/blockstates/block_of_charcoal.json new file mode 100644 index 0000000..71d7cf7 --- /dev/null +++ b/src/main/resources/assets/examplemod/blockstates/block_of_charcoal.json @@ -0,0 +1,6 @@ +{ + "variants": { + "": { "model": "examplemod:block/block_of_charcoal" } + } +} + diff --git a/src/main/resources/assets/examplemod/models/block/block_of_charcoal.json b/src/main/resources/assets/examplemod/models/block/block_of_charcoal.json new file mode 100644 index 0000000..21744ec --- /dev/null +++ b/src/main/resources/assets/examplemod/models/block/block_of_charcoal.json @@ -0,0 +1,7 @@ +{ + "parent": "block/cube_all", + "textures": { + "all": "examplemod:block/block_of_charcoal" + } +} + diff --git a/src/main/resources/assets/examplemod/models/item/block_of_charcoal.json b/src/main/resources/assets/examplemod/models/item/block_of_charcoal.json new file mode 100644 index 0000000..b49d37d --- /dev/null +++ b/src/main/resources/assets/examplemod/models/item/block_of_charcoal.json @@ -0,0 +1,3 @@ +{ + "parent": "examplemod:block/block_of_charcoal" +} \ No newline at end of file diff --git a/src/main/resources/assets/examplemod/models/item/tutorial_book.json b/src/main/resources/assets/examplemod/models/item/tutorial_book.json new file mode 100644 index 0000000..8758a98 --- /dev/null +++ b/src/main/resources/assets/examplemod/models/item/tutorial_book.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "examplemod:item/tutorial_book" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/examplemod/textures/block/block_of_charcoal.png b/src/main/resources/assets/examplemod/textures/block/block_of_charcoal.png new file mode 100644 index 0000000000000000000000000000000000000000..da0c90a14cda062cdcc4035e0da94d19dd62cfd7 GIT binary patch literal 822 zcmZ?rHDhJ~12Z700mK4O%*Y@C7H5FULpTuf|3CoZtwvUf%*J#zE?KPNKtW6skVViG qpmC8^LfB{u(6~cRJ1B!73V z<)5I+>o6t8L2ZVB=!zN_U-l4wL61WV)`&ZPFy67X!C=Qb!If)PGOs>0an05lr=L`w syVYc=I(M&FR@KjYhVk#bt>6D;*6u1Ji2LJ#7 literal 0 HcmV?d00001 diff --git a/src/main/resources/data/examplemod/loot_tables/blocks/block_of_charcoal.json b/src/main/resources/data/examplemod/loot_tables/blocks/block_of_charcoal.json new file mode 100644 index 0000000..c53846a --- /dev/null +++ b/src/main/resources/data/examplemod/loot_tables/blocks/block_of_charcoal.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "name": "examplemod:block_of_charcoal", + "type": "minecraft:item" + } + ], + "rolls": 1 + } + ] +} + diff --git a/src/main/resources/data/examplemod/recipes/charcoal.json b/src/main/resources/data/examplemod/recipes/charcoal.json new file mode 100644 index 0000000..375fb72 --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/charcoal.json @@ -0,0 +1,16 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "C" + ], + "key": { + "C": { + "item": "examplemod:block_of_charcoal" + } + }, + "result": { + "item": "minecraft:charcoal", + "count": 9 + } +} + diff --git a/src/main/resources/data/examplemod/recipes/charcoal_block.json b/src/main/resources/data/examplemod/recipes/charcoal_block.json new file mode 100644 index 0000000..65504b3 --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/charcoal_block.json @@ -0,0 +1,17 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "CCC", + "CCC", + "CCC" + ], + "key": { + "C": { + "item": "minecraft:charcoal" + } + }, + "result": { + "item": "examplemod:block_of_charcoal" + } +} + diff --git a/src/main/resources/data/examplemod/recipes/diamond_horse_armor.json b/src/main/resources/data/examplemod/recipes/diamond_horse_armor.json new file mode 100644 index 0000000..9d588ff --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/diamond_horse_armor.json @@ -0,0 +1,17 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "D D", + "DDD", + "D D" + ], + "key": { + "D": { + "item": "minecraft:diamond" + } + }, + "result": { + "item": "minecraft:diamond_horse_armor" + } +} + diff --git a/src/main/resources/data/examplemod/recipes/end_portal_frame.json b/src/main/resources/data/examplemod/recipes/end_portal_frame.json new file mode 100644 index 0000000..55265a3 --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/end_portal_frame.json @@ -0,0 +1,24 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "SES", + "SDS", + "SSS" + ], + "key": { + "S": { + "item": "minecraft:end_stone" + }, + "E": { + "item": "minecraft:ender_eye" + }, + "D": { + "item": "minecraft:dragon_egg" + } + }, + "result": { + "item": "minecraft:end_portal_frame", + "count": 12 + } +} + diff --git a/src/main/resources/data/examplemod/recipes/ender_arrow.json b/src/main/resources/data/examplemod/recipes/ender_arrow.json new file mode 100644 index 0000000..fcfd0e4 --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/ender_arrow.json @@ -0,0 +1,8 @@ +{ + "type": "minecraft:crafting_shapeless", + "ingredients": ["minecraft:arrow", "minecraft:ender_eye"], + + "result": { + "item": "vt:ender_arrow" + } + } \ No newline at end of file diff --git a/src/main/resources/data/examplemod/recipes/experience_cage.json b/src/main/resources/data/examplemod/recipes/experience_cage.json new file mode 100644 index 0000000..15539a9 --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/experience_cage.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "BBB", + "BEB", + "BBB" + ], + "key": { + "E": { + "item": "minecraft:emerald" + }, + "B": { + "item": "minecraft:iron_bars" + }, + }, + "result": { + "item": "examplemod:experience_cage" + } +} + diff --git a/src/main/resources/data/examplemod/recipes/flesh_to_leather.json b/src/main/resources/data/examplemod/recipes/flesh_to_leather.json new file mode 100644 index 0000000..5f0cd5b --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/flesh_to_leather.json @@ -0,0 +1,9 @@ +{ + "type": "minecraft:smelting", + "ingredients": { + "item": "minecraft:rotten_flesh" + }, + "result": { + "item": "minecraft:leather" + } +} \ No newline at end of file diff --git a/src/main/resources/data/examplemod/recipes/flight_ring.json b/src/main/resources/data/examplemod/recipes/flight_ring.json new file mode 100644 index 0000000..97e1f0e --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/flight_ring.json @@ -0,0 +1,23 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "FGF", + "GEG", + "GGG" + ], + "key": { + "F": { + "item": "minecraft:feather" + }, + "E": { + "item": "minecraft:elytra" + }, + "G": { + "item": "minecraft:gold_ingot" + } + }, + "result": { + "item": "examplemod:ring_of_flight" + } +} + diff --git a/src/main/resources/data/examplemod/recipes/gold_diamond_boots.json b/src/main/resources/data/examplemod/recipes/gold_diamond_boots.json new file mode 100644 index 0000000..264e311 --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/gold_diamond_boots.json @@ -0,0 +1,13 @@ +{ + "type": "smithing", + "base": { + "item": "minecraft:diamond_boots" + }, + "addition": { + "item": "minecraft:gold_block" + }, + "result": { + "item": "examplemod:gold_diamond_boots" + } +} + diff --git a/src/main/resources/data/examplemod/recipes/gold_diamond_chestplate.json b/src/main/resources/data/examplemod/recipes/gold_diamond_chestplate.json new file mode 100644 index 0000000..9bef8e0 --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/gold_diamond_chestplate.json @@ -0,0 +1,13 @@ +{ + "type": "smithing", + "base": { + "item": "minecraft:diamond_chestplate" + }, + "addition": { + "item": "minecraft:gold_block" + }, + "result": { + "item": "examplemod:gold_diamond_chestplate" + } +} + diff --git a/src/main/resources/data/examplemod/recipes/gold_diamond_helmet.json b/src/main/resources/data/examplemod/recipes/gold_diamond_helmet.json new file mode 100644 index 0000000..2033495 --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/gold_diamond_helmet.json @@ -0,0 +1,13 @@ +{ + "type": "smithing", + "base": { + "item": "minecraft:diamond_helmet" + }, + "addition": { + "item": "minecraft:gold_block" + }, + "result": { + "item": "examplemod:gold_diamond_helmet" + } +} + diff --git a/src/main/resources/data/examplemod/recipes/gold_diamond_leggings.json b/src/main/resources/data/examplemod/recipes/gold_diamond_leggings.json new file mode 100644 index 0000000..22e9e3e --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/gold_diamond_leggings.json @@ -0,0 +1,13 @@ +{ + "type": "smithing", + "base": { + "item": "minecraft:diamond_leggings" + }, + "addition": { + "item": "minecraft:gold_block" + }, + "result": { + "item": "examplemod:gold_diamond_leggings" + } +} + diff --git a/src/main/resources/data/examplemod/recipes/gold_horse_armor.json b/src/main/resources/data/examplemod/recipes/gold_horse_armor.json new file mode 100644 index 0000000..ecd9690 --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/gold_horse_armor.json @@ -0,0 +1,17 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "G G", + "GGG", + "G G" + ], + "key": { + "G": { + "item": "minecraft:gold_ingot" + } + }, + "result": { + "item": "minecraft:golden_horse_armor" + } +} + diff --git a/src/main/resources/data/examplemod/recipes/gold_netherite_boots.json b/src/main/resources/data/examplemod/recipes/gold_netherite_boots.json new file mode 100644 index 0000000..2a640af --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/gold_netherite_boots.json @@ -0,0 +1,13 @@ +{ + "type": "smithing", + "base": { + "item": "minecraft:netherite_boots" + }, + "addition": { + "item": "minecraft:gold_block" + }, + "result": { + "item": "examplemod:gold_netherite_boots" + } +} + diff --git a/src/main/resources/data/examplemod/recipes/gold_netherite_chestplate.json b/src/main/resources/data/examplemod/recipes/gold_netherite_chestplate.json new file mode 100644 index 0000000..2625e94 --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/gold_netherite_chestplate.json @@ -0,0 +1,13 @@ +{ + "type": "smithing", + "base": { + "item": "minecraft:netherite_chestplate" + }, + "addition": { + "item": "minecraft:gold_block" + }, + "result": { + "item": "examplemod:gold_netherite_chestplate" + } +} + diff --git a/src/main/resources/data/examplemod/recipes/gold_netherite_helmet.json b/src/main/resources/data/examplemod/recipes/gold_netherite_helmet.json new file mode 100644 index 0000000..6d99b06 --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/gold_netherite_helmet.json @@ -0,0 +1,13 @@ +{ + "type": "smithing", + "base": { + "item": "minecraft:netherite_helmet" + }, + "addition": { + "item": "minecraft:gold_block" + }, + "result": { + "item": "examplemod:gold_netherite_helmet" + } +} + diff --git a/src/main/resources/data/examplemod/recipes/gold_netherite_leggings.json b/src/main/resources/data/examplemod/recipes/gold_netherite_leggings.json new file mode 100644 index 0000000..8b05aa7 --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/gold_netherite_leggings.json @@ -0,0 +1,13 @@ +{ + "type": "smithing", + "base": { + "item": "minecraft:netherite_leggings" + }, + "addition": { + "item": "minecraft:gold_block" + }, + "result": { + "item": "examplemod:gold_netherite_leggings" + } +} + diff --git a/src/main/resources/data/examplemod/recipes/iron_horse_armor.json b/src/main/resources/data/examplemod/recipes/iron_horse_armor.json new file mode 100644 index 0000000..0b60bf7 --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/iron_horse_armor.json @@ -0,0 +1,17 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "I I", + "III", + "I I" + ], + "key": { + "I": { + "item": "minecraft:iron_ingot" + } + }, + "result": { + "item": "minecraft:iron_horse_armor" + } +} + diff --git a/src/main/resources/data/examplemod/recipes/name_tag.json b/src/main/resources/data/examplemod/recipes/name_tag.json new file mode 100644 index 0000000..017cb5c --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/name_tag.json @@ -0,0 +1,18 @@ +{ + "type": "minecraft:crafting_shapeless", + "pattern": [ + "SP " + ], + "key": { + "S": { + "item": "minecraft:string" + }, + "P": { + "item": "minecraft:paper" + } + }, + "result": { + "item": "minecraft:name_tag" + } +} + diff --git a/src/main/resources/data/examplemod/recipes/netherite_horse_armor.json b/src/main/resources/data/examplemod/recipes/netherite_horse_armor.json new file mode 100644 index 0000000..a585087 --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/netherite_horse_armor.json @@ -0,0 +1,17 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "N N", + "NNN", + "N N" + ], + "key": { + "N": { + "item": "minecraft:netherite_ingot" + } + }, + "result": { + "item": "examplemod:netherite_horse_armor" + } +} + diff --git a/src/main/resources/data/examplemod/recipes/saddle.json b/src/main/resources/data/examplemod/recipes/saddle.json new file mode 100644 index 0000000..544a5ca --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/saddle.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "LLL", + "T T", + " " + ], + "key": { + "L": { + "item": "minecraft:leather" + }, + "T": { + "item": "minecraft:tripwire_hook" + } + }, + "result": { + "item": "minecraft:saddle" + } +} + diff --git a/src/main/resources/data/examplemod/recipes/scaffolding.json b/src/main/resources/data/examplemod/recipes/scaffolding.json new file mode 100644 index 0000000..f08adce --- /dev/null +++ b/src/main/resources/data/examplemod/recipes/scaffolding.json @@ -0,0 +1,21 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "WSW", + "W W", + "W W" + ], + "key": { + "S": { + "item": "minecraft:string" + }, + "W": { + "item": "minecraft:stick" + } + }, + "result": { + "item": "minecraft:scaffolding", + "count": 6 + } +} +