Add files via upload

This commit is contained in:
Steven Tracey
2020-11-18 06:54:16 -05:00
committed by GitHub
parent 250d0d4f47
commit c8e6361bc8
74 changed files with 2634 additions and 0 deletions

View File

@@ -0,0 +1,58 @@
package net.nevets.everythingvanilla;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder;
import net.minecraft.block.Block;
import net.minecraft.entity.EquipmentSlot;
import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.item.*;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;
import net.nevets.everythingvanilla.armor.BaseArmor;
import net.nevets.everythingvanilla.armor.EmeraldArmorMaterial;
import net.nevets.everythingvanilla.blocks.GoldNetheriteBlock;
import net.nevets.everythingvanilla.blocks.PlatinumOre;
import net.nevets.everythingvanilla.items.CookedVillagerMeat;
import net.nevets.everythingvanilla.items.PlatinumIngot;
import net.nevets.everythingvanilla.items.RawVillagerMeat;
import net.nevets.everythingvanilla.tools.*;
public class Main implements ModInitializer {
//Creative Tab
public static final ItemGroup ALL = FabricItemGroupBuilder.build(
new Identifier("vanilla", "all"),
() -> new ItemStack((Items.GRASS_BLOCK)));
public static final Block GOLDNETHERITEBLOCK = new GoldNetheriteBlock();
public static final Item RAWVILLAGERMEAT = new RawVillagerMeat(new Item.Settings().group(Main.ALL).food(new FoodComponent.Builder().hunger(3).saturationModifier(1.8f).meat().statusEffect(new StatusEffectInstance(StatusEffects.BAD_OMEN, 20*1000000), 0.1f).build()));
public static final Item COOKEDVILLAGERMEAT = new CookedVillagerMeat(new Item.Settings().group(Main.ALL).food(new FoodComponent.Builder().hunger(7).saturationModifier(10f).meat().statusEffect(new StatusEffectInstance(StatusEffects.BAD_OMEN, 20*1000000), 0.1f).build()));
public static final ArmorMaterial EMERALD_ARMOR = new EmeraldArmorMaterial();
public static final Item PLATINUMINGOT = new PlatinumIngot(new Item.Settings().group(Main.ALL));
public static final Block PLATINUMORE = new PlatinumOre();
public void onInitialize() {
//Blocks
Registry.register(Registry.BLOCK, new Identifier("vanilla", "gold_infused_netherite_block"), GOLDNETHERITEBLOCK);
Registry.register(Registry.BLOCK, new Identifier("vanilla", "platinum_ore"), PLATINUMORE);
//Items
Registry.register(Registry.ITEM, new Identifier("vanilla", "platinum_ingot"), PLATINUMINGOT);
Registry.register(Registry.ITEM, new Identifier("vanilla", "platinum_ore"), new BlockItem(PLATINUMORE, new Item.Settings().group(Main.ALL)));
Registry.register(Registry.ITEM, new Identifier("vanilla", "gold_infused_netherite_block"), new BlockItem(GOLDNETHERITEBLOCK, new Item.Settings().group(Main.ALL)));
//Tools
Registry.register(Registry.ITEM, new Identifier("vanilla", "emerald_pickaxe"), new PickaxeBase(new EmeraldToolMaterial()));
Registry.register(Registry.ITEM, new Identifier("vanilla", "emerald_axe"), new AxeBase(new EmeraldToolMaterial()));
Registry.register(Registry.ITEM, new Identifier("vanilla", "emerald_shovel"), new ShovelBase(new EmeraldToolMaterial()));
Registry.register(Registry.ITEM, new Identifier("vanilla", "emerald_hoe"), new HoeBase(new EmeraldToolMaterial()));
Registry.register(Registry.ITEM, new Identifier("vanilla", "emerald_sword"), new SwordBase(new EmeraldToolMaterial()));
//Armor
Registry.register(Registry.ITEM, new Identifier("vanilla", "emerald_helmet"), new BaseArmor(EMERALD_ARMOR, EquipmentSlot.HEAD));
Registry.register(Registry.ITEM, new Identifier("vanilla", "emerald_chestplate"), new BaseArmor(EMERALD_ARMOR, EquipmentSlot.CHEST));
Registry.register(Registry.ITEM, new Identifier("vanilla", "emerald_leggings"), new BaseArmor(EMERALD_ARMOR, EquipmentSlot.LEGS));
Registry.register(Registry.ITEM, new Identifier("vanilla", "emerald_boots"), new BaseArmor(EMERALD_ARMOR, EquipmentSlot.FEET));
//Food
Registry.register(Registry.ITEM, new Identifier("vanilla", "raw_villager_meat"), RAWVILLAGERMEAT);
Registry.register(Registry.ITEM, new Identifier("vanilla", "cooked_villager_meat"), COOKEDVILLAGERMEAT);
}
}

View File

@@ -0,0 +1,13 @@
package net.nevets.everythingvanilla.armor;
import net.minecraft.entity.EquipmentSlot;
import net.minecraft.item.ArmorItem;
import net.minecraft.item.ArmorMaterial;
import net.minecraft.item.Item;
import net.nevets.everythingvanilla.Main;
public class BaseArmor extends ArmorItem {
public BaseArmor(ArmorMaterial material, EquipmentSlot slot) {
super(material, slot, new Item.Settings().group(Main.ALL));
}
}

View File

@@ -0,0 +1,46 @@
package net.nevets.everythingvanilla.armor;
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 EmeraldArmorMaterial implements ArmorMaterial {
private static final int[] BASE_DURABILITY = new int[] {13, 15, 16, 11};
private static final int[] PROTECTION_AMOUNTS = new int[] {2, 6, 8, 2};
public int getDurability(EquipmentSlot arg0) {
return BASE_DURABILITY[arg0.getEntitySlotId()]*25;
}
public int getProtectionAmount(EquipmentSlot arg0) {
return PROTECTION_AMOUNTS[arg0.getEntitySlotId()];
}
public int getEnchantability() {
return 30;
}
public SoundEvent getEquipSound() {
return SoundEvents.ITEM_ARMOR_EQUIP_DIAMOND;
}
public Ingredient getRepairIngredient() {
return Ingredient.ofItems(Items.EMERALD);
}
public String getName() {
return "emerald";
}
public float getToughness() {
return 1f;
}
public float getKnockbackResistance() {
return 0f;
}
}

View File

@@ -0,0 +1,14 @@
package net.nevets.everythingvanilla.blocks;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.fabricmc.fabric.api.tool.attribute.v1.FabricToolTags;
import net.minecraft.block.Block;
import net.minecraft.block.Material;
import net.minecraft.sound.BlockSoundGroup;
public class GoldNetheriteBlock extends Block {
public GoldNetheriteBlock() {
super(FabricBlockSettings.of(Material.METAL).breakByHand(false).breakByTool(FabricToolTags.PICKAXES).sounds(BlockSoundGroup.NETHERITE).strength(50, 1500f));
}
}

View File

@@ -0,0 +1,13 @@
package net.nevets.everythingvanilla.blocks;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.fabricmc.fabric.api.tool.attribute.v1.FabricToolTags;
import net.minecraft.block.Block;
import net.minecraft.block.Material;
import net.minecraft.sound.BlockSoundGroup;
public class PlatinumOre extends Block {
public PlatinumOre() {
super(FabricBlockSettings.of(Material.STONE).breakByHand(false).breakByTool(FabricToolTags.PICKAXES).sounds(BlockSoundGroup.STONE).strength(3, 1500f));
}
}

View File

@@ -0,0 +1,9 @@
package net.nevets.everythingvanilla.items;
import net.minecraft.item.Item;
public class CookedVillagerMeat extends Item {
public CookedVillagerMeat(Settings item$Settings_1) { super(item$Settings_1); }
}

View File

@@ -0,0 +1,9 @@
package net.nevets.everythingvanilla.items;
import net.minecraft.item.Item;
public class PlatinumIngot extends Item {
public PlatinumIngot(Settings settings) {
super(settings);
}
}

View File

@@ -0,0 +1,9 @@
package net.nevets.everythingvanilla.items;
import net.minecraft.item.Item;
public class RawVillagerMeat extends Item {
public RawVillagerMeat(Settings settings) {
super(settings);
}
}

View File

@@ -0,0 +1,11 @@
package net.nevets.everythingvanilla.tools;
import net.minecraft.item.AxeItem;
import net.minecraft.item.ToolMaterial;
import net.nevets.everythingvanilla.Main;
public class AxeBase extends AxeItem {
public AxeBase(ToolMaterial toolMaterial_1) {
super(toolMaterial_1, 5, -3.0f, new Settings().group(Main.ALL));
}
}

View File

@@ -0,0 +1,32 @@
package net.nevets.everythingvanilla.tools;
import net.minecraft.item.Items;
import net.minecraft.item.ToolMaterial;
import net.minecraft.recipe.Ingredient;
public class EmeraldToolMaterial implements ToolMaterial {
public int getDurability() {
return 750;
}
public float getMiningSpeedMultiplier() {
return 7.0f;
}
public float getAttackDamage() {
return 4f;
}
public int getMiningLevel() {
return 3;
}
public int getEnchantability() {
return 30;
}
public Ingredient getRepairIngredient() {
return Ingredient.ofItems(Items.EMERALD);
}
}

View File

@@ -0,0 +1,11 @@
package net.nevets.everythingvanilla.tools;
import net.minecraft.item.HoeItem;
import net.minecraft.item.ToolMaterial;
import net.nevets.everythingvanilla.Main;
public class HoeBase extends HoeItem {
public HoeBase(ToolMaterial toolMaterial_1) {
super(toolMaterial_1, -3, 0f, new Settings().group(Main.ALL));
}
}

View File

@@ -0,0 +1,12 @@
package net.nevets.everythingvanilla.tools;
import net.minecraft.item.Item;
import net.minecraft.item.PickaxeItem;
import net.minecraft.item.ToolMaterial;
import net.nevets.everythingvanilla.Main;
public class PickaxeBase extends PickaxeItem {
public PickaxeBase(ToolMaterial toolMaterial_1) {
super(toolMaterial_1, 1, -2.8f, new Item.Settings().group(Main.ALL));
}
}

View File

@@ -0,0 +1,11 @@
package net.nevets.everythingvanilla.tools;
import net.minecraft.item.ShovelItem;
import net.minecraft.item.ToolMaterial;
import net.nevets.everythingvanilla.Main;
public class ShovelBase extends ShovelItem {
public ShovelBase(ToolMaterial toolMaterial_1) {
super(toolMaterial_1, 1, -3f, new Settings().group(Main.ALL));
}
}

View File

@@ -0,0 +1,11 @@
package net.nevets.everythingvanilla.tools;
import net.minecraft.item.SwordItem;
import net.minecraft.item.ToolMaterial;
import net.nevets.everythingvanilla.Main;
public class SwordBase extends SwordItem {
public SwordBase(ToolMaterial toolMaterial_1) {
super(toolMaterial_1, 3, -2.4f, new Settings().group(Main.ALL));
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,5 @@
{
"variants": {
"": { "model": "vanilla:block/gold_infused_netherite_block"}
}
}

View File

@@ -0,0 +1,5 @@
{
"variants": {
"": { "model": "vanilla:block/platinum_ore"}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 B

View File

@@ -0,0 +1,17 @@
{
"block.vanilla.gold_infused_netherite_block": "Gold Infused Netherite Block",
"item.vanilla.raw_villager_meat": "Raw Villager Meat",
"item.vanilla.cooked_villager_meat": "Cooked Villager Meat",
"item.vanilla.emerald_pickaxe": "Emerald Pickaxe",
"item.vanilla.emerald_axe": "Emerald Axe",
"item.vanilla.emerald_shovel": "Emerald Shovel",
"item.vanilla.emerald_hoe": "Emerald Hoe",
"item.vanilla.emerald_sword": "Emerald Sword",
"item.vanilla.emerald_helmet": "Emerald Helmet",
"item.vanilla.emerald_chestplate": "Emerald Chestplate",
"item.vanilla.emerald_leggings": "Emerald Leggings",
"item.vanilla.emerald_boots": "Emerald Boots",
"itemGroup.vanilla.all": "All",
"item.vanilla.platinum_ingot": "Platinum Ingot",
"block.vanilla.platinum_ore": "Platinum Ore"
}

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,6 @@
{
"parent": "item/handheld",
"textures": {
"layer0": "vanilla:item/emerald_axe"
}
}

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,6 @@
{
"parent": "item/handheld",
"textures": {
"layer0": "vanilla:item/emerald_hoe"
}
}

View File

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

View File

@@ -0,0 +1,6 @@
{
"parent": "item/handheld",
"textures": {
"layer0": "vanilla:item/emerald_pickaxe"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "item/handheld",
"textures": {
"layer0": "vanilla:item/emerald_shovel"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "item/handheld",
"textures": {
"layer0": "vanilla:item/emerald_sword"
}
}

View File

@@ -0,0 +1,3 @@
{
"parent": "vanilla:block/gold_infused_netherite_block"
}

View File

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

View File

@@ -0,0 +1,3 @@
{
"parent": "vanilla:block/platinum_ore"
}

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@@ -0,0 +1,37 @@
{
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "item",
"weight": 1,
"name": "leatherite:raw_villager_meat",
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 3
}
}
]
},
{
"type": "item",
"weight": 1,
"name": "minecraft:emerald",
"functions": [
{
"function": "set_count",
"count": {
"min": 0,
"max": 1
}
}
]
}
]
}
]
}

View File

@@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "leatherite:gold_infused_netherite_block"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View File

@@ -0,0 +1,19 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"XX",
"X#",
" #"
],
"key": {
"#": {
"item": "minecraft:stick"
},
"X": {
"item": "minecraft:emerald"
}
},
"result": {
"item": "leatherite:emerald_axe"
}
}

View File

@@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"# #",
"# #"
],
"key": {
"#": {
"item": "minecraft:emerald"
}
},
"result": {
"item": "leatherite:emerald_boots",
"count": 1
}
}

View File

@@ -0,0 +1,17 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"# #",
"###",
"###"
],
"key": {
"#": {
"item": "minecraft:emerald"
}
},
"result": {
"item": "leatherite:emerald_chestplate",
"count": 1
}
}

View File

@@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"###",
"# #"
],
"key": {
"#": {
"item": "minecraft:emerald"
}
},
"result": {
"item": "leatherite:emerald_helmet",
"count": 1
}
}

View File

@@ -0,0 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"##",
" /",
" /"
],
"key": {
"#": {
"item": "minecraft:emerald"
},
"/": {
"item": "minecraft:stick"
}
},
"result": {
"item": "leatherite:emerald_hoe",
"count": 1
}
}

View File

@@ -0,0 +1,17 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"###",
"# #",
"# #"
],
"key": {
"#": {
"item": "minecraft:emerald"
}
},
"result": {
"item": "leatherite:emerald_leggings",
"count": 1
}
}

View File

@@ -0,0 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"###",
" / ",
" / "
],
"key": {
"#": {
"item": "minecraft:emerald"
},
"/": {
"item": "minecraft:stick"
}
},
"result": {
"item": "leatherite:emerald_pickaxe",
"count": 1
}
}

View File

@@ -0,0 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"#",
"/",
"/"
],
"key": {
"#": {
"item": "minecraft:emerald"
},
"/": {
"item": "minecraft:stick"
}
},
"result": {
"item": "leatherite:emerald_shovel",
"count": 1
}
}

View File

@@ -0,0 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"#",
"#",
"/"
],
"key": {
"#": {
"item": "minecraft:emerald"
},
"/": {
"item": "minecraft:stick"
}
},
"result": {
"item": "leatherite:emerald_sword",
"count": 1
}
}

View File

@@ -0,0 +1,9 @@
{
"type": "minecraft:smelting",
"ingredient": {
"item": "leatherite:raw_villager_meat"
},
"result": "leatherite:cooked_villager_meat",
"experience": 0.3,
"cookingtime": 200
}

View File

@@ -0,0 +1,9 @@
{
"type": "minecraft:campfire_cooking",
"ingredient": {
"item": "leatherite:raw_villager_meat"
},
"result": "leatherite:cooked_villager_meat",
"experience": 0.3,
"cookingtime": 400
}

View File

@@ -0,0 +1,9 @@
{
"type": "minecraft:smoking",
"ingredient": {
"item": "leatherite:raw_villager_meat"
},
"result": "leatherite:cooked_villager_meat",
"experience": 0.3,
"cookingtime": 100
}

View File

@@ -0,0 +1,33 @@
{
"schemaVersion": 1,
"id": "vanilla",
"version": "${version}",
"name": "Everything Vanilla",
"description": "This mod includes everything that should be in vanilla that Mojang just won't add.",
"authors": [
"Steven Tracey"
],
"contact": {
"homepage": "https://flamebitco.me/",
"sources": "https://github.com/nevetS-718/EverythingVanilla"
},
"license": "CC0-1.0",
"icon": "assets/vanilla/icon.png",
"environment": "*",
"entrypoints": {
"main": [
"net.nevets.everythingvanilla.Main"
]
},
"depends": {
"fabricloader": ">=0.7.4",
"fabric": "*",
"minecraft": "1.16.x"
},
"suggests": {
"another-mod": "*"
}
}