small optimizations
This commit is contained in:
parent
a1a4741b63
commit
218c98ccfb
@ -9,7 +9,7 @@
|
||||
loader_version=0.14.8
|
||||
|
||||
# Mod Properties
|
||||
mod_version = 1.19.0
|
||||
mod_version = 1.19.0.1
|
||||
maven_group = de.jottyfan.minecraft
|
||||
archives_base_name = quickiefabric
|
||||
|
||||
|
@ -3,11 +3,10 @@ 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.Block;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.Material;
|
||||
import net.minecraft.block.OreBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.loot.context.LootContext.Builder;
|
||||
|
||||
@ -16,14 +15,14 @@ import net.minecraft.loot.context.LootContext.Builder;
|
||||
* @author jotty
|
||||
*
|
||||
*/
|
||||
public class BlockSulphor extends Block {
|
||||
public class BlockSulphor extends OreBlock {
|
||||
|
||||
public BlockSulphor() {
|
||||
super(FabricBlockSettings.of(Material.WOOL).hardness(0.5f).requiresTool());
|
||||
super(FabricBlockSettings.of(Material.STONE).hardness(0.5f));
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ItemStack> getDroppedStacks(BlockState state, Builder builder) {
|
||||
return Arrays.asList(new ItemStack[] { new ItemStack(QuickieItems.SULPHOR, 9) });
|
||||
return Arrays.asList(new ItemStack[] { new ItemStack(QuickieBlocks.BLOCKSULPHOR) });
|
||||
}
|
||||
}
|
||||
|
@ -101,13 +101,13 @@ public class RegistryManager {
|
||||
Arrays.asList(CountPlacementModifier.of(10), SquarePlacementModifier.of(),
|
||||
HeightRangePlacementModifier.uniform(YOffset.aboveBottom(0), YOffset.belowTop(0))));
|
||||
public static final PlacedFeature PF_DIRTSALPETER = new PlacedFeature(RegistryEntry.of(CF_DIRTSALPETER),
|
||||
Arrays.asList(CountPlacementModifier.of(4), SquarePlacementModifier.of(),
|
||||
Arrays.asList(CountPlacementModifier.of(50), SquarePlacementModifier.of(),
|
||||
HeightRangePlacementModifier.uniform(YOffset.aboveBottom(0), YOffset.belowTop(0))));
|
||||
public static final PlacedFeature PF_SANDSALPETER = new PlacedFeature(RegistryEntry.of(CF_SANDSALPETER),
|
||||
Arrays.asList(CountPlacementModifier.of(4), SquarePlacementModifier.of(),
|
||||
Arrays.asList(CountPlacementModifier.of(50), SquarePlacementModifier.of(),
|
||||
HeightRangePlacementModifier.uniform(YOffset.aboveBottom(0), YOffset.belowTop(0))));
|
||||
public static final PlacedFeature PF_ORESANDSALPETER = new PlacedFeature(RegistryEntry.of(CF_ORESANDSALPETER),
|
||||
Arrays.asList(CountPlacementModifier.of(4), SquarePlacementModifier.of(),
|
||||
Arrays.asList(CountPlacementModifier.of(50), SquarePlacementModifier.of(),
|
||||
HeightRangePlacementModifier.uniform(YOffset.aboveBottom(0), YOffset.belowTop(0))));
|
||||
|
||||
public static final ItemGroup QUICKIEFABRIC_GROUP = FabricItemGroupBuilder
|
||||
@ -263,6 +263,7 @@ public class RegistryManager {
|
||||
|
||||
FuelRegistry.INSTANCE.add(QuickieItems.SULPHOR, 200);
|
||||
FuelRegistry.INSTANCE.add(QuickieBlocks.BLOCKSULPHOR, 2000);
|
||||
FuelRegistry.INSTANCE.add(Blocks.MAGMA_BLOCK, 5000);
|
||||
}
|
||||
|
||||
public static final void registerTools() {
|
||||
|
@ -0,0 +1,12 @@
|
||||
{
|
||||
"type": "minecraft:smithing",
|
||||
"base": {
|
||||
"item": "minecraft:bucket"
|
||||
},
|
||||
"addition": {
|
||||
"item": "minecraft:magma_block"
|
||||
},
|
||||
"result": {
|
||||
"item": "minecraft:lava_bucket"
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shapeless",
|
||||
"ingredients": [
|
||||
{
|
||||
"item": "quickiefabric:blocksulphor"
|
||||
}
|
||||
],
|
||||
"result": {
|
||||
"item": "quickiefabric:sulphor",
|
||||
"count": 9
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user