Skip to content

Commit

Permalink
Added separate "distance" states for Thermal Calcite Vents
Browse files Browse the repository at this point in the history
  • Loading branch information
Forstride committed Nov 22, 2023
1 parent 18428a9 commit 5376348
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
import net.minecraft.world.item.enchantment.EnchantmentHelper;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.material.Fluids;
import net.minecraft.world.level.pathfinder.PathComputationType;

public class ThermalCalciteVentBlock extends Block
public class ThermalCalciteVentBlock extends ThermalCalciteBlock
{
public ThermalCalciteVentBlock(Properties properties)
{
Expand All @@ -28,7 +27,7 @@ public ThermalCalciteVentBlock(Properties properties)
@Override
public void stepOn(Level level, BlockPos p_153778_, BlockState p_153779_, Entity p_153780_)
{
if (level.getBlockState(p_153778_.above()).getFluidState().is(Fluids.WATER))
if (level.getBlockState(p_153778_.above()).getFluidState().getType() == Fluids.WATER && level.getBlockState(p_153778_.above()).getFluidState().getAmount() == 8)
{
if (!p_153780_.fireImmune() && p_153780_ instanceof LivingEntity && !EnchantmentHelper.hasFrostWalker((LivingEntity) p_153780_))
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"variants": {
"": { "model": "biomesoplenty:block/thermal_calcite_vent" }
"distance=1": { "model": "biomesoplenty:block/thermal_calcite_vent" },
"distance=2": { "model": "biomesoplenty:block/thermal_calcite_vent_2" },
"distance=3": { "model": "biomesoplenty:block/thermal_calcite_vent_3" },
"distance=4": { "model": "biomesoplenty:block/thermal_calcite_vent_4" },
"distance=5": { "model": "biomesoplenty:block/thermal_calcite_vent_5" }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parent": "block/cube_bottom_top",
"textures": {
"bottom": "biomesoplenty:block/thermal_calcite_2",
"top": "biomesoplenty:block/thermal_calcite_vent_2",
"side": "biomesoplenty:block/thermal_calcite_2"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parent": "block/cube_bottom_top",
"textures": {
"bottom": "biomesoplenty:block/thermal_calcite_3",
"top": "biomesoplenty:block/thermal_calcite_vent_3",
"side": "biomesoplenty:block/thermal_calcite_3"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parent": "block/cube_bottom_top",
"textures": {
"bottom": "biomesoplenty:block/thermal_calcite_4",
"top": "biomesoplenty:block/thermal_calcite_vent_4",
"side": "biomesoplenty:block/thermal_calcite_4"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parent": "block/cube_bottom_top",
"textures": {
"bottom": "biomesoplenty:block/thermal_calcite_5",
"top": "biomesoplenty:block/thermal_calcite_vent_5",
"side": "biomesoplenty:block/thermal_calcite_5"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
{
"id": "biomesoplenty:bayou",
"required": false
},
{
"id": "biomesoplenty:hot_springs",
"required": false
},
{
"id": "biomesoplenty:floodplain",
Expand Down

0 comments on commit 5376348

Please sign in to comment.