Skip to content

Commit

Permalink
Add hint for the lamps, and tweak a recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
yrsegal committed Aug 14, 2023
1 parent a1a910b commit 60dce00
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
package vazkii.quark.content.building.module;

import net.minecraft.resources.ResourceLocation;
import net.minecraft.tags.BlockTags;
import net.minecraft.tags.TagKey;
import net.minecraft.world.level.block.Block;
import vazkii.quark.base.Quark;
import vazkii.quark.base.module.LoadModule;
import vazkii.quark.base.module.ModuleCategory;
import vazkii.quark.base.module.ModuleLoader;
import vazkii.quark.base.module.QuarkModule;
import vazkii.quark.base.module.config.Config;
import vazkii.quark.base.module.hint.Hint;
import vazkii.quark.base.util.CorundumColor;
import vazkii.quark.content.building.block.RainbowLampBlock;
import vazkii.quark.content.world.module.CorundumModule;

@LoadModule(category = ModuleCategory.BUILDING)
public class RainbowLampsModule extends QuarkModule {
Expand All @@ -17,8 +23,17 @@ public class RainbowLampsModule extends QuarkModule {
@Config(description = "Whether Rainbow Lamps should be made from and themed on Corundum if that module is enabled.", flag = "rainbow_lamp_corundum")
public static boolean useCorundum = true;

@Hint("crystal_lamp")
public static TagKey<Block> lampTag;

public static boolean isCorundum() {
return ModuleLoader.INSTANCE.isModuleEnabled(RainbowLampsModule.class) && useCorundum;
return CorundumModule.staticEnabled && useCorundum;
}

@Override
public void setup() {
super.setup();
lampTag = BlockTags.create(new ResourceLocation(Quark.MOD_ID, "crystal_lamp"));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": "minecraft:crafting_shaped",
"key": {
"D": {
"item": "minecraft:cyan_dye"
"item": "minecraft:light_blue_dye"
},
"R": {
"item": "minecraft:redstone"
Expand Down

0 comments on commit 60dce00

Please sign in to comment.