added speedpowder and quickiepowder and its basic recipes
This commit is contained in:
30
src/main/java/de/jottyfan/minecraft/block/BlockDrops.java
Normal file
30
src/main/java/de/jottyfan/minecraft/block/BlockDrops.java
Normal 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 });
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -43,6 +43,10 @@ public class QuicklyBlocks {
|
|||||||
Properties.of().strength(2.5f).lightLevel(state -> 15), properties -> new BlockLavahoarder(properties));
|
Properties.of().strength(2.5f).lightLevel(state -> 15), properties -> new BlockLavahoarder(properties));
|
||||||
public static final Block EMPTYLAVAHOARDER = registerBlock("emptylavahoarder", Properties.of().strength(2.5f),
|
public static final Block EMPTYLAVAHOARDER = registerBlock("emptylavahoarder", Properties.of().strength(2.5f),
|
||||||
properties -> new BlockEmptyLavahoarder(properties));
|
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) {
|
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));
|
||||||
@@ -69,6 +73,8 @@ public class QuicklyBlocks {
|
|||||||
block.accept(ORETURQUOISE);
|
block.accept(ORETURQUOISE);
|
||||||
block.accept(OREDEEPSLATETURQUOISE);
|
block.accept(OREDEEPSLATETURQUOISE);
|
||||||
block.accept(EMPTYLAVAHOARDER);
|
block.accept(EMPTYLAVAHOARDER);
|
||||||
|
block.accept(SPEEDPOWDER);
|
||||||
|
block.accept(QUICKIEPOWDER);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,10 @@ public class QuicklyItems {
|
|||||||
public static final Item COPPERPOWDER = registerItem("copperpowder");
|
public static final Item COPPERPOWDER = registerItem("copperpowder");
|
||||||
public static final Item COPPERSTUB = registerItem("copperstub");
|
public static final Item COPPERSTUB = registerItem("copperstub");
|
||||||
public static final Item COPPERSTICK = registerItem("copperstick");
|
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_BOOTS = registerItem("turquoise_boots", ArmorType.BOOTS);
|
||||||
public static final Item ARMOR_TURQUOISE_HELMET = registerItem("turquoise_helmet", ArmorType.HELMET);
|
public static final Item ARMOR_TURQUOISE_HELMET = registerItem("turquoise_helmet", ArmorType.HELMET);
|
||||||
@@ -80,7 +84,11 @@ public class QuicklyItems {
|
|||||||
item.accept(CANOLABOTTLE);
|
item.accept(CANOLABOTTLE);
|
||||||
item.accept(CANOLABOTTLESTACK);
|
item.accept(CANOLABOTTLESTACK);
|
||||||
item.accept(RAWTURQUOISE);
|
item.accept(RAWTURQUOISE);
|
||||||
|
item.accept(SPEEDPOWDER);
|
||||||
|
item.accept(QUICKIEPOWDER);
|
||||||
item.accept(TURQUOISEINGOT);
|
item.accept(TURQUOISEINGOT);
|
||||||
|
item.accept(SPEEDINGOT);
|
||||||
|
item.accept(QUICKIEINGOT);
|
||||||
item.accept(COPPERPOWDER);
|
item.accept(COPPERPOWDER);
|
||||||
item.accept(OXIDIZEDCOPPERPOWDER);
|
item.accept(OXIDIZEDCOPPERPOWDER);
|
||||||
item.accept(COPPERSTRING);
|
item.accept(COPPERSTRING);
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"": {
|
||||||
|
"model": "quickly:block/blockquickiepowder"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"": {
|
||||||
|
"model": "quickly:block/blockspeedpowder"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"model": {
|
||||||
|
"type": "minecraft:model",
|
||||||
|
"model": "quickly:item/blockquickiepowder"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"model": {
|
||||||
|
"type": "minecraft:model",
|
||||||
|
"model": "quickly:block/blockspeedpowder"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"model": {
|
||||||
|
"type": "minecraft:model",
|
||||||
|
"model": "quickly:item/quickieingot"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"model": {
|
||||||
|
"type": "minecraft:model",
|
||||||
|
"model": "quickly:item/quickiepowder"
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/main/resources/assets/quickly/items/speedingot.json
Normal file
6
src/main/resources/assets/quickly/items/speedingot.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"model": {
|
||||||
|
"type": "minecraft:model",
|
||||||
|
"model": "quickly:item/speedingot"
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/main/resources/assets/quickly/items/speedpowder.json
Normal file
6
src/main/resources/assets/quickly/items/speedpowder.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"model": {
|
||||||
|
"type": "minecraft:model",
|
||||||
|
"model": "quickly:item/speedpowder"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
{
|
{
|
||||||
"item.quickly.blockcanolaplant": "Rapspflanze",
|
"item.quickly.blockcanolaplant": "Rapspflanze",
|
||||||
"item.quickly.blockcottonplant": "Baumwollpflanze",
|
"item.quickly.blockcottonplant": "Baumwollpflanze",
|
||||||
|
"item.quickly.blockquickiepowder": "Eilpulverblock",
|
||||||
|
"item.quickly.blockspeedpowder": "Fluchtpulverblock",
|
||||||
"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",
|
||||||
@@ -18,8 +20,12 @@
|
|||||||
"item.quickly.oredeepslateturquoise": "Türkistiefenerz",
|
"item.quickly.oredeepslateturquoise": "Türkistiefenerz",
|
||||||
"item.quickly.oreturquoise": "Türkiserz",
|
"item.quickly.oreturquoise": "Türkiserz",
|
||||||
"item.quickly.oxidizedcopperpowder": "oxidiertes Kupferpulver",
|
"item.quickly.oxidizedcopperpowder": "oxidiertes Kupferpulver",
|
||||||
|
"item.quickly.quickieingot": "Eilpulverbarren",
|
||||||
|
"item.quickly.quickiepowder": "Eilpulver",
|
||||||
"item.quickly.rawturquoise": "rohes Türkis",
|
"item.quickly.rawturquoise": "rohes Türkis",
|
||||||
"item.quickly.rotten_flesh_stripes": "geschnittenes Gammelfleisch",
|
"item.quickly.rotten_flesh_stripes": "geschnittenes Gammelfleisch",
|
||||||
|
"item.quickly.speedingot": "Fluchtpulverbarren",
|
||||||
|
"item.quickly.speedpowder": "Fluchtpulver",
|
||||||
"item.quickly.stub": "Stummel",
|
"item.quickly.stub": "Stummel",
|
||||||
"item.quickly.turquoise_boots": "Türkisschuhe",
|
"item.quickly.turquoise_boots": "Türkisschuhe",
|
||||||
"item.quickly.turquoise_chestplate": "Türkisbrustpanzer",
|
"item.quickly.turquoise_chestplate": "Türkisbrustpanzer",
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{
|
{
|
||||||
"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.blockspeedpowder": "speed powder block",
|
||||||
"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",
|
||||||
@@ -18,8 +20,12 @@
|
|||||||
"item.quickly.oredeepslateturquoise": "turquoise deepslate ore",
|
"item.quickly.oredeepslateturquoise": "turquoise deepslate ore",
|
||||||
"item.quickly.oreturquoise": "turquoise ore",
|
"item.quickly.oreturquoise": "turquoise ore",
|
||||||
"item.quickly.oxidizedcopperpowder": "oxidized copper powder",
|
"item.quickly.oxidizedcopperpowder": "oxidized copper powder",
|
||||||
|
"item.quickly.quickieingot": "quickie powder ingot",
|
||||||
|
"item.quickly.quickiepowder": "quickie powder",
|
||||||
"item.quickly.rawturquoise": "raw turquoise",
|
"item.quickly.rawturquoise": "raw turquoise",
|
||||||
"item.quickly.rotten_flesh_stripes": "rotton flesh stripes",
|
"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.stub": "stub",
|
||||||
"item.quickly.turquoise_boots": "turquoise boots",
|
"item.quickly.turquoise_boots": "turquoise boots",
|
||||||
"item.quickly.turquoise_chestplate": "turquoise chestplate",
|
"item.quickly.turquoise_chestplate": "turquoise chestplate",
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "quickly:block/blockquickiepowder"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "quickly:block/blockspeedpowder"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "item/coal",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "quickly:item/quickieingot"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "item/coal",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "quickly:item/quickiepowder"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "item/coal",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "quickly:item/speedingot"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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 |
BIN
src/main/resources/assets/quickly/textures/item/quickieingot.png
Normal file
BIN
src/main/resources/assets/quickly/textures/item/quickieingot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 779 B |
Binary file not shown.
|
After Width: | Height: | Size: 4.5 KiB |
BIN
src/main/resources/assets/quickly/textures/item/speedingot.png
Normal file
BIN
src/main/resources/assets/quickly/textures/item/speedingot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 799 B |
BIN
src/main/resources/assets/quickly/textures/item/speedpowder.png
Normal file
BIN
src/main/resources/assets/quickly/textures/item/speedpowder.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 439 B |
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:blasting",
|
||||||
|
"ingredient": "quickly:quickiepowder",
|
||||||
|
"result": {"id":"quickly:quickieingot"},
|
||||||
|
"experience": 0.1,
|
||||||
|
"cookingtime": 200
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:blasting",
|
||||||
|
"ingredient": "quickly:speedpowder",
|
||||||
|
"result": {"id":"quickly:speedingot"},
|
||||||
|
"experience": 0.1,
|
||||||
|
"cookingtime": 200
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shaped",
|
||||||
|
"pattern": [
|
||||||
|
"sss",
|
||||||
|
"sss",
|
||||||
|
"sss"
|
||||||
|
],
|
||||||
|
"key": {
|
||||||
|
"s": "quickly:quickiepowder"
|
||||||
|
},
|
||||||
|
"result": {
|
||||||
|
"id": "quickly:blockquickiepowder",
|
||||||
|
"count": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shaped",
|
||||||
|
"pattern": [
|
||||||
|
"sss",
|
||||||
|
"sss",
|
||||||
|
"sss"
|
||||||
|
],
|
||||||
|
"key": {
|
||||||
|
"s": "quickly:speedpowder"
|
||||||
|
},
|
||||||
|
"result": {
|
||||||
|
"id": "quickly:blockspeedpowder",
|
||||||
|
"count": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shapeless",
|
||||||
|
"ingredients": [
|
||||||
|
"quickly:blockquickiepowder"
|
||||||
|
],
|
||||||
|
"result": {
|
||||||
|
"id": "quickly:quickiepowder",
|
||||||
|
"count": 9
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shapeless",
|
||||||
|
"ingredients": [
|
||||||
|
"quickly:speedpowder",
|
||||||
|
"quickly:oxidizedcopperpowder"
|
||||||
|
],
|
||||||
|
"result": {
|
||||||
|
"id": "quickly:quickiepowder",
|
||||||
|
"count": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shapeless",
|
||||||
|
"ingredients": [
|
||||||
|
"minecraft:gunpowder",
|
||||||
|
"minecraft:redstone"
|
||||||
|
],
|
||||||
|
"result": {
|
||||||
|
"id": "quickly:speedpowder",
|
||||||
|
"count": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shapeless",
|
||||||
|
"ingredients": [
|
||||||
|
"quickly:blockspeedpowder"
|
||||||
|
],
|
||||||
|
"result": {
|
||||||
|
"id": "quickly:speedpowder",
|
||||||
|
"count": 9
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:stonecutting",
|
||||||
|
"ingredient": "quickly:quickieingot",
|
||||||
|
"result": {
|
||||||
|
"id": "quickly:quickiepowder"
|
||||||
|
},
|
||||||
|
"count": 1
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:stonecutting",
|
||||||
|
"ingredient": "quickly:speedingot",
|
||||||
|
"result": {
|
||||||
|
"id": "quickly:speedpowder"
|
||||||
|
},
|
||||||
|
"count": 1
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user