Remove unused files and add initial Russian localisation

This commit is contained in:
Andrew-71 2023-10-21 13:24:27 +03:00
parent 7b3aedbc94
commit 306d9d4a76
22 changed files with 519 additions and 687 deletions

View file

@ -1,2 +0,0 @@
# Meat mechanic

View file

@ -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;
}
}

View file

@ -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);
}
}

View file

@ -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);
}
}