added block speedpowder
This commit is contained in:
parent
a1a521adbb
commit
a687e935b2
@ -9,7 +9,7 @@
|
||||
loader_version=0.14.22
|
||||
|
||||
# Mod Properties
|
||||
mod_version = 1.20.2.0
|
||||
mod_version = 1.20.2.1
|
||||
maven_group = de.jottyfan.minecraft
|
||||
archives_base_name = quickiefabric
|
||||
|
||||
|
@ -0,0 +1,34 @@
|
||||
package de.jottyfan.minecraft.quickiefabric.blocks;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import de.jottyfan.minecraft.quickiefabric.items.QuickieItems;
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.GravelBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.loot.context.LootContextParameterSet.Builder;
|
||||
import net.minecraft.world.explosion.Explosion;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jotty
|
||||
*
|
||||
*/
|
||||
public class BlockSpeedpowder extends GravelBlock {
|
||||
|
||||
public BlockSpeedpowder() {
|
||||
super(FabricBlockSettings.create());
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ItemStack> getDroppedStacks(BlockState state, Builder builder) {
|
||||
return Arrays.asList(new ItemStack[] { new ItemStack(QuickieItems.SPEEDPOWDER, 9) });
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldDropItemsOnExplosion(Explosion explosion) {
|
||||
return true;
|
||||
}
|
||||
}
|
@ -1,5 +1,7 @@
|
||||
package de.jottyfan.minecraft.quickiefabric.blocks;
|
||||
|
||||
import net.minecraft.item.ItemConvertible;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jotty
|
||||
@ -34,4 +36,5 @@ public class QuickieBlocks {
|
||||
public static final BlockStackerNorth BLOCKSTACKERNORTH = new BlockStackerNorth();
|
||||
public static final BlockStackerSouth BLOCKSTACKERSOUTH = new BlockStackerSouth();
|
||||
public static final BlockSpreader BLOCKSPREADER = new BlockSpreader();
|
||||
public static final BlockSpeedpowder BLOCKSPEEDPOWDER = new BlockSpeedpowder();;
|
||||
}
|
||||
|
@ -120,6 +120,7 @@ public class RegistryManager {
|
||||
stacks.add(new ItemStack(QuickieBlocks.KELPSTACK));
|
||||
stacks.add(new ItemStack(QuickieBlocks.BLOCKSULPHOR));
|
||||
stacks.add(new ItemStack(QuickieBlocks.BLOCKSALPETER));
|
||||
stacks.add(new ItemStack(QuickieBlocks.BLOCKSPEEDPOWDER));
|
||||
stacks.add(new ItemStack(QuickieBlocks.DRILL_DOWN));
|
||||
stacks.add(new ItemStack(QuickieBlocks.DRILL_EAST));
|
||||
stacks.add(new ItemStack(QuickieBlocks.DRILL_SOUTH));
|
||||
@ -199,6 +200,7 @@ public class RegistryManager {
|
||||
registerBlock(QuickieBlocks.COTTONPLANT, "cottonplant");
|
||||
registerBlock(QuickieBlocks.BLOCKSULPHOR, "blocksulphor");
|
||||
registerBlock(QuickieBlocks.BLOCKSALPETER, "blocksalpeter");
|
||||
registerBlock(QuickieBlocks.BLOCKSPEEDPOWDER, "blockspeedpowder");
|
||||
registerBlock(QuickieBlocks.DRILL_DOWN, "drill");
|
||||
registerBlock(QuickieBlocks.DRILL_EAST, "drilleast");
|
||||
registerBlock(QuickieBlocks.DRILL_SOUTH, "drillsouth");
|
||||
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "quickiefabric:block/blockspeedpowder"
|
||||
}
|
||||
}
|
||||
}
|
@ -58,6 +58,7 @@
|
||||
"block.quickiefabric.cottonplant": "Baumwollpflanze",
|
||||
"block.quickiefabric.blocksulphor": "Schwefelblock",
|
||||
"block.quickiefabric.blocksalpeter": "Salpeterblock",
|
||||
"block.quickiefabric.blockspeedpowder": "Fluchtpulverblock",
|
||||
"block.quickiefabric.drill": "Bohrer",
|
||||
"block.quickiefabric.drilleast": "Ost-Bohrer",
|
||||
"block.quickiefabric.drillsouth": "Süd-Bohrer",
|
||||
|
@ -58,6 +58,7 @@
|
||||
"block.quickiefabric.cottonplant": "cotton plant",
|
||||
"block.quickiefabric.blocksulphor": "block of sulfur",
|
||||
"block.quickiefabric.blocksalpeter": "block of salpeter",
|
||||
"block.quickiefabric.blockspeedpowder": "block of speedpowder",
|
||||
"block.quickiefabric.drill": "drill",
|
||||
"block.quickiefabric.drilleast": "east drill",
|
||||
"block.quickiefabric.drillsouth": "south drill",
|
||||
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "block/cube_all",
|
||||
"textures": {
|
||||
"all": "quickiefabric:block/blockspeedpowder"
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
{
|
||||
"parent": "quickiefabric:block/blockspeedpowder",
|
||||
"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: 4.8 KiB |
@ -0,0 +1,16 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shapeless",
|
||||
"ingredients": [
|
||||
{
|
||||
"item": "quickiefabric:blocksalpeter"
|
||||
},{
|
||||
"item": "quickiefabric:blocksulphor"
|
||||
},{
|
||||
"item": "minecraft:coal_block"
|
||||
}
|
||||
],
|
||||
"result": {
|
||||
"item": "quickiefabric:blockspeedpowder",
|
||||
"count": 1
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern": [
|
||||
"sss",
|
||||
"sss",
|
||||
"sss"
|
||||
],
|
||||
"key": {
|
||||
"s": {
|
||||
"item": "quickiefabric:speedpowder"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"item": "quickiefabric:blockspeedpowder",
|
||||
"count": 1
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shapeless",
|
||||
"ingredients": [
|
||||
{
|
||||
"item": "quickiefabric:blockspeedpowder"
|
||||
}
|
||||
],
|
||||
"result": {
|
||||
"item": "quickiefabric:speedpowder",
|
||||
"count": 9
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user