Small change in how often lava popping can be heard
parent
b0e4a3e9dc
commit
b27f06917f
|
@ -9,7 +9,6 @@ import java.util.HashMap;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.entity.player.Player;
|
import net.minecraft.entity.player.Player;
|
||||||
import net.minecraft.item.ItemInstance;
|
import net.minecraft.item.ItemInstance;
|
||||||
import net.minecraft.item.ItemType;
|
|
||||||
import net.minecraft.recipe.RecipeRegistry;
|
import net.minecraft.recipe.RecipeRegistry;
|
||||||
import xyz.pixelatedw.finalbeta.mixin.RecipeRegistryAccessor;
|
import xyz.pixelatedw.finalbeta.mixin.RecipeRegistryAccessor;
|
||||||
|
|
||||||
|
@ -104,36 +103,13 @@ public class WyHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void cheatCommand(Player player) {
|
public static void cheatCommand(Player player) {
|
||||||
// Slime slime = new Slime(player.level);
|
// player.dropItem(new ItemInstance(ItemType.pickaxeDiamond));
|
||||||
// slime.setPositionAndAngles(player.x, player.y + 0.5D, player.z, player.level.rand.nextFloat() * 360.0F, 0.0F);
|
// player.dropItem(new ItemInstance(Tile.TORCH, 64, 0));
|
||||||
// player.level.spawnEntity(slime);
|
|
||||||
// slime.setSize(5);
|
|
||||||
|
|
||||||
// player.level.entities.stream().filter(e -> !(e instanceof Player)).forEach((e) -> ((net.minecraft.entity.Entity)e).remove());
|
|
||||||
|
|
||||||
// player.dropItem(new ItemInstance(Tile.STONE_SLAB, 64));
|
|
||||||
// player.dropItem(new ItemInstance(Tile.SLAB, 64));
|
|
||||||
// player.dropItem(new ItemInstance(ItemType.minecart, 1));
|
|
||||||
// player.dropItem(new ItemInstance(ItemType.minecartFurnace, 1));
|
|
||||||
player.dropItem(new ItemInstance(ItemType.boat));
|
|
||||||
// player.dropItem(new ItemInstance(Tile.STONE_SLAB, 1, 2));
|
|
||||||
// player.dropItem(new ItemInstance(Tile.GOLDEN_RAIL, 64));
|
|
||||||
// player.dropItem(new ItemInstance(Tile.COBBLESTONE, 64));
|
|
||||||
|
|
||||||
// player.level.setTile((int)player.x, (int)player.y, (int)player.z, Tile.COBBLESTONE.id);
|
|
||||||
|
|
||||||
// int x = 248;
|
|
||||||
// int y = 79;
|
|
||||||
// int z = -65;
|
|
||||||
//
|
//
|
||||||
// for (int i = 0; i < 500; i++) {
|
// player.level.setLevelTime(0);
|
||||||
// player.level.setTile(x + i, y, z, Tile.REDSTONE_TORCH_LIT.id);
|
// player.level.getProperties().setRaining(false);
|
||||||
// }
|
// player.level.getProperties().setRainTime(0);
|
||||||
|
// player.level.getProperties().setThundering(false);
|
||||||
player.level.setLevelTime(0);
|
// player.level.getProperties().setThunderTime(0);
|
||||||
player.level.getProperties().setRaining(false);
|
|
||||||
player.level.getProperties().setRainTime(0);
|
|
||||||
player.level.getProperties().setThundering(false);
|
|
||||||
player.level.getProperties().setThunderTime(0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,12 @@ public class StillFluidTileMixin {
|
||||||
public void onScheduledTick(Level level, int x, int y, int z, Random random, CallbackInfo ci) {
|
public void onScheduledTick(Level level, int x, int y, int z, Random random, CallbackInfo ci) {
|
||||||
StillFluidTile tile = ((StillFluidTile) (Object) this);
|
StillFluidTile tile = ((StillFluidTile) (Object) this);
|
||||||
if (tile.material == Material.LAVA) {
|
if (tile.material == Material.LAVA) {
|
||||||
if (level.rand.nextInt(10) == 1) {
|
if (level.rand.nextInt(16) == 1) {
|
||||||
level.playSound(x, y, z, "sound3.liquid.lava", 0.5f, 1.0f);
|
if (level.rand.nextInt(3) == 1) {
|
||||||
} else {
|
level.playSound(x, y, z, "sound3.liquid.lava", 0.5f, 1.0f);
|
||||||
level.playSound(x, y, z, "sound3.liquid.lavapop", 0.5f, 1.0f);
|
} else {
|
||||||
|
level.playSound(x, y, z, "sound3.liquid.lavapop", 0.5f, 1.0f);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue