nggerite
55
src/main/java/dev/tggamesyt/szar/NiggeriteArmorMaterial.java
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
package dev.tggamesyt.szar;
|
||||||
|
|
||||||
|
import net.minecraft.item.ArmorItem;
|
||||||
|
import net.minecraft.item.ArmorMaterial;
|
||||||
|
import net.minecraft.recipe.Ingredient;
|
||||||
|
import net.minecraft.sound.SoundEvent;
|
||||||
|
import net.minecraft.sound.SoundEvents;
|
||||||
|
|
||||||
|
public class NiggeriteArmorMaterial implements ArmorMaterial {
|
||||||
|
|
||||||
|
public static final NiggeriteArmorMaterial INSTANCE = new NiggeriteArmorMaterial();
|
||||||
|
|
||||||
|
private static final int[] BASE_DURABILITY = {13, 15, 16, 11};
|
||||||
|
private static final int[] PROTECTION = {4, 8, 10, 4};
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getDurability(ArmorItem.Type type) {
|
||||||
|
return BASE_DURABILITY[type.getEquipmentSlot().getEntitySlotId()] * 40;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getProtection(ArmorItem.Type type) {
|
||||||
|
return PROTECTION[type.getEquipmentSlot().getEntitySlotId()];
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getEnchantability() {
|
||||||
|
return 18;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public SoundEvent getEquipSound() {
|
||||||
|
return SoundEvents.ITEM_ARMOR_EQUIP_NETHERITE;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Ingredient getRepairIngredient() {
|
||||||
|
return Ingredient.ofItems(Szar.NIGGERITE_INGOT);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "mythril";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public float getToughness() {
|
||||||
|
return 3.5F;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public float getKnockbackResistance() {
|
||||||
|
return 0.15F;
|
||||||
|
}
|
||||||
|
}
|
||||||
40
src/main/java/dev/tggamesyt/szar/NiggeriteMaterial.java
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
package dev.tggamesyt.szar;
|
||||||
|
|
||||||
|
import net.minecraft.item.ToolMaterial;
|
||||||
|
import net.minecraft.recipe.Ingredient;
|
||||||
|
|
||||||
|
public class NiggeriteMaterial implements ToolMaterial {
|
||||||
|
|
||||||
|
public static final NiggeriteMaterial INSTANCE = new NiggeriteMaterial();
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getDurability() {
|
||||||
|
return 2500; // Netherite is 2031
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public float getMiningSpeedMultiplier() {
|
||||||
|
return 10.0F; // Netherite is 9
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public float getAttackDamage() {
|
||||||
|
return 4.5F;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getMiningLevel() {
|
||||||
|
return 4; // Netherite level
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getEnchantability() {
|
||||||
|
return 18;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Ingredient getRepairIngredient() {
|
||||||
|
return Ingredient.ofItems(Szar.NIGGERITE_INGOT);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -2,6 +2,7 @@ package dev.tggamesyt.szar;
|
|||||||
|
|
||||||
import dev.tggamesyt.szar.items.Joint;
|
import dev.tggamesyt.szar.items.Joint;
|
||||||
import net.fabricmc.api.ModInitializer;
|
import net.fabricmc.api.ModInitializer;
|
||||||
|
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
|
||||||
import net.fabricmc.fabric.api.itemgroup.v1.FabricItemGroup;
|
import net.fabricmc.fabric.api.itemgroup.v1.FabricItemGroup;
|
||||||
import net.fabricmc.fabric.api.message.v1.ServerMessageDecoratorEvent;
|
import net.fabricmc.fabric.api.message.v1.ServerMessageDecoratorEvent;
|
||||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||||
@@ -51,6 +52,16 @@ public class Szar implements ModInitializer {
|
|||||||
entries.add(Szar.CANNABIS_ITEM);
|
entries.add(Szar.CANNABIS_ITEM);
|
||||||
entries.add(Szar.WEED_ITEM);
|
entries.add(Szar.WEED_ITEM);
|
||||||
entries.add(Szar.WEED_JOINT_ITEM);
|
entries.add(Szar.WEED_JOINT_ITEM);
|
||||||
|
entries.add(Szar.NIGGERITE_INGOT);
|
||||||
|
entries.add(Szar.NIGGERITE_SWORD);
|
||||||
|
entries.add(Szar.NIGGERITE_AXE);
|
||||||
|
entries.add(Szar.NIGGERITE_PICKAXE);
|
||||||
|
entries.add(Szar.NIGGERITE_SHOVEL);
|
||||||
|
entries.add(Szar.NIGGERITE_HOE);
|
||||||
|
entries.add(Szar.NIGGERITE_HELMET);
|
||||||
|
entries.add(Szar.NIGGERITE_CHESTPLATE);
|
||||||
|
entries.add(Szar.NIGGERITE_LEGGINGS);
|
||||||
|
entries.add(Szar.NIGGERITE_BOOTS);
|
||||||
})
|
})
|
||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
@@ -100,6 +111,97 @@ public class Szar implements ModInitializer {
|
|||||||
new Item.Settings()
|
new Item.Settings()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
public static final Item NIGGERITE_INGOT = Registry.register(
|
||||||
|
Registries.ITEM,
|
||||||
|
new Identifier(MOD_ID, "niggerite_ingot"),
|
||||||
|
new Item(new FabricItemSettings().fireproof())
|
||||||
|
);
|
||||||
|
public static final Item NIGGERITE_SWORD = Registry.register(
|
||||||
|
Registries.ITEM,
|
||||||
|
new Identifier(MOD_ID, "niggerite_sword"),
|
||||||
|
new SwordItem(
|
||||||
|
NiggeriteMaterial.INSTANCE,
|
||||||
|
4,
|
||||||
|
-2.4F,
|
||||||
|
new FabricItemSettings().fireproof()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
public static final Item NIGGERITE_AXE = Registry.register(
|
||||||
|
Registries.ITEM,
|
||||||
|
new Identifier(MOD_ID, "niggerite_axe"),
|
||||||
|
new AxeItem(
|
||||||
|
NiggeriteMaterial.INSTANCE,
|
||||||
|
4,
|
||||||
|
-2.4F,
|
||||||
|
new FabricItemSettings().fireproof()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
public static final Item NIGGERITE_PICKAXE = Registry.register(
|
||||||
|
Registries.ITEM,
|
||||||
|
new Identifier(MOD_ID, "niggerite_pickaxe"),
|
||||||
|
new PickaxeItem(
|
||||||
|
NiggeriteMaterial.INSTANCE,
|
||||||
|
4,
|
||||||
|
-2.4F,
|
||||||
|
new FabricItemSettings().fireproof()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
public static final Item NIGGERITE_HOE = Registry.register(
|
||||||
|
Registries.ITEM,
|
||||||
|
new Identifier(MOD_ID, "niggerite_hoe"),
|
||||||
|
new HoeItem(
|
||||||
|
NiggeriteMaterial.INSTANCE,
|
||||||
|
4,
|
||||||
|
-2.4F,
|
||||||
|
new FabricItemSettings().fireproof()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
public static final Item NIGGERITE_SHOVEL = Registry.register(
|
||||||
|
Registries.ITEM,
|
||||||
|
new Identifier(MOD_ID, "niggerite_shovel"),
|
||||||
|
new ShovelItem(
|
||||||
|
NiggeriteMaterial.INSTANCE,
|
||||||
|
4,
|
||||||
|
-2.4F,
|
||||||
|
new FabricItemSettings().fireproof()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
public static final Item NIGGERITE_HELMET = Registry.register(
|
||||||
|
Registries.ITEM,
|
||||||
|
new Identifier(MOD_ID, "niggerite_helmet"),
|
||||||
|
new ArmorItem(
|
||||||
|
NiggeriteArmorMaterial.INSTANCE,
|
||||||
|
ArmorItem.Type.HELMET,
|
||||||
|
new FabricItemSettings().fireproof()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
public static final Item NIGGERITE_CHESTPLATE = Registry.register(
|
||||||
|
Registries.ITEM,
|
||||||
|
new Identifier(MOD_ID, "niggerite_chestplate"),
|
||||||
|
new ArmorItem(
|
||||||
|
NiggeriteArmorMaterial.INSTANCE,
|
||||||
|
ArmorItem.Type.CHESTPLATE,
|
||||||
|
new FabricItemSettings().fireproof()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
public static final Item NIGGERITE_LEGGINGS = Registry.register(
|
||||||
|
Registries.ITEM,
|
||||||
|
new Identifier(MOD_ID, "niggerite_leggings"),
|
||||||
|
new ArmorItem(
|
||||||
|
NiggeriteArmorMaterial.INSTANCE,
|
||||||
|
ArmorItem.Type.LEGGINGS,
|
||||||
|
new FabricItemSettings().fireproof()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
public static final Item NIGGERITE_BOOTS = Registry.register(
|
||||||
|
Registries.ITEM,
|
||||||
|
new Identifier(MOD_ID, "niggerite_boots"),
|
||||||
|
new ArmorItem(
|
||||||
|
NiggeriteArmorMaterial.INSTANCE,
|
||||||
|
ArmorItem.Type.BOOTS,
|
||||||
|
new FabricItemSettings().fireproof()
|
||||||
|
)
|
||||||
|
);
|
||||||
public static final Item WEED_ITEM = Registry.register(
|
public static final Item WEED_ITEM = Registry.register(
|
||||||
Registries.ITEM,
|
Registries.ITEM,
|
||||||
new Identifier(MOD_ID, "weed"),
|
new Identifier(MOD_ID, "weed"),
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:item/handheld",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "szar:item/niggerite_axe"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:item/generated",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "szar:item/niggerite_boots"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:item/generated",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "szar:item/niggerite_chestplate"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:item/generated",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "szar:item/niggerite_helmet"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:item/handheld",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "szar:item/niggerite_hoe"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:item/generated",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "szar:item/niggerite_ingot"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:item/generated",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "szar:item/niggerite_leggings"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:item/handheld",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "szar:item/niggerite_pickaxe"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:item/handheld",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "szar:item/niggerite_shovel"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:item/handheld",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "szar:item/niggerite_sword"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,16 +1,32 @@
|
|||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"format_version": "1.9.0",
|
||||||
"textures": {
|
"credit": "Made with Blockbench",
|
||||||
"layer0": "szar:item/weed_joint"
|
"textures": {
|
||||||
},
|
"0": "szar:item/joint3d",
|
||||||
"overrides": [
|
"particle": "szar:item/joint3d"
|
||||||
{
|
},
|
||||||
"predicate": { "held": 1 },
|
"elements": [
|
||||||
"model": "szar:item/weed_joint_3d"
|
{
|
||||||
},
|
"from": [7, 0, 7],
|
||||||
{
|
"to": [9, 12, 9],
|
||||||
"predicate": { "using": 1 },
|
"rotation": {"angle": 0, "axis": "y", "origin": [7, 0, 7]},
|
||||||
"model": "szar:item/weed_joint_held"
|
"faces": {
|
||||||
}
|
"north": {"uv": [0, 0, 2, 12], "texture": "#0"},
|
||||||
]
|
"east": {"uv": [2, 0, 4, 12], "texture": "#0"},
|
||||||
}
|
"south": {"uv": [4, 0, 6, 12], "texture": "#0"},
|
||||||
|
"west": {"uv": [6, 0, 8, 12], "texture": "#0"},
|
||||||
|
"up": {"uv": [10, 2, 8, 0], "texture": "#0"},
|
||||||
|
"down": {"uv": [10, 2, 8, 4], "texture": "#0"}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"predicate": {
|
||||||
|
"using": 1
|
||||||
|
},
|
||||||
|
"model": "szar:item/weed_joint_held"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"display": {}
|
||||||
|
}
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.9.0",
|
|
||||||
"credit": "Made with Blockbench",
|
|
||||||
"textures": {
|
|
||||||
"0": "szar:item/joint3d",
|
|
||||||
"particle": "szar:item/joint3d"
|
|
||||||
},
|
|
||||||
"elements": [
|
|
||||||
{
|
|
||||||
"from": [7, 0, 7],
|
|
||||||
"to": [9, 12, 9],
|
|
||||||
"rotation": {"angle": 0, "axis": "y", "origin": [7, 0, 7]},
|
|
||||||
"faces": {
|
|
||||||
"north": {"uv": [0, 0, 2, 12], "texture": "#0"},
|
|
||||||
"east": {"uv": [2, 0, 4, 12], "texture": "#0"},
|
|
||||||
"south": {"uv": [4, 0, 6, 12], "texture": "#0"},
|
|
||||||
"west": {"uv": [6, 0, 8, 12], "texture": "#0"},
|
|
||||||
"up": {"uv": [10, 2, 8, 0], "texture": "#0"},
|
|
||||||
"down": {"uv": [10, 2, 8, 4], "texture": "#0"}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"overrides": [
|
|
||||||
{
|
|
||||||
"predicate": {
|
|
||||||
"using": 1
|
|
||||||
},
|
|
||||||
"model": "szar:item/weed_joint_held"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"display": {}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"parent": "item/generated",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "szar:item/weed_joint"
|
||||||
|
},
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"predicate": { "held": 1 },
|
||||||
|
"model": "szar:item/weed_joint_3d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"predicate": { "using": 1 },
|
||||||
|
"model": "szar:item/weed_joint_held"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
BIN
src/main/resources/assets/szar/textures/item/niggerite_axe.png
Normal file
|
After Width: | Height: | Size: 184 B |
BIN
src/main/resources/assets/szar/textures/item/niggerite_block.png
Normal file
|
After Width: | Height: | Size: 276 B |
BIN
src/main/resources/assets/szar/textures/item/niggerite_boots.png
Normal file
|
After Width: | Height: | Size: 173 B |
|
After Width: | Height: | Size: 244 B |
|
After Width: | Height: | Size: 162 B |
BIN
src/main/resources/assets/szar/textures/item/niggerite_hoe.png
Normal file
|
After Width: | Height: | Size: 167 B |
BIN
src/main/resources/assets/szar/textures/item/niggerite_ingot.png
Normal file
|
After Width: | Height: | Size: 222 B |
|
After Width: | Height: | Size: 176 B |
|
After Width: | Height: | Size: 188 B |
|
After Width: | Height: | Size: 161 B |
BIN
src/main/resources/assets/szar/textures/item/niggerite_sword.png
Normal file
|
After Width: | Height: | Size: 210 B |