Ajout armure et paxel en Diamond Shard + désactivation minerai surface

Nouvelles fonctionnalités :
- Armure complète en Diamond Shard (casque, plastron, jambières, bottes)
- Paxel en Diamond Shard (outil combiné pioche+pelle+hache, 1000 durabilité)
- Désactivation du Shard Diamond Ore de surface (deepslate uniquement)
- Mise à jour README.md avec toutes les nouvelles fonctionnalités

Fichiers ajoutés :
- Classes d'armure : Sharddiamondhelmet/chestplate/leggings/bootsItem.java
- Classe paxel : SharddiamondpaxelItem.java
- Recettes de craft pour armure et paxel
- Modèles et textures pour tous les nouveaux items
- Textures d'armure (layer 1 et 2)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
felden.r@grenoble.archi.fr
2026-01-05 15:39:24 +01:00
parent e388fb6ad1
commit c59fbf7a34
35 changed files with 552 additions and 13 deletions
@@ -17,6 +17,11 @@ import net.mcreator.customoregen.item.SharddiamondpickaxeItem;
import net.mcreator.customoregen.item.SharddiamondaxeItem;
import net.mcreator.customoregen.item.DiamondshardItem;
import net.mcreator.customoregen.item.OreBiomeFinderItem;
import net.mcreator.customoregen.item.SharddiamondhelmetItem;
import net.mcreator.customoregen.item.SharddiamondchestplateItem;
import net.mcreator.customoregen.item.SharddiamondleggingsItem;
import net.mcreator.customoregen.item.SharddiamondbootsItem;
import net.mcreator.customoregen.item.SharddiamondpaxelItem;
import net.mcreator.customoregen.CustomOreGenMod;
public class CustomOreGenModItems {
@@ -44,7 +49,17 @@ public class CustomOreGenModItems {
// Start of user code block custom items
public static final RegistryObject<Item> ORE_BIOME_FINDER = REGISTRY.register("ore_biome_finder", () -> new OreBiomeFinderItem());
// Diamond Shard Armor
public static final RegistryObject<Item> SHARDDIAMONDHELMET = REGISTRY.register("sharddiamondhelmet", () -> new SharddiamondhelmetItem());
public static final RegistryObject<Item> SHARDDIAMONDCHESTPLATE = REGISTRY.register("sharddiamondchestplate", () -> new SharddiamondchestplateItem());
public static final RegistryObject<Item> SHARDDIAMONDLEGGINGS = REGISTRY.register("sharddiamondleggings", () -> new SharddiamondleggingsItem());
public static final RegistryObject<Item> SHARDDIAMONDBOOTS = REGISTRY.register("sharddiamondboots", () -> new SharddiamondbootsItem());
// Diamond Shard Paxel
public static final RegistryObject<Item> SHARDDIAMONDPAXEL = REGISTRY.register("sharddiamondpaxel", () -> new SharddiamondpaxelItem());
// End of user code block custom items
private static RegistryObject<Item> block(RegistryObject<Block> block) {
return REGISTRY.register(block.getId().getPath(), () -> new BlockItem(block.get(), new Item.Properties()));
}
@@ -29,6 +29,13 @@ public class CustomOreGenModTabs {
tabData.accept(CustomOreGenModItems.SHARDDIAMONDPICKAXE.get());
tabData.accept(CustomOreGenModItems.SHARDDIAMONDSHOVEL.get());
tabData.accept(CustomOreGenModItems.SHARDDIAMONDAXE.get());
tabData.accept(CustomOreGenModItems.SHARDDIAMONDPAXEL.get());
tabData.accept(CustomOreGenModItems.ORE_BIOME_FINDER.get());
} else if (tabData.getTabKey() == CreativeModeTabs.COMBAT) {
tabData.accept(CustomOreGenModItems.SHARDDIAMONDHELMET.get());
tabData.accept(CustomOreGenModItems.SHARDDIAMONDCHESTPLATE.get());
tabData.accept(CustomOreGenModItems.SHARDDIAMONDLEGGINGS.get());
tabData.accept(CustomOreGenModItems.SHARDDIAMONDBOOTS.get());
}
}
}
@@ -0,0 +1,49 @@
package net.mcreator.customoregen.item;
import net.minecraft.world.item.crafting.Ingredient;
import net.minecraft.world.item.ArmorMaterial;
import net.minecraft.world.item.ArmorItem;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Item;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.sounds.SoundEvents;
import net.mcreator.customoregen.init.CustomOreGenModItems;
public class SharddiamondbootsItem extends ArmorItem {
public SharddiamondbootsItem() {
super(new ArmorMaterial() {
public int getDurabilityForType(ArmorItem.Type type) {
return 230; // Bottes
}
public int getDefenseForType(ArmorItem.Type type) {
return 2; // Protection
}
public int getEnchantmentValue() {
return 14;
}
public SoundEvent getEquipSound() {
return SoundEvents.ARMOR_EQUIP_DIAMOND;
}
public Ingredient getRepairIngredient() {
return Ingredient.of(new ItemStack(CustomOreGenModItems.DIAMONDSHARD.get()));
}
public String getName() {
return "shard_diamond";
}
public float getToughness() {
return 1.0f;
}
public float getKnockbackResistance() {
return 0.0f;
}
}, ArmorItem.Type.BOOTS, new Item.Properties());
}
}
@@ -0,0 +1,49 @@
package net.mcreator.customoregen.item;
import net.minecraft.world.item.crafting.Ingredient;
import net.minecraft.world.item.ArmorMaterial;
import net.minecraft.world.item.ArmorItem;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Item;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.sounds.SoundEvents;
import net.mcreator.customoregen.init.CustomOreGenModItems;
public class SharddiamondchestplateItem extends ArmorItem {
public SharddiamondchestplateItem() {
super(new ArmorMaterial() {
public int getDurabilityForType(ArmorItem.Type type) {
return 300; // Plastron
}
public int getDefenseForType(ArmorItem.Type type) {
return 7; // Protection
}
public int getEnchantmentValue() {
return 14;
}
public SoundEvent getEquipSound() {
return SoundEvents.ARMOR_EQUIP_DIAMOND;
}
public Ingredient getRepairIngredient() {
return Ingredient.of(new ItemStack(CustomOreGenModItems.DIAMONDSHARD.get()));
}
public String getName() {
return "shard_diamond";
}
public float getToughness() {
return 1.0f;
}
public float getKnockbackResistance() {
return 0.0f;
}
}, ArmorItem.Type.CHESTPLATE, new Item.Properties());
}
}
@@ -0,0 +1,49 @@
package net.mcreator.customoregen.item;
import net.minecraft.world.item.crafting.Ingredient;
import net.minecraft.world.item.ArmorMaterial;
import net.minecraft.world.item.ArmorItem;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Item;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.sounds.SoundEvents;
import net.mcreator.customoregen.init.CustomOreGenModItems;
public class SharddiamondhelmetItem extends ArmorItem {
public SharddiamondhelmetItem() {
super(new ArmorMaterial() {
public int getDurabilityForType(ArmorItem.Type type) {
return 250; // Casque
}
public int getDefenseForType(ArmorItem.Type type) {
return 3; // Protection
}
public int getEnchantmentValue() {
return 14;
}
public SoundEvent getEquipSound() {
return SoundEvents.ARMOR_EQUIP_DIAMOND;
}
public Ingredient getRepairIngredient() {
return Ingredient.of(new ItemStack(CustomOreGenModItems.DIAMONDSHARD.get()));
}
public String getName() {
return "shard_diamond";
}
public float getToughness() {
return 1.0f;
}
public float getKnockbackResistance() {
return 0.0f;
}
}, ArmorItem.Type.HELMET, new Item.Properties());
}
}
@@ -0,0 +1,49 @@
package net.mcreator.customoregen.item;
import net.minecraft.world.item.crafting.Ingredient;
import net.minecraft.world.item.ArmorMaterial;
import net.minecraft.world.item.ArmorItem;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Item;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.sounds.SoundEvents;
import net.mcreator.customoregen.init.CustomOreGenModItems;
public class SharddiamondleggingsItem extends ArmorItem {
public SharddiamondleggingsItem() {
super(new ArmorMaterial() {
public int getDurabilityForType(ArmorItem.Type type) {
return 280; // Jambières
}
public int getDefenseForType(ArmorItem.Type type) {
return 5; // Protection
}
public int getEnchantmentValue() {
return 14;
}
public SoundEvent getEquipSound() {
return SoundEvents.ARMOR_EQUIP_DIAMOND;
}
public Ingredient getRepairIngredient() {
return Ingredient.of(new ItemStack(CustomOreGenModItems.DIAMONDSHARD.get()));
}
public String getName() {
return "shard_diamond";
}
public float getToughness() {
return 1.0f;
}
public float getKnockbackResistance() {
return 0.0f;
}
}, ArmorItem.Type.LEGGINGS, new Item.Properties());
}
}
@@ -0,0 +1,80 @@
package net.mcreator.customoregen.item;
import net.minecraft.world.item.crafting.Ingredient;
import net.minecraft.world.item.Tier;
import net.minecraft.world.item.PickaxeItem;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Item;
import net.minecraft.tags.TagKey;
import net.minecraft.tags.BlockTags;
import net.minecraft.world.level.block.state.BlockState;
import net.mcreator.customoregen.init.CustomOreGenModItems;
public class SharddiamondpaxelItem extends PickaxeItem {
public SharddiamondpaxelItem() {
super(new Tier() {
public int getUses() {
return 1000;
}
public float getSpeed() {
return 6.5f;
}
public float getAttackDamageBonus() {
return 0f;
}
public int getLevel() {
return 3;
}
public int getEnchantmentValue() {
return 14;
}
public Ingredient getRepairIngredient() {
return Ingredient.of(new ItemStack(CustomOreGenModItems.DIAMONDSHARD.get()));
}
}, 1, -2.8f, new Item.Properties());
}
@Override
public float getDestroySpeed(ItemStack stack, BlockState state) {
// Effective on all blocks that pickaxe, shovel, or axe can mine
if (state.is(BlockTags.MINEABLE_WITH_PICKAXE) ||
state.is(BlockTags.MINEABLE_WITH_SHOVEL) ||
state.is(BlockTags.MINEABLE_WITH_AXE)) {
return getSpeed();
}
return super.getDestroySpeed(stack, state);
}
@Override
public boolean isCorrectToolForDrops(ItemStack stack, BlockState state) {
// Can mine blocks that require pickaxe, shovel, or axe
if (state.is(BlockTags.MINEABLE_WITH_PICKAXE) ||
state.is(BlockTags.MINEABLE_WITH_SHOVEL) ||
state.is(BlockTags.MINEABLE_WITH_AXE)) {
return TierSortingCorrectToolForDrops(stack, state);
}
return false;
}
private boolean TierSortingCorrectToolForDrops(ItemStack stack, BlockState state) {
// Check if tool tier is sufficient for the block
return getTier().getLevel() >= getRequiredToolLevel(state);
}
private int getRequiredToolLevel(BlockState state) {
if (state.is(BlockTags.NEEDS_DIAMOND_TOOL)) {
return 3;
} else if (state.is(BlockTags.NEEDS_IRON_TOOL)) {
return 2;
} else if (state.is(BlockTags.NEEDS_STONE_TOOL)) {
return 1;
}
return 0;
}
}
@@ -21,5 +21,10 @@
"block.custom_ore_gen.puregoldenore": "Pure golden ore",
"block.custom_ore_gen.highemeraldore": "emerald ore",
"item.custom_ore_gen.sharddiamondshovel": "Shard diamond shovel",
"item.custom_ore_gen.ore_biome_finder": "Ore Biome Finder"
"item.custom_ore_gen.ore_biome_finder": "Ore Biome Finder",
"item.custom_ore_gen.sharddiamondhelmet": "Shard Diamond Helmet",
"item.custom_ore_gen.sharddiamondchestplate": "Shard Diamond Chestplate",
"item.custom_ore_gen.sharddiamondleggings": "Shard Diamond Leggings",
"item.custom_ore_gen.sharddiamondboots": "Shard Diamond Boots",
"item.custom_ore_gen.sharddiamondpaxel": "Shard Diamond Paxel"
}
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "custom_ore_gen:item/sharddiamondboots"
}
}
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "custom_ore_gen:item/sharddiamondchestplate"
}
}
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "custom_ore_gen:item/sharddiamondhelmet"
}
}
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "custom_ore_gen:item/sharddiamondleggings"
}
}
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "custom_ore_gen:item/sharddiamondpaxel"
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 869 B

@@ -0,0 +1,18 @@
{
"type": "minecraft:crafting_shaped",
"category": "equipment",
"pattern": [
" ",
"aaa",
"a a"
],
"key": {
"a": {
"item": "custom_ore_gen:diamondshard"
}
},
"result": {
"item": "custom_ore_gen:sharddiamondboots",
"count": 1
}
}
@@ -0,0 +1,21 @@
{
"type": "minecraft:crafting_shaped",
"category": "equipment",
"pattern": [
"aDa",
"aaa",
"aaa"
],
"key": {
"a": {
"item": "custom_ore_gen:diamondshard"
},
"D": {
"item": "minecraft:diamond"
}
},
"result": {
"item": "custom_ore_gen:sharddiamondchestplate",
"count": 1
}
}
@@ -0,0 +1,18 @@
{
"type": "minecraft:crafting_shaped",
"category": "equipment",
"pattern": [
"aaa",
"a a",
" "
],
"key": {
"a": {
"item": "custom_ore_gen:diamondshard"
}
},
"result": {
"item": "custom_ore_gen:sharddiamondhelmet",
"count": 1
}
}
@@ -0,0 +1,21 @@
{
"type": "minecraft:crafting_shaped",
"category": "equipment",
"pattern": [
"aDa",
"a a",
"a a"
],
"key": {
"a": {
"item": "custom_ore_gen:diamondshard"
},
"D": {
"item": "minecraft:diamond"
}
},
"result": {
"item": "custom_ore_gen:sharddiamondleggings",
"count": 1
}
}
@@ -0,0 +1,27 @@
{
"type": "minecraft:crafting_shaped",
"category": "equipment",
"pattern": [
"APS",
"S S",
" "
],
"key": {
"A": {
"item": "custom_ore_gen:sharddiamondaxe"
},
"P": {
"item": "custom_ore_gen:sharddiamondshovel"
},
"S": {
"item": "custom_ore_gen:sharddiamondpickaxe"
},
" ": {
"item": "minecraft:stick"
}
},
"result": {
"item": "custom_ore_gen:sharddiamondpaxel",
"count": 1
}
}