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>
@@ -12,7 +12,8 @@
|
|||||||
"Bash(grep:*)",
|
"Bash(grep:*)",
|
||||||
"Bash(unzip:*)",
|
"Bash(unzip:*)",
|
||||||
"Bash(./gradlew:*)",
|
"Bash(./gradlew:*)",
|
||||||
"WebSearch"
|
"WebSearch",
|
||||||
|
"Bash(git add:*)"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,12 +70,11 @@ Il est recommandé pour la bonne utilisation du mods d'utilisé des mods complé
|
|||||||
Le mod ajoute plusieurs variantes de minerais personnalisés :
|
Le mod ajoute plusieurs variantes de minerais personnalisés :
|
||||||
|
|
||||||
#### Variantes de Diamant
|
#### Variantes de Diamant
|
||||||
- **Shard Diamond Ore** (`sharddiamondblockore`) : Un minerai de diamant qui droppe des éclats de diamant
|
- **Deepslate Shard Diamond Ore** (`deepslatesharddiamondore`) : Un minerai de diamant qui droppe des éclats de diamant
|
||||||
- Se génère dans tous les biomes (forge:any)
|
- Se génère dans tous les biomes (forge:any)
|
||||||
- Hauteur : 0 à 15
|
- Se génère uniquement en profondeur (deepslate)
|
||||||
- Taille des filons : 8 blocs
|
- Taille des filons : 16 blocs
|
||||||
- Drop : 1-2 Diamond Shards (Fortune supporté)
|
- Drop : 1-2 Diamond Shards (Fortune supporté)
|
||||||
- **Deepslate Shard Diamond Ore** (`deepslatesharddiamondore`) : Version deepslate du minerai d'éclats de diamant
|
|
||||||
- **Concentrated Diamond Ore** (`concentrateddiamondore`) : Un minerai de diamant plus concentré
|
- **Concentrated Diamond Ore** (`concentrateddiamondore`) : Un minerai de diamant plus concentré
|
||||||
- Se génère dans les biomes froids (cold_biomes)
|
- Se génère dans les biomes froids (cold_biomes)
|
||||||
- Drop : 1-2 Diamants (Fortune supporté)
|
- Drop : 1-2 Diamants (Fortune supporté)
|
||||||
@@ -127,6 +126,16 @@ Le mod ajoute plusieurs variantes de minerais personnalisés :
|
|||||||
- Permet de créer des outils en éclats de diamant
|
- Permet de créer des outils en éclats de diamant
|
||||||
- Peut être crafté en diamant complet (9 éclats = 1 diamant)
|
- Peut être crafté en diamant complet (9 éclats = 1 diamant)
|
||||||
|
|
||||||
|
#### Ore Biome Finder (`ore_biome_finder`)
|
||||||
|
- **Description** : Un outil permettant d'identifier les minerais présents dans le biome actuel
|
||||||
|
- **Stack** : 1 (non stackable)
|
||||||
|
- **Utilisation** : Clic droit pour afficher les informations du biome actuel
|
||||||
|
- **Informations affichées** :
|
||||||
|
- Nom du biome et ID
|
||||||
|
- Tags du mod applicables au biome (cold_biomes, hot_biomes, etc.)
|
||||||
|
- Liste des minerais trouvables dans ce biome
|
||||||
|
- **Craft** : Compass + Diamond Shards (voir recettes ci-dessous)
|
||||||
|
|
||||||
### Outils en Diamond Shard
|
### Outils en Diamond Shard
|
||||||
|
|
||||||
Le mod introduit une nouvelle catégorie d'outils située entre le fer et le diamant :
|
Le mod introduit une nouvelle catégorie d'outils située entre le fer et le diamant :
|
||||||
@@ -147,6 +156,31 @@ Le mod introduit une nouvelle catégorie d'outils située entre le fer et le dia
|
|||||||
- **Vitesse de minage** : 7.0
|
- **Vitesse de minage** : 7.0
|
||||||
- **Dégâts d'attaque** : 6
|
- **Dégâts d'attaque** : 6
|
||||||
|
|
||||||
|
#### Paxel en Éclat de Diamant (`sharddiamondpaxel`)
|
||||||
|
- **Description** : Outil combiné pioche + pelle + hache, tout-en-un pour le minage
|
||||||
|
- **Durabilité** : 1000 utilisations
|
||||||
|
- **Vitesse de minage** : 6.5
|
||||||
|
- **Dégâts d'attaque** : 1 (pas fait pour le combat)
|
||||||
|
- **Réparation** : Utilise des Diamond Shards
|
||||||
|
- **Fonctionnalités** :
|
||||||
|
- Mine tous les blocs (pierre, bois, terre, etc.)
|
||||||
|
- Efficace sur tous les types de blocs
|
||||||
|
- Remplace les 3 outils séparés
|
||||||
|
|
||||||
|
### Armure en Diamond Shard
|
||||||
|
|
||||||
|
Le mod introduit une armure intermédiaire située entre le fer et le diamant :
|
||||||
|
|
||||||
|
| Pièce | Protection | Durabilité | Craft |
|
||||||
|
|-------|-----------|------------|-------|
|
||||||
|
| Casque | 3 | 250 | 5 Diamond Shards |
|
||||||
|
| Plastron | 7 | 300 | 8 Diamond Shards + 1 Diamant |
|
||||||
|
| Jambières | 5 | 280 | 7 Diamond Shards + 1 Diamant |
|
||||||
|
| Bottes | 2 | 230 | 4 Diamond Shards |
|
||||||
|
| **Total** | **17** | **1060** | **24 Shards + 2 Diamants** |
|
||||||
|
|
||||||
|
**Comparaison** : Fer (15 armure, 535 durabilité) | Diamond Shard (17 armure, 1060 durabilité) | Diamant (20 armure, 2048 durabilité)
|
||||||
|
|
||||||
## Distribution des Minerais par Biomes
|
## Distribution des Minerais par Biomes
|
||||||
|
|
||||||
Le mod utilise une classification logique des biomes pour la génération des minerais via les biome modifiers de Forge. Le support de **Biomes O' Plenty** est inclus avec 69 biomes supplémentaires.
|
Le mod utilise une classification logique des biomes pour la génération des minerais via les biome modifiers de Forge. Le support de **Biomes O' Plenty** est inclus avec 69 biomes supplémentaires.
|
||||||
@@ -160,13 +194,14 @@ Le mod utilise une classification logique des biomes pour la génération des mi
|
|||||||
| **Mountain** | High Emerald | 22 | 10 |
|
| **Mountain** | High Emerald | 22 | 10 |
|
||||||
| **Rare** | Lower Emerald | 10 | 10 |
|
| **Rare** | Lower Emerald | 10 | 10 |
|
||||||
| **Tempered** | Iron, Deepslate Iron, Concentrated Coal | 23 | 23 |
|
| **Tempered** | Iron, Deepslate Iron, Concentrated Coal | 23 | 23 |
|
||||||
| **All** | Shard Diamond, Deepslate Shard Diamond | - | - |
|
| **All** | Deepslate Shard Diamond | - | - |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 🔷 forge:any (Tous les biomes)
|
### 🔷 forge:any (Tous les biomes)
|
||||||
**Minerais** : Shard Diamond Ore, Deepslate Shard Diamond Ore
|
**Minerais** : Deepslate Shard Diamond Ore
|
||||||
- **TOUS** les biomes (vanilla + mods)
|
- **TOUS** les biomes (vanilla + mods)
|
||||||
|
- **Se génère uniquement en profondeur (deepslate)**
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -430,6 +465,14 @@ Le mod utilise un système de drops configurable (`ConfigurableOreDropsProcedure
|
|||||||
|
|
||||||
## Recettes de Craft
|
## Recettes de Craft
|
||||||
|
|
||||||
|
### Ore Biome Finder
|
||||||
|
```
|
||||||
|
[DiamantShard] [Compas] [DiamantShard]
|
||||||
|
[Compas] [ ] [Compas]
|
||||||
|
[DiamantShard] [Compas] [DiamantShard]
|
||||||
|
= 1 Ore Biome Finder
|
||||||
|
```
|
||||||
|
|
||||||
### Diamant à partir d'Éclats
|
### Diamant à partir d'Éclats
|
||||||
```
|
```
|
||||||
[Éclat] [Éclat] [Éclat]
|
[Éclat] [Éclat] [Éclat]
|
||||||
@@ -444,12 +487,54 @@ Les recettes suivent le pattern standard des outils Minecraft :
|
|||||||
- **Pelle** : 1 Diamond Shard + 2 bâtons
|
- **Pelle** : 1 Diamond Shard + 2 bâtons
|
||||||
- **Hache** : 3 Diamond Shards + 2 bâtons
|
- **Hache** : 3 Diamond Shards + 2 bâtons
|
||||||
|
|
||||||
|
### Paxel en Diamond Shard
|
||||||
|
```
|
||||||
|
[Hache] [Pelle] [Pioche]
|
||||||
|
[Bâton] [ ] [Bâton]
|
||||||
|
= 1 Paxel en Diamond Shard
|
||||||
|
```
|
||||||
|
|
||||||
|
### Armure en Diamond Shard
|
||||||
|
Les recettes suivent le pattern standard des armures Minecraft :
|
||||||
|
- **Casque** : 5 Diamond Shards
|
||||||
|
- **Plastron** : 8 Diamond Shards + 1 Diamant
|
||||||
|
- **Jambières** : 7 Diamond Shards + 1 Diamant
|
||||||
|
- **Bottes** : 4 Diamond Shards
|
||||||
|
|
||||||
|
## Commandes
|
||||||
|
|
||||||
|
### `/ores` ou `/ore`
|
||||||
|
Une commande permettant d'identifier les minerais présents dans le biome actuel.
|
||||||
|
|
||||||
|
**Utilisation** :
|
||||||
|
- Jouez uniquement (doit être exécutée par un joueur)
|
||||||
|
- Affiche les mêmes informations que l'Ore Biome Finder
|
||||||
|
|
||||||
|
**Informations affichées** :
|
||||||
|
- Nom du biome et ID (ex: `minecraft:plains`)
|
||||||
|
- Tags du mod applicables au biome (cold_biomes, hot_biomes, mountain_biomes, tempered_biomes, rare_biomes)
|
||||||
|
- Liste des minerais trouvables dans le biome actuel
|
||||||
|
|
||||||
|
**Exemple de sortie** :
|
||||||
|
```
|
||||||
|
=== Minerais dans: plains ===
|
||||||
|
Biome ID: minecraft:plains
|
||||||
|
Tags du mod: tempered_biomes
|
||||||
|
Minerais trouvables:
|
||||||
|
* Charbon Concentre
|
||||||
|
* Fer (stone)
|
||||||
|
* Fer (deepslate)
|
||||||
|
* Diamant Shard (deepslate)
|
||||||
|
* Bloc Diamant Shard
|
||||||
|
```
|
||||||
|
|
||||||
## Intégration
|
## Intégration
|
||||||
|
|
||||||
### Mode Créatif
|
### Mode Créatif
|
||||||
Les items sont intégrés via `CustomOreGenModTabs` :
|
Les items sont organisés dans les onglets créatifs via `CustomOreGenModTabs` :
|
||||||
- Diamond Shards et blocs de minerais
|
- **INGREDIENTS** : Diamond Shards et blocs de minerais
|
||||||
- Outils en Diamond Shard
|
- **TOOLS_AND_UTILITIES** : Pioche, pelle, hache, paxel et Ore Biome Finder
|
||||||
|
- **COMBAT** : Armure complète en Diamond Shard (casque, plastron, jambières, bottes)
|
||||||
|
|
||||||
### Langue
|
### Langue
|
||||||
Le mod inclut des fichiers de localisation en anglais (`en_us.json`) avec des noms descriptifs pour tous les blocs et objets.
|
Le mod inclut des fichiers de localisation en anglais (`en_us.json`) avec des noms descriptifs pour tous les blocs et objets.
|
||||||
@@ -514,6 +599,7 @@ config/custom_ore_gen-common.toml
|
|||||||
```
|
```
|
||||||
net.mcreator.customoregen/
|
net.mcreator.customoregen/
|
||||||
├── CustomOreGenMod.java # Classe principale du mod
|
├── CustomOreGenMod.java # Classe principale du mod
|
||||||
|
├── OresCommand.java # Commande /ores pour détecter les minerais
|
||||||
├── block/ # Classes des blocs (16 minerais)
|
├── block/ # Classes des blocs (16 minerais)
|
||||||
│ ├── SharddiamondblockoreBlock.java
|
│ ├── SharddiamondblockoreBlock.java
|
||||||
│ ├── ConcentrateddiamondoreBlock.java
|
│ ├── ConcentrateddiamondoreBlock.java
|
||||||
@@ -536,9 +622,15 @@ net.mcreator.customoregen/
|
|||||||
│ └── ConfigHelper.java # Helper pour la configuration
|
│ └── ConfigHelper.java # Helper pour la configuration
|
||||||
├── item/ # Classes des items
|
├── item/ # Classes des items
|
||||||
│ ├── DiamondshardItem.java # Item Diamond Shard (RARE)
|
│ ├── DiamondshardItem.java # Item Diamond Shard (RARE)
|
||||||
|
│ ├── OreBiomeFinderItem.java # Item Ore Biome Finder
|
||||||
│ ├── SharddiamondpickaxeItem.java
|
│ ├── SharddiamondpickaxeItem.java
|
||||||
│ ├── SharddiamondshovelItem.java
|
│ ├── SharddiamondshovelItem.java
|
||||||
│ └── SharddiamondaxeItem.java
|
│ ├── SharddiamondaxeItem.java
|
||||||
|
│ ├── SharddiamondpaxelItem.java # Paxel (outil combiné)
|
||||||
|
│ ├── SharddiamondhelmetItem.java # Casque en Diamond Shard
|
||||||
|
│ ├── SharddiamondchestplateItem.java # Plastron en Diamond Shard
|
||||||
|
│ ├── SharddiamondleggingsItem.java # Jambières en Diamond Shard
|
||||||
|
│ └── SharddiamondbootsItem.java # Bottes en Diamond Shard
|
||||||
├── procedures/ # Procédures et logique
|
├── procedures/ # Procédures et logique
|
||||||
│ ├── ConfigurableOreDropsProcedure.java # Drops configurables
|
│ ├── ConfigurableOreDropsProcedure.java # Drops configurables
|
||||||
│ └── OreexperienceProcedure.java # Drops d'XP
|
│ └── OreexperienceProcedure.java # Drops d'XP
|
||||||
@@ -551,6 +643,10 @@ net.mcreator.customoregen/
|
|||||||
### Classes Principales
|
### Classes Principales
|
||||||
|
|
||||||
- **CustomOreGenMod** : Point d'entrée du mod, gère l'initialisation et le réseau
|
- **CustomOreGenMod** : Point d'entrée du mod, gère l'initialisation et le réseau
|
||||||
|
- **OresCommand** : Commande `/ores` pour identifier les minerais du biome actuel
|
||||||
|
- **OreBiomeFinderItem** : Item utilisable pour détecter les minerais du biome (clic droit)
|
||||||
|
- **SharddiamondpaxelItem** : Paxel combinant pioche + pelle + hache en un seul outil
|
||||||
|
- **Sharddiamondhelmet/chestplate/leggings/bootsItem** : Armure en Diamond Shard
|
||||||
- **ModConfigs** : Configuration complète avec 4 sections (ore_generation, tool_stats, drops, features)
|
- **ModConfigs** : Configuration complète avec 4 sections (ore_generation, tool_stats, drops, features)
|
||||||
- **ConfigurableOreDropsProcedure** : Gère les drops des minerais avec support Fortune/Silk Touch
|
- **ConfigurableOreDropsProcedure** : Gère les drops des minerais avec support Fortune/Silk Touch
|
||||||
- **OreexperienceProcedure** : Gère les drops d'expérience lors du minage
|
- **OreexperienceProcedure** : Gère les drops d'expérience lors du minage
|
||||||
@@ -560,8 +656,12 @@ net.mcreator.customoregen/
|
|||||||
Custom Ore Gem est conçu pour :
|
Custom Ore Gem est conçu pour :
|
||||||
- **Modifier la distribution des ressources** Minecraft avec de nouvelles variantes de minerais
|
- **Modifier la distribution des ressources** Minecraft avec de nouvelles variantes de minerais
|
||||||
- **Fournir un système de drops configurable** pour les pack makers et moddeurs
|
- **Fournir un système de drops configurable** pour les pack makers et moddeurs
|
||||||
- **Introduire une progression intermédiaire** à travers les Diamond Shards
|
- **Introduire une progression intermédiaire** à travers les Diamond Shards (outils et armure)
|
||||||
|
- **Offrir des outils d'exploration** avec l'Ore Biome Finder et la commande `/ores`
|
||||||
|
- **Proposer un outil tout-en-un** avec le Paxel en Diamond Shard (1000 durabilité)
|
||||||
|
- **Fournir une armure intermédiaire** entre fer et diamant (17 protection, 1060 durabilité)
|
||||||
- **S'intégrer avec KubeJS** pour permettre des modifications avancées
|
- **S'intégrer avec KubeJS** pour permettre des modifications avancées
|
||||||
|
- **Supporter Biomes O' Plenty** avec 69 biomes supplémentaires classés par température
|
||||||
|
|
||||||
## Crédits
|
## Crédits
|
||||||
|
|
||||||
|
|||||||
|
After Width: | Height: | Size: 285 B |
|
After Width: | Height: | Size: 166 B |
|
After Width: | Height: | Size: 167 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 869 B |
|
After Width: | Height: | Size: 160 B |
@@ -17,6 +17,11 @@ import net.mcreator.customoregen.item.SharddiamondpickaxeItem;
|
|||||||
import net.mcreator.customoregen.item.SharddiamondaxeItem;
|
import net.mcreator.customoregen.item.SharddiamondaxeItem;
|
||||||
import net.mcreator.customoregen.item.DiamondshardItem;
|
import net.mcreator.customoregen.item.DiamondshardItem;
|
||||||
import net.mcreator.customoregen.item.OreBiomeFinderItem;
|
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;
|
import net.mcreator.customoregen.CustomOreGenMod;
|
||||||
|
|
||||||
public class CustomOreGenModItems {
|
public class CustomOreGenModItems {
|
||||||
@@ -44,7 +49,17 @@ public class CustomOreGenModItems {
|
|||||||
|
|
||||||
// Start of user code block custom items
|
// Start of user code block custom items
|
||||||
public static final RegistryObject<Item> ORE_BIOME_FINDER = REGISTRY.register("ore_biome_finder", () -> new OreBiomeFinderItem());
|
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
|
// End of user code block custom items
|
||||||
|
|
||||||
private static RegistryObject<Item> block(RegistryObject<Block> block) {
|
private static RegistryObject<Item> block(RegistryObject<Block> block) {
|
||||||
return REGISTRY.register(block.getId().getPath(), () -> new BlockItem(block.get(), new Item.Properties()));
|
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.SHARDDIAMONDPICKAXE.get());
|
||||||
tabData.accept(CustomOreGenModItems.SHARDDIAMONDSHOVEL.get());
|
tabData.accept(CustomOreGenModItems.SHARDDIAMONDSHOVEL.get());
|
||||||
tabData.accept(CustomOreGenModItems.SHARDDIAMONDAXE.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.puregoldenore": "Pure golden ore",
|
||||||
"block.custom_ore_gen.highemeraldore": "emerald ore",
|
"block.custom_ore_gen.highemeraldore": "emerald ore",
|
||||||
"item.custom_ore_gen.sharddiamondshovel": "Shard diamond shovel",
|
"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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 167 B |
|
After Width: | Height: | Size: 166 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 160 B |
|
After Width: | Height: | Size: 285 B |
|
After Width: | Height: | Size: 1.6 KiB |
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||