added speedpowder and quickiepowder and its basic recipes

This commit is contained in:
Jottyfan
2025-12-27 23:59:17 +01:00
parent bc4eb4220d
commit 5020d30a30
37 changed files with 264 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
package de.jottyfan.minecraft.block;
import java.util.Arrays;
import java.util.List;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.storage.loot.LootParams.Builder;
/**
*
* @author jotty
*
*/
public class BlockDrops extends Block {
private ItemStack dropItems;
public BlockDrops(Properties properties, ItemStack dropItems) {
super(properties);
this.dropItems = dropItems;
}
@Override
protected List<ItemStack> getDrops(BlockState state, Builder builder) {
ItemStack droppable = dropItems == null ? new ItemStack(this.asItem()) : dropItems;
return Arrays.asList(new ItemStack[] { droppable });
}
}

View File

@@ -43,6 +43,10 @@ public class QuicklyBlocks {
Properties.of().strength(2.5f).lightLevel(state -> 15), properties -> new BlockLavahoarder(properties));
public static final Block EMPTYLAVAHOARDER = registerBlock("emptylavahoarder", Properties.of().strength(2.5f),
properties -> new BlockEmptyLavahoarder(properties));
public static final Block QUICKIEPOWDER = registerBlock("blockquickiepowder",
properties -> new BlockDrops(properties, new ItemStack(QuicklyItems.QUICKIEPOWDER, 9)));
public static final Block SPEEDPOWDER = registerBlock("blockspeedpowder",
properties -> new BlockDrops(properties, new ItemStack(QuicklyItems.SPEEDPOWDER, 9)));
private static final Block registerBlock(String name, Properties properties) {
return QuicklyBlocks.registerBlock(name, properties, p -> new Block(p));
@@ -69,6 +73,8 @@ public class QuicklyBlocks {
block.accept(ORETURQUOISE);
block.accept(OREDEEPSLATETURQUOISE);
block.accept(EMPTYLAVAHOARDER);
block.accept(SPEEDPOWDER);
block.accept(QUICKIEPOWDER);
});
}
}

View File

@@ -39,6 +39,10 @@ public class QuicklyItems {
public static final Item COPPERPOWDER = registerItem("copperpowder");
public static final Item COPPERSTUB = registerItem("copperstub");
public static final Item COPPERSTICK = registerItem("copperstick");
public static final Item SPEEDPOWDER = registerItem("speedpowder");
public static final Item QUICKIEPOWDER = registerItem("quickiepowder");
public static final Item SPEEDINGOT = registerItem("speedingot");
public static final Item QUICKIEINGOT = registerItem("quickieingot");
public static final Item ARMOR_TURQUOISE_BOOTS = registerItem("turquoise_boots", ArmorType.BOOTS);
public static final Item ARMOR_TURQUOISE_HELMET = registerItem("turquoise_helmet", ArmorType.HELMET);
@@ -80,7 +84,11 @@ public class QuicklyItems {
item.accept(CANOLABOTTLE);
item.accept(CANOLABOTTLESTACK);
item.accept(RAWTURQUOISE);
item.accept(SPEEDPOWDER);
item.accept(QUICKIEPOWDER);
item.accept(TURQUOISEINGOT);
item.accept(SPEEDINGOT);
item.accept(QUICKIEINGOT);
item.accept(COPPERPOWDER);
item.accept(OXIDIZEDCOPPERPOWDER);
item.accept(COPPERSTRING);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,6 +1,8 @@
{
"item.quickly.blockcanolaplant": "Rapspflanze",
"item.quickly.blockcottonplant": "Baumwollpflanze",
"item.quickly.blockquickiepowder": "Eilpulverblock",
"item.quickly.blockspeedpowder": "Fluchtpulverblock",
"item.quickly.blockturquoise": "Türkisblock",
"item.quickly.canola": "Raps",
"item.quickly.canolabottle": "Rapsöl",
@@ -18,8 +20,12 @@
"item.quickly.oredeepslateturquoise": "Türkistiefenerz",
"item.quickly.oreturquoise": "Türkiserz",
"item.quickly.oxidizedcopperpowder": "oxidiertes Kupferpulver",
"item.quickly.quickieingot": "Eilpulverbarren",
"item.quickly.quickiepowder": "Eilpulver",
"item.quickly.rawturquoise": "rohes Türkis",
"item.quickly.rotten_flesh_stripes": "geschnittenes Gammelfleisch",
"item.quickly.speedingot": "Fluchtpulverbarren",
"item.quickly.speedpowder": "Fluchtpulver",
"item.quickly.stub": "Stummel",
"item.quickly.turquoise_boots": "Türkisschuhe",
"item.quickly.turquoise_chestplate": "Türkisbrustpanzer",

View File

@@ -1,6 +1,8 @@
{
"item.quickly.blockcanolaplant": "canola plant",
"item.quickly.blockcottonplant": "cotton plant",
"item.quickly.blockquickiepowder": "quickie powder block",
"item.quickly.blockspeedpowder": "speed powder block",
"item.quickly.blockturquoise": "block of turquoise",
"item.quickly.canola": "canola",
"item.quickly.canolabottle": "canola oil",
@@ -18,8 +20,12 @@
"item.quickly.oredeepslateturquoise": "turquoise deepslate ore",
"item.quickly.oreturquoise": "turquoise ore",
"item.quickly.oxidizedcopperpowder": "oxidized copper powder",
"item.quickly.quickieingot": "quickie powder ingot",
"item.quickly.quickiepowder": "quickie powder",
"item.quickly.rawturquoise": "raw turquoise",
"item.quickly.rotten_flesh_stripes": "rotton flesh stripes",
"item.quickly.speedingot": "speed powder ingot",
"item.quickly.speedpowder": "speed powder",
"item.quickly.stub": "stub",
"item.quickly.turquoise_boots": "turquoise boots",
"item.quickly.turquoise_chestplate": "turquoise chestplate",

View File

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

View File

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

View File

@@ -0,0 +1,10 @@
{
"parent": "quickly:block/blockquickiepowder",
"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/blockspeedpowder",
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375 ]
}
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "item/coal",
"textures": {
"layer0": "quickly:item/quickieingot"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "item/coal",
"textures": {
"layer0": "quickly:item/quickiepowder"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "item/coal",
"textures": {
"layer0": "quickly:item/speedingot"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "item/coal",
"textures": {
"layer0": "quickly:item/speedpowder"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 779 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 799 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 439 B

View File

@@ -0,0 +1,7 @@
{
"type": "minecraft:blasting",
"ingredient": "quickly:quickiepowder",
"result": {"id":"quickly:quickieingot"},
"experience": 0.1,
"cookingtime": 200
}

View File

@@ -0,0 +1,7 @@
{
"type": "minecraft:blasting",
"ingredient": "quickly:speedpowder",
"result": {"id":"quickly:speedingot"},
"experience": 0.1,
"cookingtime": 200
}

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,11 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
"quickly:speedpowder",
"quickly:oxidizedcopperpowder"
],
"result": {
"id": "quickly:quickiepowder",
"count": 1
}
}

View File

@@ -0,0 +1,11 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
"minecraft:gunpowder",
"minecraft:redstone"
],
"result": {
"id": "quickly:speedpowder",
"count": 1
}
}

View File

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

View File

@@ -0,0 +1,8 @@
{
"type": "minecraft:stonecutting",
"ingredient": "quickly:quickieingot",
"result": {
"id": "quickly:quickiepowder"
},
"count": 1
}

View File

@@ -0,0 +1,8 @@
{
"type": "minecraft:stonecutting",
"ingredient": "quickly:speedingot",
"result": {
"id": "quickly:speedpowder"
},
"count": 1
}