add the rest of the lamp

This commit is contained in:
Brennan Ward 2019-11-16 03:26:10 -05:00
parent 7160236d45
commit 3a7118be0f
54 changed files with 601 additions and 143 deletions

View file

@ -24,9 +24,24 @@ public class AABlocks {
public static final Block CHISELED_BLACK_QUARTZ_BLOCK = null; public static final Block CHISELED_BLACK_QUARTZ_BLOCK = null;
public static final Block BLACK_QUARTZ_PILLAR = null; public static final Block BLACK_QUARTZ_PILLAR = null;
public static final Block BLACK_QUARTZ_SLAB = null; public static final Block BLACK_QUARTZ_SLAB = null;
public static final Block COLORED_LAMP_BLOCK = null; public static final ColoredLampBlock WHITE_LAMP = null;
public static final ColoredLampBlock ORANGE_LAMP = null;
public static final ColoredLampBlock MAGENTA_LAMP = null;
public static final ColoredLampBlock LIGHT_BLUE_LAMP = null;
public static final ColoredLampBlock YELLOW_LAMP = null;
public static final ColoredLampBlock LIME_LAMP = null;
public static final ColoredLampBlock PINK_LAMP = null;
public static final ColoredLampBlock GRAY_LAMP = null;
public static final ColoredLampBlock LIGHT_GRAY_LAMP = null;
public static final ColoredLampBlock CYAN_LAMP = null;
public static final ColoredLampBlock PURPLE_LAMP = null;
public static final ColoredLampBlock BLUE_LAMP = null;
public static final ColoredLampBlock BROWN_LAMP = null;
public static final ColoredLampBlock GREEN_LAMP = null;
public static final ColoredLampBlock RED_LAMP = null;
public static final ColoredLampBlock BLACK_LAMP = null;
@SubscribeEvent @SubscribeEvent
public static void register(Register<Block> e) { public static void register(Register<Block> e) {
//Formatter::off //Formatter::off
e.getRegistry().registerAll( e.getRegistry().registerAll(
@ -35,7 +50,22 @@ public class AABlocks {
new Block(Properties.create(Material.ROCK, MaterialColor.BLACK).hardnessAndResistance(0.8F)).setRegistryName("chiseled_black_quartz_block"), new Block(Properties.create(Material.ROCK, MaterialColor.BLACK).hardnessAndResistance(0.8F)).setRegistryName("chiseled_black_quartz_block"),
new RotatedPillarBlock(Block.Properties.create(Material.ROCK, MaterialColor.BLACK).hardnessAndResistance(0.8F)).setRegistryName("black_quartz_pillar"), new RotatedPillarBlock(Block.Properties.create(Material.ROCK, MaterialColor.BLACK).hardnessAndResistance(0.8F)).setRegistryName("black_quartz_pillar"),
new SlabBlock(Block.Properties.create(Material.ROCK, MaterialColor.BLACK).hardnessAndResistance(0.8F)).setRegistryName("black_quartz_slab"), new SlabBlock(Block.Properties.create(Material.ROCK, MaterialColor.BLACK).hardnessAndResistance(0.8F)).setRegistryName("black_quartz_slab"),
new ColoredLampBlock().setRegistryName("colored_lamp_block") new ColoredLampBlock(LampColor.WHITE).setRegistryName("white_lamp"),
new ColoredLampBlock(LampColor.ORANGE).setRegistryName("orange_lamp"),
new ColoredLampBlock(LampColor.MAGENTA).setRegistryName("magenta_lamp"),
new ColoredLampBlock(LampColor.LIGHT_BLUE).setRegistryName("light_blue_lamp"),
new ColoredLampBlock(LampColor.YELLOW).setRegistryName("yellow_lamp"),
new ColoredLampBlock(LampColor.LIME).setRegistryName("lime_lamp"),
new ColoredLampBlock(LampColor.PINK).setRegistryName("pink_lamp"),
new ColoredLampBlock(LampColor.GRAY).setRegistryName("gray_lamp"),
new ColoredLampBlock(LampColor.LIGHT_GRAY).setRegistryName("light_gray_lamp"),
new ColoredLampBlock(LampColor.CYAN).setRegistryName("cyan_lamp"),
new ColoredLampBlock(LampColor.PURPLE).setRegistryName("purple_lamp"),
new ColoredLampBlock(LampColor.BLUE).setRegistryName("blue_lamp"),
new ColoredLampBlock(LampColor.BROWN).setRegistryName("brown_lamp"),
new ColoredLampBlock(LampColor.GREEN).setRegistryName("green_lamp"),
new ColoredLampBlock(LampColor.RED).setRegistryName("red_lamp"),
new ColoredLampBlock(LampColor.BLACK).setRegistryName("black_lamp")
); );
//Formatter::on //Formatter::on
} }
@ -48,9 +78,11 @@ public class AABlocks {
new BlockItem(BLACK_QUARTZ_BLOCK, new Item.Properties().group(ActuallyAdditions.GROUP)).setRegistryName(BLACK_QUARTZ_BLOCK.getRegistryName()), new BlockItem(BLACK_QUARTZ_BLOCK, new Item.Properties().group(ActuallyAdditions.GROUP)).setRegistryName(BLACK_QUARTZ_BLOCK.getRegistryName()),
new BlockItem(CHISELED_BLACK_QUARTZ_BLOCK, new Item.Properties().group(ActuallyAdditions.GROUP)).setRegistryName(CHISELED_BLACK_QUARTZ_BLOCK.getRegistryName()), new BlockItem(CHISELED_BLACK_QUARTZ_BLOCK, new Item.Properties().group(ActuallyAdditions.GROUP)).setRegistryName(CHISELED_BLACK_QUARTZ_BLOCK.getRegistryName()),
new BlockItem(BLACK_QUARTZ_PILLAR, new Item.Properties().group(ActuallyAdditions.GROUP)).setRegistryName(BLACK_QUARTZ_PILLAR.getRegistryName()), new BlockItem(BLACK_QUARTZ_PILLAR, new Item.Properties().group(ActuallyAdditions.GROUP)).setRegistryName(BLACK_QUARTZ_PILLAR.getRegistryName()),
new BlockItem(BLACK_QUARTZ_SLAB, new Item.Properties().group(ActuallyAdditions.GROUP)).setRegistryName(BLACK_QUARTZ_SLAB.getRegistryName()), new BlockItem(BLACK_QUARTZ_SLAB, new Item.Properties().group(ActuallyAdditions.GROUP)).setRegistryName(BLACK_QUARTZ_SLAB.getRegistryName())
new BlockItem(COLORED_LAMP_BLOCK, new Item.Properties().group(ActuallyAdditions.GROUP)).setRegistryName(COLORED_LAMP_BLOCK.getRegistryName())
); );
//Formatter::on //Formatter::on
for (Block b : ColoredLampBlock.LAMPS.values()) {
e.getRegistry().register(new BlockItem(b, new Item.Properties().group(ActuallyAdditions.GROUP)).setRegistryName(b.getRegistryName()));
}
} }
} }

View file

@ -1,61 +1,60 @@
package de.ellpeck.actuallyadditions.mod.block; package de.ellpeck.actuallyadditions.mod.block;
import java.util.EnumMap;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.block.BlockState; import net.minecraft.block.BlockState;
import net.minecraft.block.RedstoneLampBlock;
import net.minecraft.block.material.Material; import net.minecraft.block.material.Material;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity; import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.state.BooleanProperty;
import net.minecraft.state.EnumProperty;
import net.minecraft.state.StateContainer.Builder;
import net.minecraft.util.Hand; import net.minecraft.util.Hand;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.BlockRayTraceResult; import net.minecraft.util.math.BlockRayTraceResult;
import net.minecraft.world.IEnviromentBlockReader;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraftforge.common.ToolType; import net.minecraftforge.common.ToolType;
import javax.annotation.Nullable; public class ColoredLampBlock extends RedstoneLampBlock {
public class ColoredLampBlock extends Block { public static final EnumMap<LampColor, ColoredLampBlock> LAMPS = new EnumMap<>(LampColor.class);
public static final EnumProperty<LampColors> COLOR = EnumProperty.create("color", LampColors.class); protected LampColor color;
public static final BooleanProperty ACTIVE = BooleanProperty.create("active");
public ColoredLampBlock() { public ColoredLampBlock(LampColor color) {
super(Properties.create(Material.REDSTONE_LIGHT).harvestTool(ToolType.PICKAXE).harvestLevel(0).hardnessAndResistance(0.5F, 3.0F)); super(Properties.create(Material.REDSTONE_LIGHT).harvestTool(ToolType.PICKAXE).lightValue(15).hardnessAndResistance(0.5F, 3.0F));
} this.setDefaultState(getDefaultState().with(LIT, false));
this.color = color;
LAMPS.put(color, this);
}
public void onBlockPlacedBy(World worldIn, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack stack) { @Override
super.onBlockPlacedBy(worldIn, pos, state.with(ACTIVE, false).with(COLOR, LampColors.WHITE), placer, stack); @Deprecated
} public boolean onBlockActivated(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockRayTraceResult hit) {
ItemStack stack = player.getHeldItem(hand);
if (player.isSneaking() && stack.isEmpty()) {
world.setBlockState(pos, state.cycle(LIT));
return true;
}
public boolean onBlockActivated(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockRayTraceResult hit) { LampColor color = LampColor.getColorFromStack(stack);
ItemStack stack = player.getHeldItemMainhand(); if (color != null && color != this.color) {
if (hand == Hand.MAIN_HAND && (stack == null || stack.isEmpty())) { world.setBlockState(pos, LAMPS.get(color).getDefaultState().with(LIT, state.get(LIT)));
world.setBlockState(pos, state.with(ACTIVE, !state.get(ACTIVE)), 3); if (!player.abilities.isCreativeMode) {
return true; stack.shrink(1);
} }
return true;
}
LampColors color = LampColors.getColorFromStack(stack); return false;
if (color != null) { }
world.setBlockState(pos, state.with(COLOR, color), 3);
world.markAndNotifyBlock(pos, world.getChunkAt(pos), state, world.getBlockState(pos), 3);
if (!player.abilities.isCreativeMode) {
player.inventory.decrStackSize(player.inventory.currentItem, 1);
}
}
@Override
public void neighborChanged(BlockState state, World world, BlockPos pos, Block from, BlockPos fromPos, boolean isMoving) {
if (!world.isRemote) {
if (world.getBlockState(fromPos).canProvidePower()) {
world.setBlockState(pos, state.with(LIT, world.isBlockPowered(pos)));
}
}
}
return super.onBlockActivated(state, world, pos, player, hand, hit);
}
public int getLightValue(BlockState state, IEnviromentBlockReader world, BlockPos pos) {
return state.get(ACTIVE) ? 15 : 0;
}
protected void fillStateContainer(Builder<Block, BlockState> builder) {
builder.add(COLOR, ACTIVE);
}
} }

View file

@ -0,0 +1,55 @@
/*
* This file ("TheColoredLampColors.java") is part of the Actually Additions mod for Minecraft.
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
* http://ellpeck.de/actaddlicense
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
* © 2015-2017 Ellpeck
*/
package de.ellpeck.actuallyadditions.mod.block;
import javax.annotation.Nullable;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tags.Tag;
import net.minecraftforge.common.Tags;
public enum LampColor {
WHITE(Tags.Items.DYES_WHITE),
ORANGE(Tags.Items.DYES_ORANGE),
MAGENTA(Tags.Items.DYES_MAGENTA),
LIGHT_BLUE(Tags.Items.DYES_LIGHT_BLUE),
YELLOW(Tags.Items.DYES_YELLOW),
LIME(Tags.Items.DYES_LIME),
PINK(Tags.Items.DYES_PINK),
GRAY(Tags.Items.DYES_GRAY),
LIGHT_GRAY(Tags.Items.DYES_LIGHT_GRAY),
CYAN(Tags.Items.DYES_CYAN),
PURPLE(Tags.Items.DYES_PURPLE),
BLUE(Tags.Items.DYES_BLUE),
BROWN(Tags.Items.DYES_BROWN),
GREEN(Tags.Items.DYES_GREEN),
RED(Tags.Items.DYES_RED),
BLACK(Tags.Items.DYES_BLACK);
Tag<Item> tag;
LampColor(Tag<Item> tag) {
this.tag = tag;
}
private static final LampColor[] values = values();
@Nullable
public static LampColor getColorFromStack(ItemStack stack) {
for (LampColor c : values) {
if (c.tag.contains(stack.getItem())) return c;
}
return null;
}
}

View file

@ -1,53 +0,0 @@
/*
* This file ("TheColoredLampColors.java") is part of the Actually Additions mod for Minecraft.
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
* http://ellpeck.de/actaddlicense
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
* © 2015-2017 Ellpeck
*/
package de.ellpeck.actuallyadditions.mod.block;
import net.minecraft.item.ItemStack;
import net.minecraft.tags.ItemTags;
import net.minecraft.util.IStringSerializable;
import net.minecraft.util.ResourceLocation;
import org.codehaus.plexus.util.StringUtils;
import java.util.Collection;
public enum LampColors implements IStringSerializable {
WHITE("White", "white"), ORANGE("Orange", "orange"), MAGENTA("Magenta", "magenta"), LIGHT_BLUE("LightBlue", "light_blue"), YELLOW("Yellow", "yellow"), LIME("Lime", "lime"), PINK("Pink", "pink"), GRAY("Gray", "gray"), LIGHT_GRAY("LightGray", "light_gray"), CYAN("Cyan", "cyan"), PURPLE("Purple", "purple"), BLUE("Blue", "blue"), BROWN("Brown", "brown"), GREEN("Green", "green"), RED("Red", "red"), BLACK("Black", "black");
public final String regName;
public final String oreName;
LampColors(String oreName, String regName) {
this.oreName = oreName;
this.regName = regName;
}
public static LampColors getColorFromStack(ItemStack stack) {
Collection<ResourceLocation> owningTags = ItemTags.getCollection().getOwningTags(stack.getItem());
String dyeColor = "";
for (ResourceLocation rl : owningTags) {
String path = rl.getPath();
if (path.contains("dyes/")) {
dyeColor = path.substring(5);
break;
}
}
if (StringUtils.isEmpty(dyeColor)) {
return null;
}
return valueOf(dyeColor.toUpperCase());
}
@Override
public String getName() {
return this.regName;
}
}

View file

@ -0,0 +1,6 @@
{
"variants": {
"lit=true": { "model": "actuallyadditions:block/colored_lamp_block_on_black" },
"lit=false": { "model": "actuallyadditions:block/colored_lamp_block_black" }
}
}

View file

@ -0,0 +1,6 @@
{
"variants": {
"lit=true": { "model": "actuallyadditions:block/colored_lamp_block_on_blue" },
"lit=false": { "model": "actuallyadditions:block/colored_lamp_block_blue" }
}
}

View file

@ -0,0 +1,6 @@
{
"variants": {
"lit=true": { "model": "actuallyadditions:block/colored_lamp_block_on_brown" },
"lit=false": { "model": "actuallyadditions:block/colored_lamp_block_brown" }
}
}

View file

@ -1,36 +0,0 @@
{
"variants": {
"active=true,color=white": { "model": "actuallyadditions:block/colored_lamp_block_on_white" },
"active=false,color=white": { "model": "actuallyadditions:block/colored_lamp_block_white" },
"active=true,color=black": { "model": "actuallyadditions:block/colored_lamp_block_on_black" },
"active=false,color=black": { "model": "actuallyadditions:block/colored_lamp_block_black" },
"active=true,color=blue": { "model": "actuallyadditions:block/colored_lamp_block_on_blue" },
"active=false,color=blue": { "model": "actuallyadditions:block/colored_lamp_block_blue" },
"active=true,color=brown": { "model": "actuallyadditions:block/colored_lamp_block_on_brown" },
"active=false,color=brown": { "model": "actuallyadditions:block/colored_lamp_block_brown" },
"active=true,color=cyan": { "model": "actuallyadditions:block/colored_lamp_block_on_cyan" },
"active=false,color=cyan": { "model": "actuallyadditions:block/colored_lamp_block_cyan" },
"active=true,color=gray": { "model": "actuallyadditions:block/colored_lamp_block_on_gray" },
"active=false,color=gray": { "model": "actuallyadditions:block/colored_lamp_block_gray" },
"active=true,color=green": { "model": "actuallyadditions:block/colored_lamp_block_on_green" },
"active=false,color=green": { "model": "actuallyadditions:block/colored_lamp_block_green" },
"active=true,color=light_blue": { "model": "actuallyadditions:block/colored_lamp_block_on_light_blue" },
"active=false,color=light_blue": { "model": "actuallyadditions:block/colored_lamp_block_light_blue" },
"active=true,color=light_gray": { "model": "actuallyadditions:block/colored_lamp_block_on_light_gray" },
"active=false,color=light_gray": { "model": "actuallyadditions:block/colored_lamp_block_light_gray" },
"active=true,color=lime": { "model": "actuallyadditions:block/colored_lamp_block_on_lime" },
"active=false,color=lime": { "model": "actuallyadditions:block/colored_lamp_block_lime" },
"active=true,color=magenta": { "model": "actuallyadditions:block/colored_lamp_block_on_magenta" },
"active=false,color=magenta": { "model": "actuallyadditions:block/colored_lamp_block_magenta" },
"active=true,color=orange": { "model": "actuallyadditions:block/colored_lamp_block_on_orange" },
"active=false,color=orange": { "model": "actuallyadditions:block/colored_lamp_block_orange" },
"active=true,color=pink": { "model": "actuallyadditions:block/colored_lamp_block_on_pink" },
"active=false,color=pink": { "model": "actuallyadditions:block/colored_lamp_block_pink" },
"active=true,color=purple": { "model": "actuallyadditions:block/colored_lamp_block_on_purple" },
"active=false,color=purple": { "model": "actuallyadditions:block/colored_lamp_block_purple" },
"active=true,color=red": { "model": "actuallyadditions:block/colored_lamp_block_on_red" },
"active=false,color=red": { "model": "actuallyadditions:block/colored_lamp_block_red" },
"active=true,color=yellow": { "model": "actuallyadditions:block/colored_lamp_block_on_yellow" },
"active=false,color=yellow": { "model": "actuallyadditions:block/colored_lamp_block_yellow" }
}
}

View file

@ -0,0 +1,6 @@
{
"variants": {
"lit=true": { "model": "actuallyadditions:block/colored_lamp_block_on_cyan" },
"lit=false": { "model": "actuallyadditions:block/colored_lamp_block_cyan" }
}
}

View file

@ -0,0 +1,6 @@
{
"variants": {
"lit=true": { "model": "actuallyadditions:block/colored_lamp_block_on_gray" },
"lit=false": { "model": "actuallyadditions:block/colored_lamp_block_gray" }
}
}

View file

@ -0,0 +1,6 @@
{
"variants": {
"lit=true": { "model": "actuallyadditions:block/colored_lamp_block_on_green" },
"lit=false": { "model": "actuallyadditions:block/colored_lamp_block_green" }
}
}

View file

@ -0,0 +1,6 @@
{
"variants": {
"lit=true": { "model": "actuallyadditions:block/colored_lamp_block_on_light_blue" },
"lit=false": { "model": "actuallyadditions:block/colored_lamp_block_light_blue" }
}
}

View file

@ -0,0 +1,6 @@
{
"variants": {
"lit=true": { "model": "actuallyadditions:block/colored_lamp_block_on_light_gray" },
"lit=false": { "model": "actuallyadditions:block/colored_lamp_block_light_gray" }
}
}

View file

@ -0,0 +1,6 @@
{
"variants": {
"lit=true": { "model": "actuallyadditions:block/colored_lamp_block_on_lime" },
"lit=false": { "model": "actuallyadditions:block/colored_lamp_block_lime" }
}
}

View file

@ -0,0 +1,6 @@
{
"variants": {
"lit=true": { "model": "actuallyadditions:block/colored_lamp_block_on_magenta" },
"lit=false": { "model": "actuallyadditions:block/colored_lamp_block_magenta" }
}
}

View file

@ -0,0 +1,6 @@
{
"variants": {
"lit=true": { "model": "actuallyadditions:block/colored_lamp_block_on_orange" },
"lit=false": { "model": "actuallyadditions:block/colored_lamp_block_orange" }
}
}

View file

@ -0,0 +1,6 @@
{
"variants": {
"lit=true": { "model": "actuallyadditions:block/colored_lamp_block_on_pink" },
"lit=false": { "model": "actuallyadditions:block/colored_lamp_block_pink" }
}
}

View file

@ -0,0 +1,6 @@
{
"variants": {
"lit=true": { "model": "actuallyadditions:block/colored_lamp_block_on_purple" },
"lit=false": { "model": "actuallyadditions:block/colored_lamp_block_purple" }
}
}

View file

@ -0,0 +1,6 @@
{
"variants": {
"lit=true": { "model": "actuallyadditions:block/colored_lamp_block_on_red" },
"lit=false": { "model": "actuallyadditions:block/colored_lamp_block_red" }
}
}

View file

@ -0,0 +1,6 @@
{
"variants": {
"lit=true": { "model": "actuallyadditions:block/colored_lamp_block_on_white" },
"lit=false": { "model": "actuallyadditions:block/colored_lamp_block_white" }
}
}

View file

@ -0,0 +1,6 @@
{
"variants": {
"lit=true": { "model": "actuallyadditions:block/colored_lamp_block_on_yellow" },
"lit=false": { "model": "actuallyadditions:block/colored_lamp_block_yellow" }
}
}

View file

@ -6,5 +6,21 @@
"block.actuallyadditions.black_quartz_pillar": "Black Quartz Pillar", "block.actuallyadditions.black_quartz_pillar": "Black Quartz Pillar",
"block.actuallyadditions.black_quartz_slab": "Black Quartz Slab", "block.actuallyadditions.black_quartz_slab": "Black Quartz Slab",
"block.actuallyadditions.black_quartz_ore": "Black Quartz Ore", "block.actuallyadditions.black_quartz_ore": "Black Quartz Ore",
"block.actuallyadditions.colored_lamp_block": "Colored Lamp" "block.actuallyadditions.white_lamp": "White Lamp",
"block.actuallyadditions.orange_lamp": "Orange Lamp",
"block.actuallyadditions.magenta_lamp": "Magenta Lamp",
"block.actuallyadditions.light_blue_lamp": "Light Blue Lamp",
"block.actuallyadditions.yellow_lamp": "Yellow Lamp",
"block.actuallyadditions.lime_lamp": "Lime Lamp",
"block.actuallyadditions.pink_lamp": "Pink Lamp",
"block.actuallyadditions.gray_lamp": "Gray Lamp",
"block.actuallyadditions.light_gray_lamp": "Light Gray Lamp",
"block.actuallyadditions.cyan_lamp": "Cyan Lamp",
"block.actuallyadditions.purple_lamp": "Purple Lamp",
"block.actuallyadditions.blue_lamp": "Blue Lamp",
"block.actuallyadditions.brown_lamp": "Brown Lamp",
"block.actuallyadditions.green_lamp": "Green Lamp",
"block.actuallyadditions.red_lamp": "Red Lamp",
"block.actuallyadditions.black_lamp": "Black Lamp"
} }

View file

@ -0,0 +1,3 @@
{
"parent": "actuallyadditions:block/colored_lamp_block_black"
}

View file

@ -0,0 +1,3 @@
{
"parent": "actuallyadditions:block/colored_lamp_block_blue"
}

View file

@ -0,0 +1,3 @@
{
"parent": "actuallyadditions:block/colored_lamp_block_brown"
}

View file

@ -0,0 +1,3 @@
{
"parent": "actuallyadditions:block/colored_lamp_block_cyan"
}

View file

@ -0,0 +1,3 @@
{
"parent": "actuallyadditions:block/colored_lamp_block_gray"
}

View file

@ -0,0 +1,3 @@
{
"parent": "actuallyadditions:block/colored_lamp_block_green"
}

View file

@ -0,0 +1,3 @@
{
"parent": "actuallyadditions:block/colored_lamp_block_light_blue"
}

View file

@ -0,0 +1,3 @@
{
"parent": "actuallyadditions:block/colored_lamp_block_light_gray"
}

View file

@ -0,0 +1,3 @@
{
"parent": "actuallyadditions:block/colored_lamp_block_lime"
}

View file

@ -0,0 +1,3 @@
{
"parent": "actuallyadditions:block/colored_lamp_block_magenta"
}

View file

@ -0,0 +1,3 @@
{
"parent": "actuallyadditions:block/colored_lamp_block_orange"
}

View file

@ -0,0 +1,3 @@
{
"parent": "actuallyadditions:block/colored_lamp_block_pink"
}

View file

@ -0,0 +1,3 @@
{
"parent": "actuallyadditions:block/colored_lamp_block_purple"
}

View file

@ -0,0 +1,3 @@
{
"parent": "actuallyadditions:block/colored_lamp_block_red"
}

View file

@ -0,0 +1,3 @@
{
"parent": "actuallyadditions:block/colored_lamp_block_yellow"
}

View file

@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "actuallyadditions:black_lamp"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View file

@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "actuallyadditions:blue_lamp"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View file

@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "actuallyadditions:brown_lamp"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View file

@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "actuallyadditions:cyan_lamp"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View file

@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "actuallyadditions:gray_lamp"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View file

@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "actuallyadditions:green_lamp"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View file

@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "actuallyadditions:light_blue_lamp"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View file

@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "actuallyadditions:light_gray_lamp"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View file

@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "actuallyadditions:lime_lamp"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View file

@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "actuallyadditions:magenta_lamp"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View file

@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "actuallyadditions:orange_lamp"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View file

@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "actuallyadditions:pink_lamp"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View file

@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "actuallyadditions:purple_lamp"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View file

@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "actuallyadditions:red_lamp"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View file

@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "actuallyadditions:white_lamp"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}

View file

@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "actuallyadditions:yellow_lamp"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}