|
1 | 1 | package nourl.mythicmetals.blocks;
|
2 | 2 |
|
3 |
| -import java.util.HashMap; |
4 |
| -import java.util.Map; |
| 3 | +import java.util.*; |
5 | 4 | import net.minecraft.block.*;
|
6 | 5 | import net.minecraft.item.*;
|
| 6 | +import net.minecraft.item.tooltip.TooltipType; |
7 | 7 | import net.minecraft.registry.tag.BlockTags;
|
8 | 8 | import net.minecraft.sound.BlockSoundGroup;
|
9 | 9 | import net.minecraft.text.Text;
|
@@ -94,9 +94,9 @@ public class MythicBlocks {
|
94 | 94 | .strength(3.0F)
|
95 | 95 | .createStorageBlock(IRON_MINING_LEVEL)
|
96 | 96 | .sounds(RegisterSounds.MORKITE_ORE)
|
97 |
| - .createOre(IRON_MINING_LEVEL, UniformIntProvider.create(0, 2)) |
| 97 | + .createOre(IRON_MINING_LEVEL, UniformIntProvider.create(1, 2)) |
98 | 98 | .sounds(RegisterSounds.DEEPSLATE_MORKITE_ORE)
|
99 |
| - .createOreVariant("deepslate", IRON_MINING_LEVEL, UniformIntProvider.create(0, 2)) |
| 99 | + .createOreVariant("deepslate", IRON_MINING_LEVEL, UniformIntProvider.create(1, 3)) |
100 | 100 | .finish();
|
101 | 101 |
|
102 | 102 | public static final BlockSet MIDAS_GOLD = BlockSet.Builder.begin("midas_gold", false)
|
@@ -152,6 +152,14 @@ public boolean hasGlint(ItemStack stack) {
|
152 | 152 | .sounds(BlockSoundGroup.METAL)
|
153 | 153 | );
|
154 | 154 |
|
| 155 | + public static final Item PALLADIUM_RAIL_ITEM = new BlockItem(PALLADIUM_RAIL, new Item.Settings().group(MythicMetals.TABBED_GROUP).tab(1).fireproof()) { |
| 156 | + @Override |
| 157 | + public void appendTooltip(ItemStack stack, TooltipContext context, List<Text> tooltip, TooltipType type) { |
| 158 | + super.appendTooltip(stack, context, tooltip, type); |
| 159 | + tooltip.add(Text.translatable("tooltip.palladium_rail.info")); |
| 160 | + } |
| 161 | + }; |
| 162 | + |
155 | 163 | public static final BlockSet PLATINUM = BlockSet.Builder.begin("platinum", false)
|
156 | 164 | .createDefaultSet(3.5F, IRON_MINING_LEVEL, IRON_MINING_LEVEL).finish();
|
157 | 165 |
|
@@ -224,7 +232,9 @@ public static void init() {
|
224 | 232 | // Manually registering these in order to get the glint
|
225 | 233 | RegistryHelper.blockOnly("enchanted_midas_gold_block", ENCHANTED_MIDAS_GOLD_BLOCK);
|
226 | 234 | RegistryHelper.item("enchanted_midas_gold_block", ENCHANTED_MIDAS_GOLD_BLOCK_ITEM);
|
227 |
| - RegistryHelper.blockWithTooltip("palladium_rail", PALLADIUM_RAIL, Text.translatable("tooltip.palladium_rail.info")); |
| 235 | + // Manually registering to get a tooltip and fireproofing |
| 236 | + RegistryHelper.blockOnly("palladium_rail", PALLADIUM_RAIL); |
| 237 | + RegistryHelper.item("palladium_rail", PALLADIUM_RAIL_ITEM); |
228 | 238 | RegistryHelper.block("quadrillum_nuke_core", QUADRILLUM_NUKE_CORE);
|
229 | 239 | RegistryHelper.block("sponge_nuke_core", SPONGE_NUKE_CORE);
|
230 | 240 | }
|
|
0 commit comments