parent
30204a2aee
commit
daefcc4dbf
5 changed files with 12 additions and 8 deletions
|
@ -70,12 +70,16 @@ def useApi(String dep) {
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
inputs.property "version", project.version
|
inputs.property "version", project.version
|
||||||
duplicatesStrategy = 'WARN'
|
duplicatesStrategy = 'EXCLUDE'
|
||||||
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
from(sourceSets.main.resources.srcDirs) {
|
||||||
include "fabric.mod.json"
|
include "fabric.mod.json"
|
||||||
expand "version": project.version
|
expand "version": project.version
|
||||||
}
|
}
|
||||||
|
|
||||||
|
from(sourceSets.main.resources.srcDirs) {
|
||||||
|
exclude "fabric.mod.json"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ensure that the encoding is set to UTF-8, no matter what the system default is
|
// ensure that the encoding is set to UTF-8, no matter what the system default is
|
||||||
|
|
|
@ -17,5 +17,5 @@ archives_base_name = better-end
|
||||||
patchouli_version = 50-FABRIC
|
patchouli_version = 50-FABRIC
|
||||||
fabric_version = 0.32.9+1.16
|
fabric_version = 0.32.9+1.16
|
||||||
canvas_version = 1.0.+
|
canvas_version = 1.0.+
|
||||||
bclib_version = 0.1.42
|
bclib_version = 0.1.44
|
||||||
rei_version = 5.8.10
|
rei_version = 5.8.10
|
|
@ -52,7 +52,7 @@ public class EndStoneSmelter extends BaseBlockWithEntity {
|
||||||
.resistance(100F)
|
.resistance(100F)
|
||||||
.requiresCorrectToolForDrops()
|
.requiresCorrectToolForDrops()
|
||||||
.sound(SoundType.STONE));
|
.sound(SoundType.STONE));
|
||||||
this.registerDefaultState(this.stateDefinition.any()
|
registerDefaultState(this.stateDefinition.any()
|
||||||
.setValue(FACING, Direction.NORTH)
|
.setValue(FACING, Direction.NORTH)
|
||||||
.setValue(LIT, false));
|
.setValue(LIT, false));
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ public class EndStoneSmelter extends BaseBlockWithEntity {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BlockState getStateForPlacement(BlockPlaceContext ctx) {
|
public BlockState getStateForPlacement(BlockPlaceContext ctx) {
|
||||||
return this.defaultBlockState().setValue(FACING, ctx.getHorizontalDirection().getOpposite());
|
return defaultBlockState().setValue(FACING, ctx.getHorizontalDirection().getOpposite());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -246,7 +246,7 @@ public class EndStoneSmelterBlockEntity extends BaseContainerBlockEntity impleme
|
||||||
if (recipe == null) {
|
if (recipe == null) {
|
||||||
recipe = level.getRecipeManager().getRecipeFor(RecipeType.BLASTING, this, level).orElse(null);
|
recipe = level.getRecipeManager().getRecipeFor(RecipeType.BLASTING, this, level).orElse(null);
|
||||||
}
|
}
|
||||||
boolean accepted = this.canAcceptRecipeOutput(recipe);
|
boolean accepted = canAcceptRecipeOutput(recipe);
|
||||||
if (!burning && accepted) {
|
if (!burning && accepted) {
|
||||||
burnTime = getFuelTime(fuel);
|
burnTime = getFuelTime(fuel);
|
||||||
fuelTime = burnTime;
|
fuelTime = burnTime;
|
||||||
|
@ -265,7 +265,7 @@ public class EndStoneSmelterBlockEntity extends BaseContainerBlockEntity impleme
|
||||||
}
|
}
|
||||||
|
|
||||||
if (burning && accepted) {
|
if (burning && accepted) {
|
||||||
this.smeltTime++;
|
smeltTime++;
|
||||||
if (smeltTime == smeltTimeTotal) {
|
if (smeltTime == smeltTimeTotal) {
|
||||||
smeltTime = 0;
|
smeltTime = 0;
|
||||||
smeltTimeTotal = getSmeltTime();
|
smeltTimeTotal = getSmeltTime();
|
||||||
|
@ -276,7 +276,7 @@ public class EndStoneSmelterBlockEntity extends BaseContainerBlockEntity impleme
|
||||||
smeltTime = 0;
|
smeltTime = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
burning = isBurning();
|
||||||
if (initialBurning != burning) {
|
if (initialBurning != burning) {
|
||||||
level.setBlock(worldPosition, level.getBlockState(worldPosition).setValue(EndStoneSmelter.LIT, burning), 3);
|
level.setBlock(worldPosition, level.getBlockState(worldPosition).setValue(EndStoneSmelter.LIT, burning), 3);
|
||||||
setChanged();
|
setChanged();
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
"fabricloader": ">=0.11.0",
|
"fabricloader": ">=0.11.0",
|
||||||
"fabric": ">=0.32.0",
|
"fabric": ">=0.32.0",
|
||||||
"minecraft": ">=1.16.4",
|
"minecraft": ">=1.16.4",
|
||||||
"bclib": ">=0.1.42"
|
"bclib": ">=0.1.44"
|
||||||
},
|
},
|
||||||
"suggests": {
|
"suggests": {
|
||||||
"byg": ">=1.1.3",
|
"byg": ">=1.1.3",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue