-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from PTOM76/1.16.5
EnhancedQuarry 1.2.0-RC2-2
- Loading branch information
Showing
31 changed files
with
356 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/main/java/ml/pkom/enhancedquarries/block/EnhancedOptimumQuarry.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package ml.pkom.enhancedquarries.block; | ||
|
||
import ml.pkom.enhancedquarries.block.base.Quarry; | ||
import ml.pkom.enhancedquarries.event.TileCreateEvent; | ||
import ml.pkom.enhancedquarries.tile.EnhancedOptimumQuarryTile; | ||
import ml.pkom.enhancedquarries.tile.OptimumQuarryTile; | ||
import net.minecraft.block.entity.BlockEntity; | ||
|
||
public class EnhancedOptimumQuarry extends Quarry { | ||
|
||
public EnhancedOptimumQuarry() { | ||
super(); | ||
} | ||
|
||
// instance | ||
public static Quarry INSTANCE = new EnhancedOptimumQuarry(); | ||
|
||
public static Quarry getInstance() { | ||
return INSTANCE; | ||
} | ||
|
||
public static Quarry getQuarry() { | ||
return getInstance(); | ||
} | ||
// ---- | ||
|
||
@Override | ||
public BlockEntity createBlockEntity(TileCreateEvent event) { | ||
return new EnhancedOptimumQuarryTile(event); | ||
} | ||
|
||
} |
32 changes: 32 additions & 0 deletions
32
src/main/java/ml/pkom/enhancedquarries/block/FluidOptimumQuarry.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package ml.pkom.enhancedquarries.block; | ||
|
||
import ml.pkom.enhancedquarries.block.base.Quarry; | ||
import ml.pkom.enhancedquarries.event.TileCreateEvent; | ||
import ml.pkom.enhancedquarries.tile.EnhancedOptimumQuarryTile; | ||
import ml.pkom.enhancedquarries.tile.FluidOptimumQuarryTile; | ||
import net.minecraft.block.entity.BlockEntity; | ||
|
||
public class FluidOptimumQuarry extends Quarry { | ||
|
||
public FluidOptimumQuarry() { | ||
super(); | ||
} | ||
|
||
// instance | ||
public static Quarry INSTANCE = new FluidOptimumQuarry(); | ||
|
||
public static Quarry getInstance() { | ||
return INSTANCE; | ||
} | ||
|
||
public static Quarry getQuarry() { | ||
return getInstance(); | ||
} | ||
// ---- | ||
|
||
@Override | ||
public BlockEntity createBlockEntity(TileCreateEvent event) { | ||
return new FluidOptimumQuarryTile(event); | ||
} | ||
|
||
} |
51 changes: 51 additions & 0 deletions
51
src/main/java/ml/pkom/enhancedquarries/tile/EnhancedOptimumQuarryTile.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
package ml.pkom.enhancedquarries.tile; | ||
|
||
import ml.pkom.enhancedquarries.Tiles; | ||
import ml.pkom.enhancedquarries.event.TileCreateEvent; | ||
import net.minecraft.block.entity.BlockEntityType; | ||
|
||
public class EnhancedOptimumQuarryTile extends OptimumQuarryTile { | ||
|
||
public EnhancedOptimumQuarryTile() { | ||
super(Tiles.ENHANCED_OPTIMUM_QUARRY_TILE); | ||
} | ||
|
||
public EnhancedOptimumQuarryTile(BlockEntityType<?> type) { | ||
super(type); | ||
} | ||
|
||
public EnhancedOptimumQuarryTile(TileCreateEvent event) { | ||
this(); | ||
} | ||
|
||
@Override | ||
public double getBasicSpeed() { | ||
return 10; | ||
} | ||
|
||
@Override | ||
public void coolTimeBonus() { | ||
super.coolTimeBonus(); | ||
if (getBaseMaxPower() / 1.025 < getEnergy()) { | ||
coolTime = coolTime - getBasicSpeed() * 10; | ||
} | ||
if (getBaseMaxPower() / 1.0125 < getEnergy()) { | ||
coolTime = coolTime - getBasicSpeed() * 25; | ||
} | ||
} | ||
|
||
@Override | ||
public double getBaseMaxPower() { | ||
return 10000; | ||
} | ||
|
||
@Override | ||
public double getBaseMaxInput() { | ||
return super.getBaseMaxInput() * 3; | ||
} | ||
|
||
@Override | ||
public double getSettingCoolTime() { | ||
return 200; | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/ml/pkom/enhancedquarries/tile/FluidOptimumQuarryTile.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package ml.pkom.enhancedquarries.tile; | ||
|
||
import ml.pkom.enhancedquarries.Tiles; | ||
import ml.pkom.enhancedquarries.event.TileCreateEvent; | ||
import net.minecraft.block.entity.BlockEntityType; | ||
|
||
public class FluidOptimumQuarryTile extends EnhancedOptimumQuarryTile { | ||
|
||
public FluidOptimumQuarryTile() { | ||
super(Tiles.FLUID_OPTIMUM_QUARRY_TILE); | ||
} | ||
|
||
// 継承のため | ||
public FluidOptimumQuarryTile(BlockEntityType<?> type) { | ||
super(type); | ||
} | ||
|
||
public FluidOptimumQuarryTile(TileCreateEvent event) { | ||
this(); | ||
} | ||
|
||
@Override | ||
public boolean canReplaceFluid() { | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/main/resources/assets/enhanced_quarries/blockstates/enhanced_optimum_quarry.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"variants": { | ||
"facing=north": {"model": "enhanced_quarries:block/enhanced_optimum_quarry", "y": 0}, | ||
"facing=east": {"model": "enhanced_quarries:block/enhanced_optimum_quarry", "y": 90}, | ||
"facing=south": {"model": "enhanced_quarries:block/enhanced_optimum_quarry", "y": 180}, | ||
"facing=west": {"model": "enhanced_quarries:block/enhanced_optimum_quarry", "y": 270} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/resources/assets/enhanced_quarries/blockstates/fluid_optimum_quarry.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"variants": { | ||
"facing=north": {"model": "enhanced_quarries:block/fluid_optimum_quarry", "y": 0}, | ||
"facing=east": {"model": "enhanced_quarries:block/fluid_optimum_quarry", "y": 90}, | ||
"facing=south": {"model": "enhanced_quarries:block/fluid_optimum_quarry", "y": 180}, | ||
"facing=west": {"model": "enhanced_quarries:block/fluid_optimum_quarry", "y": 270} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/main/resources/assets/enhanced_quarries/models/block/enhanced_optimum_quarry.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parent": "block/cube", | ||
"textures": { | ||
"particle": "enhanced_quarries:block/enhanced_optimum_quarry/side", | ||
"down": "enhanced_quarries:block/enhanced_optimum_quarry/side", | ||
"up": "enhanced_quarries:block/enhanced_optimum_quarry/top", | ||
"north": "enhanced_quarries:block/enhanced_optimum_quarry/front", | ||
"east": "enhanced_quarries:block/enhanced_optimum_quarry/side", | ||
"south": "enhanced_quarries:block/enhanced_optimum_quarry/side", | ||
"west": "enhanced_quarries:block/enhanced_optimum_quarry/side" | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/resources/assets/enhanced_quarries/models/block/fluid_optimum_quarry.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parent": "block/cube", | ||
"textures": { | ||
"particle": "enhanced_quarries:block/fluid_optimum_quarry/side", | ||
"down": "enhanced_quarries:block/fluid_optimum_quarry/side", | ||
"up": "enhanced_quarries:block/fluid_optimum_quarry/top", | ||
"north": "enhanced_quarries:block/fluid_optimum_quarry/front", | ||
"east": "enhanced_quarries:block/fluid_optimum_quarry/side", | ||
"south": "enhanced_quarries:block/fluid_optimum_quarry/side", | ||
"west": "enhanced_quarries:block/fluid_optimum_quarry/side" | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
src/main/resources/assets/enhanced_quarries/models/item/enhanced_optimum_quarry.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"parent": "enhanced_quarries:block/enhanced_optimum_quarry" | ||
} |
3 changes: 3 additions & 0 deletions
3
src/main/resources/assets/enhanced_quarries/models/item/fluid_optimum_quarry.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"parent": "enhanced_quarries:block/fluid_optimum_quarry" | ||
} |
Binary file added
BIN
+428 Bytes
...urces/assets/enhanced_quarries/textures/block/enhanced_optimum_quarry/front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+127 Bytes
...ources/assets/enhanced_quarries/textures/block/enhanced_optimum_quarry/side.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+386 Bytes
...sources/assets/enhanced_quarries/textures/block/enhanced_optimum_quarry/top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+498 Bytes
...esources/assets/enhanced_quarries/textures/block/fluid_optimum_quarry/front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+127 Bytes
...resources/assets/enhanced_quarries/textures/block/fluid_optimum_quarry/side.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+563 Bytes
.../resources/assets/enhanced_quarries/textures/block/fluid_optimum_quarry/top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions
19
src/main/resources/data/enhanced_quarries/loot_tables/blocks/enhanced_optimum_quarry.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"rolls": 1, | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "enhanced_quarries:enhanced_optimum_quarry" | ||
} | ||
], | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:survives_explosion" | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.