parent
6b3eb0f676
commit
e34e51e48c
@ -0,0 +1,60 @@
|
||||
package com.technovision.tutorial.tools;
|
||||
|
||||
import com.technovision.tutorial.util.RegistryHandler;
|
||||
import net.minecraft.item.IItemTier;
|
||||
import net.minecraft.item.crafting.Ingredient;
|
||||
|
||||
import java.util.function.Supplier;
|
||||
|
||||
public enum ModItemTier implements IItemTier {
|
||||
|
||||
RUBY(2, 800, 7.0F, 3.0F, 12, () -> {
|
||||
return Ingredient.fromItems(RegistryHandler.RUBY_SWORD.get());
|
||||
});
|
||||
|
||||
private final int harvestLevel;
|
||||
private final int maxUses;
|
||||
private final float efficiency;
|
||||
private final float attackDamage;
|
||||
private final int enchantability;
|
||||
private final Supplier<Ingredient> repairMaterial;
|
||||
|
||||
ModItemTier(int harvestLevel, int maxUses, float efficiency, float attackDamage, int enchantability, Supplier<Ingredient> repairMaterial) {
|
||||
this.harvestLevel = harvestLevel;
|
||||
this.maxUses = maxUses;
|
||||
this.efficiency = efficiency;
|
||||
this.attackDamage = attackDamage;
|
||||
this.enchantability = enchantability;
|
||||
this.repairMaterial = repairMaterial;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxUses() {
|
||||
return maxUses;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getEfficiency() {
|
||||
return efficiency;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getAttackDamage() {
|
||||
return attackDamage;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getHarvestLevel() {
|
||||
return harvestLevel;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getEnchantability() {
|
||||
return enchantability;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Ingredient getRepairMaterial() {
|
||||
return repairMaterial.get();
|
||||
}
|
||||
}
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"item.tutorial.ruby": "Ruby",
|
||||
"block.tutorial.ruby_block": "Block of Ruby",
|
||||
"itemGroup.tutorialTab": "Tutorial"
|
||||
"itemGroup.tutorialTab": "Tutorial",
|
||||
"item.tutorial.ruby_sword": "Ruby Sword",
|
||||
"item.tutorial.ruby_pickaxe": "Ruby Pickaxe",
|
||||
"item.tutorial.ruby_shovel": "Ruby Shovel",
|
||||
"item.tutorial.ruby_axe": "Ruby Axe",
|
||||
"item.tutorial.ruby_hoe": "Ruby Hoe"
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "item/handheld",
|
||||
"textures": {
|
||||
"layer0": "tutorial:items/ruby_axe"
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "item/handheld",
|
||||
"textures": {
|
||||
"layer0": "tutorial:items/ruby_hoe"
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "item/handheld",
|
||||
"textures": {
|
||||
"layer0": "tutorial:items/ruby_pickaxe"
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "item/handheld",
|
||||
"textures": {
|
||||
"layer0": "tutorial:items/ruby_shovel"
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "item/handheld",
|
||||
"textures": {
|
||||
"layer0": "tutorial:items/ruby_sword"
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 275 B |
After Width: | Height: | Size: 159 B |
After Width: | Height: | Size: 303 B |
After Width: | Height: | Size: 276 B |
After Width: | Height: | Size: 273 B |
@ -0,0 +1,16 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shapeless",
|
||||
"ingredients": [
|
||||
{
|
||||
"item": "minecraft:emerald"
|
||||
},
|
||||
{
|
||||
"item": "minecraft:red_dye"
|
||||
}
|
||||
],
|
||||
"result":
|
||||
{
|
||||
"item": "tutorial:ruby",
|
||||
"count": 3
|
||||
}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern":
|
||||
[
|
||||
"xxx",
|
||||
"xdx",
|
||||
"xxx"
|
||||
],
|
||||
"key":
|
||||
{
|
||||
"x":
|
||||
{
|
||||
"item": "tutorial:ruby"
|
||||
},
|
||||
"d":
|
||||
{
|
||||
"item": "minecraft:diamond"
|
||||
}
|
||||
},
|
||||
"result":
|
||||
{
|
||||
"item": "tutorial:ruby_block",
|
||||
"count": 1
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
{
|
||||
"type": "minecraft:smelting",
|
||||
"ingredient": {
|
||||
"item": "minecraft:emerald"
|
||||
},
|
||||
"result": "tutorial:ruby",
|
||||
"experience": 1.0,
|
||||
"cookingtime": 100
|
||||
}
|
Loading…
Reference in new issue