Begin radio evolution
This commit is contained in:
parent
b54f6f4a31
commit
f1cd38e73b
5 changed files with 6 additions and 12 deletions
|
@ -237,7 +237,7 @@ public class DataGeneration implements DataGeneratorEntrypoint {
|
||||||
addDrop(NSE_Custom.TV);
|
addDrop(NSE_Custom.TV);
|
||||||
addDrop(NSE_Custom.RED_TV);
|
addDrop(NSE_Custom.RED_TV);
|
||||||
addDrop(NSE_Custom.BROWN_TV);
|
addDrop(NSE_Custom.BROWN_TV);
|
||||||
addDrop(NSE_Custom.RADIO);
|
addDrop(NSE_Custom.RADIO_RECEIVER);
|
||||||
addDrop(NSE_Custom.SIREN);
|
addDrop(NSE_Custom.SIREN);
|
||||||
addDrop(NSE_Custom.LAMP);
|
addDrop(NSE_Custom.LAMP);
|
||||||
addDrop(NSE_Custom.CEILING_FAN);
|
addDrop(NSE_Custom.CEILING_FAN);
|
||||||
|
@ -602,7 +602,7 @@ public class DataGeneration implements DataGeneratorEntrypoint {
|
||||||
tvRecipe(exporter, NSE_Custom.TV, Items.ORANGE_DYE);
|
tvRecipe(exporter, NSE_Custom.TV, Items.ORANGE_DYE);
|
||||||
tvRecipe(exporter, NSE_Custom.BROWN_TV, Items.BROWN_DYE);
|
tvRecipe(exporter, NSE_Custom.BROWN_TV, Items.BROWN_DYE);
|
||||||
tvRecipe(exporter, NSE_Custom.RED_TV, Items.RED_DYE);
|
tvRecipe(exporter, NSE_Custom.RED_TV, Items.RED_DYE);
|
||||||
radioRecipe(exporter, NSE_Custom.RADIO);
|
radioRecipe(exporter, NSE_Custom.RADIO_RECEIVER);
|
||||||
ceilingFanRecipe(exporter, NSE_Custom.CEILING_FAN);
|
ceilingFanRecipe(exporter, NSE_Custom.CEILING_FAN);
|
||||||
lampRecipe(exporter, NSE_Custom.LAMP);
|
lampRecipe(exporter, NSE_Custom.LAMP);
|
||||||
sickleRecipe(exporter, NSE_Items.SICKLE);
|
sickleRecipe(exporter, NSE_Items.SICKLE);
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
Ideas for block functionality
|
|
||||||
|
|
||||||
Radio: Like a jukebox on steroids. Maybe container for disks, maybe a way to connect to real radio. Who knows.
|
|
||||||
TV: CC compatible peripheral which combines a speaker and an 8x8 monitor
|
|
||||||
Crate: Like a shulker box but much smaller (but cheaper!)
|
|
|
@ -13,8 +13,8 @@ import net.minecraft.util.shape.VoxelShape;
|
||||||
import net.minecraft.util.shape.VoxelShapes;
|
import net.minecraft.util.shape.VoxelShapes;
|
||||||
import net.minecraft.world.BlockView;
|
import net.minecraft.world.BlockView;
|
||||||
|
|
||||||
public class RadioBlock extends HorizontalFacingBlock {
|
public class RadioReceiverBlock extends HorizontalFacingBlock {
|
||||||
public RadioBlock() {
|
public RadioReceiverBlock() {
|
||||||
super(FabricBlockSettings.create().sounds(BlockSoundGroup.METAL).notSolid().pistonBehavior(PistonBehavior.DESTROY).strength(1f, 2f).mapColor(MapColor.PALE_YELLOW));
|
super(FabricBlockSettings.create().sounds(BlockSoundGroup.METAL).notSolid().pistonBehavior(PistonBehavior.DESTROY).strength(1f, 2f).mapColor(MapColor.PALE_YELLOW));
|
||||||
setDefaultState(getDefaultState().with(Properties.HORIZONTAL_FACING, Direction.NORTH));
|
setDefaultState(getDefaultState().with(Properties.HORIZONTAL_FACING, Direction.NORTH));
|
||||||
}
|
}
|
|
@ -18,7 +18,6 @@ import net.minecraft.text.Text;
|
||||||
import net.minecraft.util.DyeColor;
|
import net.minecraft.util.DyeColor;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
|
|
||||||
import net.minecraft.util.shape.VoxelShape;
|
|
||||||
import net.minecraft.util.shape.VoxelShapes;
|
import net.minecraft.util.shape.VoxelShapes;
|
||||||
import su.a71.new_soviet.NewSoviet;
|
import su.a71.new_soviet.NewSoviet;
|
||||||
import su.a71.new_soviet.blocks.*;
|
import su.a71.new_soviet.blocks.*;
|
||||||
|
@ -30,7 +29,7 @@ public class NSE_Custom extends NSE_BaseRegistration {
|
||||||
public static final TVBlock BROWN_TV = new TVBlock(FabricBlockSettings.create().mapColor(MapColor.TERRACOTTA_BROWN));
|
public static final TVBlock BROWN_TV = new TVBlock(FabricBlockSettings.create().mapColor(MapColor.TERRACOTTA_BROWN));
|
||||||
public static final BlockEntityType<TVBlockEntity> TV_BLOCK_ENTITY = registerBlockEntity("tv_block_entity", TVBlockEntity::new, TV, RED_TV, BROWN_TV);
|
public static final BlockEntityType<TVBlockEntity> TV_BLOCK_ENTITY = registerBlockEntity("tv_block_entity", TVBlockEntity::new, TV, RED_TV, BROWN_TV);
|
||||||
|
|
||||||
public static final RadioBlock RADIO = new RadioBlock();
|
public static final RadioReceiverBlock RADIO_RECEIVER = new RadioReceiverBlock();
|
||||||
|
|
||||||
public static final SwitchBlock SWITCH = new SwitchBlock(FabricBlockSettings.create().sounds(BlockSoundGroup.METAL).notSolid().pistonBehavior(PistonBehavior.DESTROY).strength(1f, 2f).mapColor(MapColor.TERRACOTTA_WHITE));
|
public static final SwitchBlock SWITCH = new SwitchBlock(FabricBlockSettings.create().sounds(BlockSoundGroup.METAL).notSolid().pistonBehavior(PistonBehavior.DESTROY).strength(1f, 2f).mapColor(MapColor.TERRACOTTA_WHITE));
|
||||||
public static final LampBlock LAMP = new LampBlock(FabricBlockSettings.create().sounds(BlockSoundGroup.LANTERN).strength(1f, 1.5f).mapColor(MapColor.WHITE));
|
public static final LampBlock LAMP = new LampBlock(FabricBlockSettings.create().sounds(BlockSoundGroup.LANTERN).strength(1f, 1.5f).mapColor(MapColor.WHITE));
|
||||||
|
@ -72,7 +71,7 @@ public class NSE_Custom extends NSE_BaseRegistration {
|
||||||
registerBlock("tv", () -> TV, NSE_CUSTOM_TAB);
|
registerBlock("tv", () -> TV, NSE_CUSTOM_TAB);
|
||||||
registerBlock("red_tv", () -> RED_TV, NSE_CUSTOM_TAB);
|
registerBlock("red_tv", () -> RED_TV, NSE_CUSTOM_TAB);
|
||||||
registerBlock("brown_tv", () -> BROWN_TV, NSE_CUSTOM_TAB);
|
registerBlock("brown_tv", () -> BROWN_TV, NSE_CUSTOM_TAB);
|
||||||
registerBlock("radio", () -> RADIO, NSE_CUSTOM_TAB);
|
registerBlock("radio_receiver", () -> RADIO_RECEIVER, NSE_CUSTOM_TAB);
|
||||||
registerBlock("lamp", () -> LAMP, NSE_CUSTOM_TAB);
|
registerBlock("lamp", () -> LAMP, NSE_CUSTOM_TAB);
|
||||||
registerBlock("light_bulb", () -> LIGHT_BULB, NSE_CUSTOM_TAB);
|
registerBlock("light_bulb", () -> LIGHT_BULB, NSE_CUSTOM_TAB);
|
||||||
registerBlock("ceiling_fan", () -> CEILING_FAN, NSE_CUSTOM_TAB);
|
registerBlock("ceiling_fan", () -> CEILING_FAN, NSE_CUSTOM_TAB);
|
||||||
|
|
Loading…
Reference in a new issue