Remove unused files and add initial Russian localisation
This commit is contained in:
parent
7b3aedbc94
commit
306d9d4a76
22 changed files with 519 additions and 687 deletions
|
@ -11,10 +11,13 @@ public class Config {
|
|||
INSTANCE = this;
|
||||
}
|
||||
|
||||
// Getters for settings ===========
|
||||
public boolean shouldAnnounceDice() {
|
||||
return announce_dice;
|
||||
}
|
||||
|
||||
// ================================
|
||||
|
||||
|
||||
private static void generateDefault() {
|
||||
INSTANCE = new Config();
|
||||
|
@ -33,7 +36,6 @@ public class Config {
|
|||
} catch (Exception e) {
|
||||
NewSoviet.LOG.error("Error creating config, using default", e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static void load() {
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
# Meat mechanic
|
||||
|
|
@ -1,67 +0,0 @@
|
|||
package su.a71.new_soviet.blocks.meat;
|
||||
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
import net.minecraft.block.*;
|
||||
import net.minecraft.block.entity.SculkSpreadManager;
|
||||
import net.minecraft.item.ItemPlacementContext;
|
||||
import net.minecraft.server.world.ServerWorld;
|
||||
import net.minecraft.state.StateManager;
|
||||
import net.minecraft.state.property.IntProperty;
|
||||
import net.minecraft.state.property.Properties;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.Direction;
|
||||
import net.minecraft.util.math.random.Random;
|
||||
import net.minecraft.world.WorldAccess;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class MeatBlock extends Block implements SculkSpreadable {
|
||||
public static final IntProperty AGE;
|
||||
public final float MeatChance;
|
||||
|
||||
|
||||
public MeatBlock(FabricBlockSettings settings, float meatChance) {
|
||||
super(settings.ticksRandomly());
|
||||
setDefaultState(getDefaultState().with(AGE, 0));
|
||||
this.MeatChance = meatChance;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) {
|
||||
if (world.isAir(pos.up())) {
|
||||
int i;
|
||||
for(i = 1; world.getBlockState(pos.down(i)).isOf(this); ++i) {
|
||||
}
|
||||
|
||||
if (i < 3) {
|
||||
int j = state.get(AGE);
|
||||
if (j == 25) {
|
||||
|
||||
world.setBlockState(pos.up(), this.getDefaultState());
|
||||
|
||||
world.setBlockState(pos, state.with(AGE, 0), 4);
|
||||
} else {
|
||||
world.setBlockState(pos, state.with(AGE, j + 1), 4);
|
||||
}
|
||||
}
|
||||
} super.randomTick(state, world, pos, random);
|
||||
}
|
||||
|
||||
protected void appendProperties(StateManager.Builder<Block, BlockState> builder) {
|
||||
builder.add(AGE);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public BlockState getPlacementState(ItemPlacementContext ctx) {
|
||||
return super.getPlacementState(ctx).with(AGE, 0);
|
||||
}
|
||||
|
||||
static {
|
||||
AGE = Properties.AGE_25;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int spread(SculkSpreadManager.Cursor cursor, WorldAccess world, BlockPos catalystPos, Random random, SculkSpreadManager spreadManager, boolean shouldConvertToBlock) {
|
||||
return 0;
|
||||
}
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
package su.a71.new_soviet.blocks.meat;
|
||||
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
|
||||
public class MeatEyeBlock extends MeatBlock {
|
||||
public MeatEyeBlock(FabricBlockSettings settings) {
|
||||
super(settings, 10);
|
||||
}
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
package su.a71.new_soviet.blocks.meat;
|
||||
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
|
||||
public class MeatTeethBlock extends MeatBlock {
|
||||
public MeatTeethBlock(FabricBlockSettings settings) {
|
||||
super(settings, 10);
|
||||
}
|
||||
}
|
|
@ -441,10 +441,10 @@ public class NSE_Blocks extends NSE_BaseRegistration {
|
|||
public static final Block METAL_PLATING = new Block(FabricBlockSettings.create().sounds(BlockSoundGroup.NETHERITE).hardness(5f).requiresTool().mapColor(MapColor.IRON_GRAY));
|
||||
public static final StairsBlock METAL_PLATING_STAIRS = new StairsBlock(METAL_PLATING.getDefaultState(), FabricBlockSettings.copy(METAL_PLATING));
|
||||
public static final SlabBlock METAL_PLATING_SLAB = new SlabBlock(FabricBlockSettings.copy(METAL_PLATING));
|
||||
public static final BarrelBlock CRATE = new BarrelBlock(FabricBlockSettings.create().sounds(BlockSoundGroup.CHISELED_BOOKSHELF).nonOpaque().mapColor(MapColor.OAK_TAN).hardness(1.8f));
|
||||
public static final BarrelBlock CRATE = new BarrelBlock(FabricBlockSettings.create().sounds(BlockSoundGroup.CHISELED_BOOKSHELF).mapColor(MapColor.OAK_TAN).hardness(1.8f));
|
||||
public static final WallBlock CONCRETE_WALL = new WallBlock(FabricBlockSettings.create().sounds(BlockSoundGroup.STONE).mapColor(MapColor.STONE_GRAY));
|
||||
|
||||
public static final BarbedWireBlock BARBED_WIRE = new BarbedWireBlock(FabricBlockSettings.create().requiresTool().noCollision().requiresTool().strength(4.5f, 2f).mapColor(MapColor.IRON_GRAY));
|
||||
public static final BarbedWireBlock BARBED_WIRE = new BarbedWireBlock(FabricBlockSettings.create().requiresTool().nonOpaque().noCollision().requiresTool().strength(4.5f, 2f).mapColor(MapColor.IRON_GRAY));
|
||||
|
||||
public static final HandrailBlock HANDRAIL = new HandrailBlock(FabricBlockSettings.create().sounds(BlockSoundGroup.COPPER).requiresTool().hardness(4f).nonOpaque());
|
||||
public static final PaneBlock BLUE_IRON_BARS = new PaneBlock(FabricBlockSettings.copy(Blocks.IRON_BARS));
|
||||
|
@ -452,15 +452,15 @@ public class NSE_Blocks extends NSE_BaseRegistration {
|
|||
public static final PaneBlock VINTAGE_IRON_BARS = new PaneBlock(FabricBlockSettings.copy(Blocks.IRON_BARS));
|
||||
|
||||
// WALLPAPER BLOCKS ==========
|
||||
public static final Block GREEN_WALLPAPER = new Block(FabricBlockSettings.create().sounds(NSE_Sounds.WALLPAPER_BLOCK_SOUNDS).nonOpaque().mapColor(MapColor.DARK_GREEN).hardness(10f));
|
||||
public static final Block GREEN_WALLPAPER = new Block(FabricBlockSettings.create().sounds(NSE_Sounds.WALLPAPER_BLOCK_SOUNDS).mapColor(MapColor.DARK_GREEN).hardness(10f));
|
||||
public static final Block BROWN_WALLPAPER = new Block(FabricBlockSettings.copy(GREEN_WALLPAPER).mapColor(MapColor.BROWN));
|
||||
public static final Block BEIGE_WALLPAPER = new Block(FabricBlockSettings.copy(GREEN_WALLPAPER).mapColor(MapColor.DIRT_BROWN));
|
||||
|
||||
// MEAT (cursed...) ==========
|
||||
public static final Block MEAT = new Block(FabricBlockSettings.create().velocityMultiplier(0.8f).sounds(NSE_Sounds.MEAT_SOUNDS).nonOpaque().mapColor(MapColor.DARK_RED).hardness(8f));
|
||||
public static final Block MEAT = new Block(FabricBlockSettings.create().velocityMultiplier(0.8f).sounds(NSE_Sounds.MEAT_SOUNDS).mapColor(MapColor.DARK_RED).hardness(8f));
|
||||
public static final Block MEAT_EYE = new Block(FabricBlockSettings.copy(MEAT));
|
||||
public static final Block MEAT_TEETH = new Block(FabricBlockSettings.copy(MEAT));
|
||||
public static final SnowBlock PURPLE_GOO = new SnowBlock(FabricBlockSettings.copy(MEAT).mapColor(MapColor.PURPLE).hardness(1.2f).nonOpaque());
|
||||
public static final SnowBlock PURPLE_GOO = new SnowBlock(FabricBlockSettings.copy(MEAT).mapColor(MapColor.PURPLE).hardness(1.2f));
|
||||
|
||||
private static final ItemGroup NSE_BUILDING_TAB = FabricItemGroup.builder()
|
||||
.icon(() -> new ItemStack(CALCITE_TILES))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue