Skip to content

Commit

Permalink
Fix requirement tools
Browse files Browse the repository at this point in the history
  • Loading branch information
AlasDiablo committed Feb 6, 2021
1 parent 0364e9c commit efd4d10
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 4 deletions.
8 changes: 8 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### 5.6.0.68
+ Fix
+ Missing requirement tools
+ Change
+ SoundType of:
+ Basalt Ore
+ Nether Ore

### 5.6.0.67
+ Fix
+ Missing ore generation ([#10](https://github.com/AlasDiablo/JANOEO/issues/10))
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/fr/alasdiablo/janoeo/block/BasaltOre.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import fr.alasdiablo.diolib.generic.ExperienceRarity;
import fr.alasdiablo.diolib.generic.IDropExperience;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.block.RotatedPillarBlock;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
Expand Down Expand Up @@ -30,7 +31,7 @@ public BasaltOre(String registryName, ExperienceRarity experienceRarity) {
super(Properties.create(Material.ROCK)
.setRequiresTool()
.hardnessAndResistance(2f, 4f)
.sound(SoundType.BASALT)
.sound(SoundType.NETHER_GOLD)
.harvestLevel(2)
.harvestTool(ToolType.PICKAXE)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public BasaltRedstoneOre(String registryName) {
super(Properties.create(Material.ROCK)
.setRequiresTool()
.hardnessAndResistance(2f, 4f)
.sound(SoundType.BASALT)
.sound(SoundType.NETHER_GOLD)
.harvestLevel(2)
.harvestTool(ToolType.PICKAXE)
.tickRandomly()
Expand Down
1 change: 1 addition & 0 deletions src/main/java/fr/alasdiablo/janoeo/block/BasicOre.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public BasicOre(String registryName, int harvestLevel, ExperienceRarity experien
.hardnessAndResistance(3f)
.harvestLevel(harvestLevel)
.harvestTool(ToolType.PICKAXE)
.setRequiresTool()
);
this.setRegistryName(registryName);
this.experienceRarity = experienceRarity;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/fr/alasdiablo/janoeo/block/EndOre.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public EndOre(String registryName, ExperienceRarity experienceRarity) {
.hardnessAndResistance(4.0f, 8.0f)
.harvestLevel(3)
.harvestTool(ToolType.PICKAXE)
.setRequiresTool()
);
this.setRegistryName(registryName);
this.experienceRarity = experienceRarity;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/fr/alasdiablo/janoeo/block/GravelOre.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public GravelOre(String registryName, ExperienceRarity experienceRarity) {
.hardnessAndResistance(1f)
.harvestLevel(2)
.harvestTool(ToolType.SHOVEL)
.setRequiresTool()
);
this.setRegistryName(registryName);
this.experienceRarity = experienceRarity;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/fr/alasdiablo/janoeo/block/NetherOre.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ public class NetherOre extends OreBlock implements INetherOre, IDropExperience {
*/
public NetherOre(String registryName, ExperienceRarity experienceRarity) {
super(Properties.create(Material.ROCK)
.sound(SoundType.NETHERRACK)
.sound(SoundType.NETHER_ORE)
.hardnessAndResistance(1f)
.harvestLevel(2)
.harvestTool(ToolType.PICKAXE)
.setRequiresTool()
);
this.setRegistryName(registryName);
this.experienceRarity = experienceRarity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class NetherRedstoneOre extends RedstoneOreBlock implements INetherOre {
*/
public NetherRedstoneOre(String registryName) {
super(Properties.create(Material.ROCK)
.sound(SoundType.NETHERRACK)
.sound(SoundType.NETHER_ORE)
.tickRandomly()
.hardnessAndResistance(1f)
.harvestLevel(2)
Expand Down

0 comments on commit efd4d10

Please sign in to comment.