added block for salpeter and sulfor

This commit is contained in:
Jottyfan
2026-01-01 14:23:39 +01:00
parent ec08cab62e
commit 0c43c116ee
16 changed files with 136 additions and 12 deletions

View File

@@ -52,18 +52,35 @@ public class QuicklyBlocks {
properties -> new Monsterhoarder(properties)); properties -> new Monsterhoarder(properties));
public static final Block ITEMHOARDER = registerBlock("itemhoarder", properties -> new Itemhoarder(properties)); public static final Block ITEMHOARDER = registerBlock("itemhoarder", properties -> new Itemhoarder(properties));
public static final Block DRILL = registerBlock("drill", properties -> new BlockDrill(properties)); public static final Block DRILL = registerBlock("drill", properties -> new BlockDrill(properties));
public static final Block STACKER = registerBlock("blockstacker", properties -> new BlockStacker(properties.strength(2.5f))); public static final Block STACKER = registerBlock("blockstacker",
public static final Block DIRTSALPETER = registerBlock("dirtsalpeter", properties -> new BlockOre(properties.strength(2.2f), null, new ItemStack(QuicklyItems.SALPETER, 1), new ItemStack(Items.DIRT))); properties -> new BlockStacker(properties.strength(2.5f)));
public static final Block SANDSALPETER = registerBlock("sandsalpeter", properties -> new BlockOre(properties.strength(1.5f), null, new ItemStack(QuicklyItems.SALPETER, 2), new ItemStack(Items.SAND))); public static final Block DIRTSALPETER = registerBlock("dirtsalpeter",
public static final Block OREDEEPSLATESULFOR = registerBlock("oredeepslatesulfor", properties -> new BlockOre(properties.strength(2.0f), null, new ItemStack(QuicklyItems.SULFOR, 4))); properties -> new BlockOre(properties.strength(2.2f), null, new ItemStack(QuicklyItems.SALPETER, 1),
public static final Block ORENETHERSULFOR = registerBlock("orenethersulfor", properties -> new BlockOre(properties.strength(2.0f), null, new ItemStack(QuicklyItems.SULFOR))); new ItemStack(Items.DIRT)));
public static final Block ORESALPETER = registerBlock("oresalpeter", properties -> new BlockOre(properties.strength(1.9f), null, new ItemStack(QuicklyItems.SALPETER, 2))); public static final Block SANDSALPETER = registerBlock("sandsalpeter",
public static final Block ORESANDSALPETER = registerBlock("oresandsalpeter", properties -> new BlockOre(properties.strength(1.5f), null, new ItemStack(QuicklyItems.SALPETER, 7))); properties -> new BlockOre(properties.strength(1.5f), null, new ItemStack(QuicklyItems.SALPETER, 2),
public static final Block ORESULFOR = registerBlock("oresulfor", properties -> new BlockOre(properties.strength(1.9f), null, new ItemStack(QuicklyItems.SULFOR))); new ItemStack(Items.SAND)));
public static final Block ORESPEEDPOWDER = registerBlock("orespeedpowder", properties -> new BlockOre(properties.strength(2.0f), null, new ItemStack(QuicklyItems.SPEEDPOWDER))); public static final Block OREDEEPSLATESULFOR = registerBlock("oredeepslatesulfor",
public static final Block OREDEEPSLATESPEEDPOWDER = registerBlock("oredeepslatespeedpowder", properties -> new BlockOre(properties.strength(2.1f), null, new ItemStack(QuicklyItems.SPEEDPOWDER, 2))); properties -> new BlockOre(properties.strength(2.0f), null, new ItemStack(QuicklyItems.SULFOR, 4)));
public static final Block ORENETHERSULFOR = registerBlock("orenethersulfor",
properties -> new BlockOre(properties.strength(2.0f), null, new ItemStack(QuicklyItems.SULFOR)));
public static final Block ORESALPETER = registerBlock("oresalpeter",
properties -> new BlockOre(properties.strength(1.9f), null, new ItemStack(QuicklyItems.SALPETER, 2)));
public static final Block ORESANDSALPETER = registerBlock("oresandsalpeter",
properties -> new BlockOre(properties.strength(1.5f), null, new ItemStack(QuicklyItems.SALPETER, 7)));
public static final Block ORESULFOR = registerBlock("oresulfor",
properties -> new BlockOre(properties.strength(1.9f), null, new ItemStack(QuicklyItems.SULFOR)));
public static final Block ORESPEEDPOWDER = registerBlock("orespeedpowder",
properties -> new BlockOre(properties.strength(2.0f), null, new ItemStack(QuicklyItems.SPEEDPOWDER)));
public static final Block OREDEEPSLATESPEEDPOWDER = registerBlock("oredeepslatespeedpowder",
properties -> new BlockOre(properties.strength(2.1f), null, new ItemStack(QuicklyItems.SPEEDPOWDER, 2)));
public static final Block SALPETERBLOCK = registerBlock("blocksalpeter",
properties -> new BlockOre(properties.strength(1.5f), null, new ItemStack(QuicklyItems.SALPETER, 9)));
public static final Block SULFORBLOCK = registerBlock("blocksulfor",
properties -> new BlockOre(properties.strength(1.5f), null, new ItemStack(QuicklyItems.SULFOR, 9)));
// TODO: merge lavahoarder and emptylavahoarder into one block using a BooleanProperty for the lava fill state // TODO: merge lavahoarder and emptylavahoarder into one block using a
// BooleanProperty for the lava fill state
private static final Block registerBlock(String name, Properties properties) { private static final Block registerBlock(String name, Properties properties) {
return QuicklyBlocks.registerBlock(name, properties, p -> new Block(p)); return QuicklyBlocks.registerBlock(name, properties, p -> new Block(p));
@@ -105,6 +122,8 @@ public class QuicklyBlocks {
block.accept(ITEMHOARDER); block.accept(ITEMHOARDER);
block.accept(DRILL); block.accept(DRILL);
block.accept(STACKER); block.accept(STACKER);
block.accept(SALPETERBLOCK);
block.accept(SULFORBLOCK);
}); });
} }
} }

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "quickly:block/blocksulfor"
}
}
}

View File

@@ -0,0 +1,6 @@
{
"model": {
"type": "minecraft:model",
"model": "quickly:block/blocksalpeter"
}
}

View File

@@ -0,0 +1,6 @@
{
"model": {
"type": "minecraft:model",
"model": "quickly:block/blocksulfor"
}
}

View File

@@ -5,8 +5,10 @@
"item.quickly.blockcanolaplant": "Rapspflanze", "item.quickly.blockcanolaplant": "Rapspflanze",
"item.quickly.blockcottonplant": "Baumwollpflanze", "item.quickly.blockcottonplant": "Baumwollpflanze",
"item.quickly.blockquickiepowder": "Eilpulverblock", "item.quickly.blockquickiepowder": "Eilpulverblock",
"item.quickly.blocksalpeter": "Salpeterblock",
"item.quickly.blockspeedpowder": "Fluchtpulverblock", "item.quickly.blockspeedpowder": "Fluchtpulverblock",
"item.quickly.blockstacker": "Stapler", "item.quickly.blockstacker": "Stapler",
"item.quickly.blocksulfor": "Schwefelblock",
"item.quickly.blockturquoise": "Türkisblock", "item.quickly.blockturquoise": "Türkisblock",
"item.quickly.canola": "Raps", "item.quickly.canola": "Raps",
"item.quickly.canolabottle": "Rapsöl", "item.quickly.canolabottle": "Rapsöl",

View File

@@ -5,8 +5,10 @@
"item.quickly.blockcanolaplant": "canola plant", "item.quickly.blockcanolaplant": "canola plant",
"item.quickly.blockcottonplant": "cotton plant", "item.quickly.blockcottonplant": "cotton plant",
"item.quickly.blockquickiepowder": "quickie powder block", "item.quickly.blockquickiepowder": "quickie powder block",
"item.quickly.blocksalpeter": "block of salpeter",
"item.quickly.blockspeedpowder": "speed powder block", "item.quickly.blockspeedpowder": "speed powder block",
"item.quickly.blockstacker": "stacker", "item.quickly.blockstacker": "stacker",
"item.quickly.blocksulfor": "block of sulfor",
"item.quickly.blockturquoise": "block of turquoise", "item.quickly.blockturquoise": "block of turquoise",
"item.quickly.canola": "canola", "item.quickly.canola": "canola",
"item.quickly.canolabottle": "canola oil", "item.quickly.canolabottle": "canola oil",

View File

@@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "quickly:block/blocksalpeter"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "quickly:block/blocksulfor"
}
}

View File

@@ -0,0 +1,10 @@
{
"parent": "quickly:block/blocksalpeter",
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375 ]
}
}
}

View File

@@ -0,0 +1,10 @@
{
"parent": "quickly:block/blocksulfor",
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375 ]
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@@ -0,0 +1,15 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"sss",
"sss",
"sss"
],
"key": {
"s": "quickly:salpeter"
},
"result": {
"id": "quickly:blocksalpeter",
"count": 1
}
}

View File

@@ -0,0 +1,15 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"sss",
"sss",
"sss"
],
"key": {
"s": "quickly:sulfor"
},
"result": {
"id": "quickly:blocksulfor",
"count": 1
}
}

View File

@@ -0,0 +1,10 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
"quickly:blocksalpeter"
],
"result": {
"id": "quickly:salpeter",
"count": 9
}
}

View File

@@ -0,0 +1,10 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
"quickly:blocksulfor"
],
"result": {
"id": "quickly:sulfor",
"count": 9
}
}