'Dustrial Decor backports (#70)

This commit is contained in:
FourIsTheNumber authored and GitHub committed 2025-11-30 12:28:19 +01:00
1 parent 6385002193
commit 78dbb36fec
42 files changed
+110

No files matched your search

+77
View File
@@ -2050,6 +2050,7 @@ public enum Features {
}
Carving.chisel.addVariation("iron_block", Blocks.iron_block, 0, 0);
iron_block.carverHelper.addVariation("tile.iron.0.desc", 0, "iron/terrain-iron-rusted");
iron_block.carverHelper.addVariation("tile.iron.1.desc", 1, "iron/terrain-iron-largeingot");
iron_block.carverHelper.addVariation("tile.iron.2.desc", 2, "iron/terrain-iron-smallingot");
iron_block.carverHelper.addVariation("tile.iron.3.desc", 3, "iron/terrain-iron-gears");
@@ -3810,6 +3811,12 @@ public enum Features {
7,
"technical/new/concrete/concreteBlocks",
new SubmapManagerCombinedCTM(9, "technical/new/concrete/concreteBlocks", TextureType.R9));
technical4.carverHelper.addVariation("tile.technical4.8.desc", 8, "technical/new/cinderblock", 42);
technical4.carverHelper.addVariation("tile.technical4.9.desc", 9, "technical/new/polishedcinderblock", 43);
technical4.carverHelper.addVariation("tile.technical4.10.desc", 10, "technical/new/cinderbrick", 44);
technical4.carverHelper.addVariation("tile.technical4.11.desc", 11, "technical/new/cardboardbox", 45);
technical4.carverHelper.addVariation("tile.technical4.12.desc", 12, "technical/new/foldedcardboard", 46);
technical4.carverHelper.addVariation("tile.technical4.13.desc", 13, "technical/new/cardboardscrap", 47);
// The animation is malfunctioning. :(
// technical4.carverHelper.addVariation("tile.technical4.7.desc", 7, "technical/new/TapeDrive");
technical4.carverHelper.registerBlock(technical4, "technical4");
@@ -4536,6 +4543,76 @@ public enum Features {
'B',
new ItemStack(Items.slime_ball, 1));
}
},
LANTERN {
@Override
void addBlocks() {
BlockCarvable lantern = (BlockCarvable) new BlockCarvable().setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setLightLevel(1.0F)
.setStepSound(Block.soundTypeGlass);
lantern.carverHelper.addVariation("tile.lantern.0.desc", 0, "lantern/lantern");
lantern.carverHelper.addVariation("tile.lantern.1.desc", 1, "lantern/glowlantern");
lantern.carverHelper.addVariation("tile.lantern.2.desc", 2, "lantern/redlantern");
lantern.carverHelper.addVariation("tile.lantern.3.desc", 3, "lantern/soullantern");
lantern.carverHelper.addVariation("tile.lantern.4.desc", 4, "lantern/cursedlantern");
lantern.carverHelper.addVariation("tile.lantern.5.desc", 5, "lantern/endlantern");
lantern.carverHelper.registerAll(lantern, "lantern");
}
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.lantern, 1, 0),
"gig",
"iGi",
"gig",
'i',
new ItemStack(Items.iron_ingot, 1, 0),
'G',
new ItemStack(Blocks.glowstone, 1),
'g',
new ItemStack(Items.glowstone_dust, 1));
}
},
SHEETMETAL {
@Override
void addBlocks() {
BlockCarvable sheetmetal = (BlockCarvable) new BlockCarvable()
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setStepSound(Block.soundTypeMetal);
sheetmetal.carverHelper.addVariation("tile.sheetmetal.0.desc", 0, "sheetmetal/walling");
sheetmetal.carverHelper.addVariation("tile.sheetmetal.1.desc", 1, "sheetmetal/siding");
sheetmetal.carverHelper.addVariation("tile.sheetmetal.2.desc", 2, "sheetmetal/paneling");
sheetmetal.carverHelper.addVariation("tile.sheetmetal.3.desc", 3, "sheetmetal/plating");
sheetmetal.carverHelper.addVariation("tile.sheetmetal.4.desc", 4, "sheetmetal/treading");
sheetmetal.carverHelper.addVariation("tile.sheetmetal.5.desc", 5, "sheetmetal/rustywalling");
sheetmetal.carverHelper.addVariation("tile.sheetmetal.6.desc", 6, "sheetmetal/rustysiding");
sheetmetal.carverHelper.addVariation("tile.sheetmetal.7.desc", 7, "sheetmetal/rustypaneling");
sheetmetal.carverHelper.addVariation("tile.sheetmetal.8.desc", 8, "sheetmetal/rustyplating");
sheetmetal.carverHelper.addVariation("tile.sheetmetal.9.desc", 9, "sheetmetal/rustytreading");
sheetmetal.carverHelper.registerAll(sheetmetal, "sheetmetal");
}
@Override
void addRecipes() {
GameRegistry.addRecipe(
new ItemStack(ChiselBlocks.sheetmetal, 32, 0),
"iii",
" ",
"iii",
'i',
new ItemStack(Items.iron_ingot, 1, 0));
}
};
private static final String[] dyeOres = { "dyeBlack", "dyeRed", "dyeGreen", "dyeBrown", "dyeBlue", "dyePurple",
@@ -173,5 +173,9 @@ public final class ChiselBlocks {
// 1.19, skipped 10 versions but thats fine
public static final BlockCarvable froglight = null;
// Backports from Dustrial Decor. Original artists are WDSPC and Evo_94!
public static final BlockCarvable lantern = null;
public static final BlockCarvable sheetmetal = null;
private ChiselBlocks() {}
}