basic functionality

This commit is contained in:
Jottyfan
2024-06-02 20:05:13 +02:00
parent e99bbd829a
commit f7c422d0fe
136 changed files with 2602 additions and 0 deletions

View File

@ -0,0 +1,27 @@
package de.jottyfan.quickiemod;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import de.jottyfan.quickiemod.init.RegistryManager;
import net.fabricmc.api.ModInitializer;
/**
*
* @author jotty
*
*/
public class QuickieMod implements ModInitializer {
public static final String MODID = "quickiemod";
private static final Logger LOGGER = LoggerFactory.getLogger(MODID);
@Override
public void onInitialize() {
LOGGER.info("loading {}", MODID);
RegistryManager.registerItems();
RegistryManager.registerBlocks();
RegistryManager.registerFeatures();
RegistryManager.registerItemGroup();
}
}

View File

@ -0,0 +1,17 @@
package de.jottyfan.quickiemod;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
/**
*
* @author jotty
*
*/
@Environment(EnvType.CLIENT)
public class QuickieModClient implements ClientModInitializer {
@Override
public void onInitializeClient() {
}
}

View File

@ -0,0 +1,23 @@
package de.jottyfan.quickiemod;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint;
import net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator;
/**
*
* @author jotty
*
*/
public class QuickieModDataGenerator implements DataGeneratorEntrypoint {
private static final Logger LOGGER = LoggerFactory.getLogger(QuickieMod.MODID);
@Override
public void onInitializeDataGenerator(FabricDataGenerator fabricDataGenerator) {
// TODO: implement
LOGGER.debug("initializing data generator");
}
}

View File

@ -0,0 +1,46 @@
package de.jottyfan.quickiemod.blocks;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import com.mojang.serialization.MapCodec;
import de.jottyfan.quickiemod.items.QuickieItems;
import net.minecraft.block.AbstractBlock;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.block.FallingBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.loot.context.LootContextParameterSet.Builder;
/**
*
* @author jotty
*
*/
public class BlockDirtSalpeter extends FallingBlock {
public BlockDirtSalpeter() {
super(AbstractBlock.Settings.create().hardness(3.1f));
}
@Override
public List<ItemStack> getDroppedStacks(BlockState blockState, Builder builder) {
Integer count = (Double.valueOf(new Random().nextDouble() * 10).intValue() / 4) + 1;
boolean spawnBoneMeal = new Random().nextDouble() > 0.5f;
ItemStack boneMealStack = new ItemStack(Items.BONE_MEAL);
ItemStack salpeterStack = new ItemStack(QuickieItems.SALPETER.getItem(), count);
ItemStack dirtStack = new ItemStack(Blocks.DIRT);
ItemStack[] spawnies = spawnBoneMeal ? new ItemStack[] { boneMealStack, salpeterStack, dirtStack }
: new ItemStack[] { salpeterStack, dirtStack };
return Arrays.asList(spawnies);
}
@Override
protected MapCodec<? extends FallingBlock> getCodec() {
// TODO Auto-generated method stub
return null;
}
}

View File

@ -0,0 +1,38 @@
package de.jottyfan.quickiemod.blocks;
import java.util.Arrays;
import java.util.List;
import com.mojang.serialization.MapCodec;
import net.minecraft.block.AbstractBlock;
import net.minecraft.block.BlockState;
import net.minecraft.block.FallingBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.loot.context.LootContextParameterSet.Builder;
import net.minecraft.sound.BlockSoundGroup;
/**
*
* @author jotty
*
*/
public class BlockKelpstack extends FallingBlock {
public BlockKelpstack() {
super(AbstractBlock.Settings.create().hardness(0.1f).slipperiness(1.0f)
.breakInstantly().sounds(BlockSoundGroup.WET_GRASS));
}
@Override
public List<ItemStack> getDroppedStacks(BlockState blockState, Builder builder) {
return Arrays.asList(new ItemStack[] { new ItemStack(Items.KELP, 9) });
}
@Override
protected MapCodec<? extends FallingBlock> getCodec() {
// TODO Auto-generated method stub
return null;
}
}

View File

@ -0,0 +1,30 @@
package de.jottyfan.quickiemod.blocks;
import java.util.Arrays;
import java.util.List;
import de.jottyfan.quickiemod.blocks.help.IntProviderHelper;
import de.jottyfan.quickiemod.items.QuickieItems;
import net.minecraft.block.AbstractBlock;
import net.minecraft.block.BlockState;
import net.minecraft.block.ExperienceDroppingBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.loot.context.LootContextParameterSet.Builder;
/**
*
* @author jotty
*
*/
public class BlockOreDeepslateSulphor extends ExperienceDroppingBlock {
public BlockOreDeepslateSulphor() {
super(IntProviderHelper.of(0, 2), AbstractBlock.Settings.create().hardness(1.9f).requiresTool());
}
@Override
public List<ItemStack> getDroppedStacks(BlockState state, Builder builder) {
return Arrays.asList(new ItemStack[] { new ItemStack(QuickieItems.SULPHOR.getItem(), 4) });
}
}

View File

@ -0,0 +1,29 @@
package de.jottyfan.quickiemod.blocks;
import java.util.Arrays;
import java.util.List;
import de.jottyfan.quickiemod.blocks.help.IntProviderHelper;
import de.jottyfan.quickiemod.items.QuickieItems;
import net.minecraft.block.AbstractBlock;
import net.minecraft.block.BlockState;
import net.minecraft.block.ExperienceDroppingBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.loot.context.LootContextParameterSet.Builder;
/**
*
* @author jotty
*
*/
public class BlockOreNetherSulphor extends ExperienceDroppingBlock {
public BlockOreNetherSulphor() {
super(IntProviderHelper.of(0, 2), AbstractBlock.Settings.create().hardness(2.1f).requiresTool());
}
@Override
public List<ItemStack> getDroppedStacks(BlockState state, Builder builder) {
return Arrays.asList(new ItemStack[] { new ItemStack(QuickieItems.SULPHOR.getItem()) });
}
}

View File

@ -0,0 +1,30 @@
package de.jottyfan.quickiemod.blocks;
import java.util.Arrays;
import java.util.List;
import de.jottyfan.quickiemod.blocks.help.IntProviderHelper;
import de.jottyfan.quickiemod.items.QuickieItems;
import net.minecraft.block.AbstractBlock;
import net.minecraft.block.BlockState;
import net.minecraft.block.ExperienceDroppingBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.loot.context.LootContextParameterSet.Builder;
import net.minecraft.util.math.random.Random;
/**
*
* @author jotty
*
*/
public class BlockOreSalpeter extends ExperienceDroppingBlock {
public BlockOreSalpeter() {
super(IntProviderHelper.of(0, 2), AbstractBlock.Settings.create().hardness(3.1f).requiresTool());
}
@Override
public List<ItemStack> getDroppedStacks(BlockState state, Builder builder) {
return Arrays.asList(new ItemStack[] { new ItemStack(QuickieItems.SALPETER.getItem(), 2 + Random.create().nextInt(3)) });
}
}

View File

@ -0,0 +1,31 @@
package de.jottyfan.quickiemod.blocks;
import java.util.Arrays;
import java.util.List;
import de.jottyfan.quickiemod.blocks.help.IntProviderHelper;
import de.jottyfan.quickiemod.items.QuickieItems;
import net.minecraft.block.AbstractBlock;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.block.ExperienceDroppingBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.loot.context.LootContextParameterSet.Builder;
import net.minecraft.util.math.random.Random;
/**
*
* @author jotty
*
*/
public class BlockOreSandSalpeter extends ExperienceDroppingBlock {
public BlockOreSandSalpeter() {
super(IntProviderHelper.of(0, 2), AbstractBlock.Settings.create().hardness(2.9f).requiresTool());
}
@Override
public List<ItemStack> getDroppedStacks(BlockState state, Builder builder) {
return Arrays.asList(new ItemStack[] { new ItemStack(QuickieItems.SALPETER.getItem(), 7 + Random.create().nextInt(4)), new ItemStack(Blocks.SAND) });
}
}

View File

@ -0,0 +1,30 @@
package de.jottyfan.quickiemod.blocks;
import java.util.Arrays;
import java.util.List;
import de.jottyfan.quickiemod.blocks.help.IntProviderHelper;
import de.jottyfan.quickiemod.items.QuickieItems;
import net.minecraft.block.AbstractBlock;
import net.minecraft.block.BlockState;
import net.minecraft.block.ExperienceDroppingBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.loot.context.LootContextParameterSet.Builder;
/**
*
* @author jotty
*
*/
public class BlockOreSulphor extends ExperienceDroppingBlock {
public BlockOreSulphor() {
super(IntProviderHelper.of(0, 2), AbstractBlock.Settings.create().hardness(1.9f).requiresTool());
}
@Override
public List<ItemStack> getDroppedStacks(BlockState state, Builder builder) {
return Arrays.asList(new ItemStack[] { new ItemStack(QuickieItems.SULPHOR.getItem()) });
}
}

View File

@ -0,0 +1,29 @@
package de.jottyfan.quickiemod.blocks;
import java.util.Arrays;
import java.util.List;
import de.jottyfan.quickiemod.blocks.help.IntProviderHelper;
import de.jottyfan.quickiemod.items.QuickieItems;
import net.minecraft.block.AbstractBlock;
import net.minecraft.block.BlockState;
import net.minecraft.block.ExperienceDroppingBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.loot.context.LootContextParameterSet.Builder;
/**
*
* @author jotty
*
*/
public class BlockSalpeter extends ExperienceDroppingBlock {
public BlockSalpeter() {
super(IntProviderHelper.of(0, 2), AbstractBlock.Settings.create().hardness(0.5f));
}
@Override
public List<ItemStack> getDroppedStacks(BlockState state, Builder builder) {
return Arrays.asList(new ItemStack[] { new ItemStack(QuickieItems.SALPETER.getItem(), 9) });
}
}

View File

@ -0,0 +1,38 @@
package de.jottyfan.quickiemod.blocks;
import java.util.Arrays;
import java.util.List;
import com.mojang.serialization.MapCodec;
import de.jottyfan.quickiemod.items.QuickieItems;
import net.minecraft.block.AbstractBlock;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.block.FallingBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.loot.context.LootContextParameterSet.Builder;
import net.minecraft.util.math.random.Random;
/**
*
* @author jotty
*
*/
public class BlockSandSalpeter extends FallingBlock {
public BlockSandSalpeter() {
super(AbstractBlock.Settings.create().hardness(3.1f).requiresTool());
}
@Override
public List<ItemStack> getDroppedStacks(BlockState state, Builder builder) {
return Arrays.asList(new ItemStack[] { new ItemStack(QuickieItems.SALPETER.getItem(), 3 + Random.create().nextInt(2)), new ItemStack(Blocks.SAND) });
}
@Override
protected MapCodec<? extends FallingBlock> getCodec() {
// TODO Auto-generated method stub
return null;
}
}

View File

@ -0,0 +1,29 @@
package de.jottyfan.quickiemod.blocks;
import java.util.Arrays;
import java.util.List;
import de.jottyfan.quickiemod.blocks.help.IntProviderHelper;
import de.jottyfan.quickiemod.items.QuickieItems;
import net.minecraft.block.AbstractBlock;
import net.minecraft.block.BlockState;
import net.minecraft.block.ExperienceDroppingBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.loot.context.LootContextParameterSet.Builder;
/**
*
* @author jotty
*
*/
public class BlockSulphor extends ExperienceDroppingBlock {
public BlockSulphor() {
super(IntProviderHelper.of(0, 2), AbstractBlock.Settings.create().hardness(0.5f));
}
@Override
public List<ItemStack> getDroppedStacks(BlockState state, Builder builder) {
return Arrays.asList(new ItemStack[] { new ItemStack(QuickieItems.SULPHOR.getItem(), 9) });
}
}

View File

@ -0,0 +1,39 @@
package de.jottyfan.quickiemod.blocks;
import net.minecraft.block.Block;
/**
*
* @author jotty
*
*/
public enum QuickieBlocks {
// @formatter:off
KELPSTACK(new BlockKelpstack(), "kelpstack"),
DIRT_SALPETER(new BlockDirtSalpeter(), "dirtsalpeter"),
ORE_NETHER_SULPHOR(new BlockOreNetherSulphor(), "orenethersulphor"),
ORE_SALPETER(new BlockOreSalpeter(), "oresalpeter"),
ORE_SAND_SALPETER(new BlockSandSalpeter(), "oresandsalpeter"),
ORE_SULPHOR(new BlockOreSulphor(), "oresulphor"),
ORE_DEEPSLATESULPHOR(new BlockOreDeepslateSulphor(), "oredeepslatesulphor"),
SAND_SALPETER(new BlockSandSalpeter(), "sandsalpeter"),
BLOCKSULPHOR(new BlockSulphor(), "blocksulphor"),
BLOCKSALPETER(new BlockSalpeter(), "blocksalpeter");
// @formatter:on
private final Block block;
private final String name;
private QuickieBlocks(Block block, String name) {
this.block = block;
this.name = name;
}
public final Block getBlock() {
return block;
}
public final String getName() {
return name;
}
}

View File

@ -0,0 +1,37 @@
package de.jottyfan.quickiemod.blocks.help;
import net.minecraft.util.math.intprovider.IntProvider;
import net.minecraft.util.math.intprovider.IntProviderType;
import net.minecraft.util.math.random.Random;
/**
*
* @author jotty
*
*/
public class IntProviderHelper {
public static final IntProvider of(Integer min, Integer max) {
return new IntProvider() {
@Override
public IntProviderType<?> getType() {
return IntProviderType.CONSTANT;
}
@Override
public int getMin() {
return min;
}
@Override
public int getMax() {
return max;
}
@Override
public int get(Random random) {
return random.nextBetween(min, max);
}
};
}
}

View File

@ -0,0 +1,66 @@
package de.jottyfan.quickiemod.init;
import java.util.function.BiConsumer;
import de.jottyfan.quickiemod.QuickieMod;
import net.fabricmc.fabric.api.biome.v1.BiomeModificationContext;
import net.fabricmc.fabric.api.biome.v1.BiomeSelectionContext;
import net.minecraft.registry.RegistryKey;
import net.minecraft.registry.RegistryKeys;
import net.minecraft.util.Identifier;
import net.minecraft.world.gen.GenerationStep;
import net.minecraft.world.gen.feature.ConfiguredFeature;
import net.minecraft.world.gen.feature.PlacedFeature;
/**
*
* @author jotty
*
*/
public class FeaturesManager {
public static final RegistryKey<ConfiguredFeature<?, ?>> CF_ORESULFUR = genCf("oresulphor");
public static final RegistryKey<ConfiguredFeature<?, ?>> CF_OREDEEPSLATESULFUR = genCf("oredepslatesulphor");
public static final RegistryKey<ConfiguredFeature<?, ?>> CF_ORESALPETER = genCf("oresalpeter");
public static final RegistryKey<ConfiguredFeature<?, ?>> CF_ORENETHERSULPHOR = genCf("orenethersulphore");
public static final RegistryKey<ConfiguredFeature<?, ?>> CF_BLOCKSULPHOR = genCf("blocksulphor");
public static final RegistryKey<ConfiguredFeature<?, ?>> CF_DIRTSALPETER = genCf("dirtsalpeter");
public static final RegistryKey<ConfiguredFeature<?, ?>> CF_SANDSALPETER = genCf("sandsalpeter");
public static final RegistryKey<ConfiguredFeature<?, ?>> CF_ORESANDSALPETER = genCf("oresandsalpeter");
public static final RegistryKey<PlacedFeature> PF_ORESULPHOR = genPf("oresulphor");
public static final RegistryKey<PlacedFeature> PF_OREDEEPSLATESULPHOR = genPf("oredeepslatesulphor");
public static final RegistryKey<PlacedFeature> PF_ORESALPETER = genPf("oresalpeter");
public static final RegistryKey<PlacedFeature> PF_ORENETHERSULPHOR = genPf("orenethersulphor");
public static final RegistryKey<PlacedFeature> PF_BLOCKSULPHOR = genPf("blocksulphor");
public static final RegistryKey<PlacedFeature> PF_DIRTSALPETER = genPf("dirtsalpeter");
public static final RegistryKey<PlacedFeature> PF_SANDSALPETER = genPf("sandsalpeter");
public static final RegistryKey<PlacedFeature> PF_ORESANDSALPETER = genPf("oresandsalpeter");
private static final RegistryKey<ConfiguredFeature<?, ?>> genCf(String name) {
return RegistryKey.of(RegistryKeys.CONFIGURED_FEATURE, new Identifier(QuickieMod.MODID, name));
}
private static final RegistryKey<PlacedFeature> genPf(String name) {
return RegistryKey.of(RegistryKeys.PLACED_FEATURE, new Identifier(QuickieMod.MODID, name));
}
protected static final BiConsumer<BiomeSelectionContext, BiomeModificationContext> overworldOres() {
return (bsc, bmc) -> {
bmc.getGenerationSettings().addFeature(GenerationStep.Feature.UNDERGROUND_ORES, PF_ORESULPHOR);
bmc.getGenerationSettings().addFeature(GenerationStep.Feature.UNDERGROUND_ORES, PF_ORESALPETER);
bmc.getGenerationSettings().addFeature(GenerationStep.Feature.UNDERGROUND_ORES, PF_DIRTSALPETER);
bmc.getGenerationSettings().addFeature(GenerationStep.Feature.UNDERGROUND_ORES, PF_SANDSALPETER);
bmc.getGenerationSettings().addFeature(GenerationStep.Feature.UNDERGROUND_ORES, PF_ORESANDSALPETER);
bmc.getGenerationSettings().addFeature(GenerationStep.Feature.UNDERGROUND_ORES, PF_OREDEEPSLATESULPHOR);
};
}
protected static final BiConsumer<BiomeSelectionContext, BiomeModificationContext> netherOres() {
return (bsc, bmc) -> {
bmc.getGenerationSettings().addFeature(GenerationStep.Feature.UNDERGROUND_ORES, PF_ORENETHERSULPHOR);
bmc.getGenerationSettings().addFeature(GenerationStep.Feature.UNDERGROUND_ORES, PF_BLOCKSULPHOR);
};
}
}

View File

@ -0,0 +1,71 @@
package de.jottyfan.quickiemod.init;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import de.jottyfan.quickiemod.QuickieMod;
import de.jottyfan.quickiemod.blocks.QuickieBlocks;
import de.jottyfan.quickiemod.items.QuickieItems;
import net.fabricmc.fabric.api.biome.v1.BiomeModifications;
import net.fabricmc.fabric.api.biome.v1.BiomeSelectors;
import net.fabricmc.fabric.api.biome.v1.ModificationPhase;
import net.fabricmc.fabric.api.itemgroup.v1.FabricItemGroup;
import net.fabricmc.fabric.api.registry.FuelRegistry;
import net.minecraft.item.BlockItem;
import net.minecraft.item.Item.Settings;
import net.minecraft.item.ItemStack;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.registry.RegistryKey;
import net.minecraft.registry.RegistryKeys;
import net.minecraft.text.Text;
import net.minecraft.util.Identifier;
/**
*
* @author jotty
*
*/
public class RegistryManager {
private static final Logger LOGGER = LoggerFactory.getLogger(QuickieMod.MODID);
public static final void registerItemGroup() {
Registry.register(Registries.ITEM_GROUP, RegistryKey.of(RegistryKeys.ITEM_GROUP, new Identifier(QuickieMod.MODID, "itemgroups")),
FabricItemGroup.builder().icon(() -> new ItemStack(QuickieItems.ROTTEN_FLESH_STRIPES.getItem())).displayName(Text.literal(QuickieMod.MODID))
.entries((enabledFeatures, stacks) -> {
for (QuickieItems i : QuickieItems.values()) {
stacks.add(new ItemStack(i.getItem()));
}
for (QuickieBlocks b : QuickieBlocks.values()) {
stacks.add(new ItemStack(b.getBlock()));
}
}).build());
}
public static final void registerItems() {
LOGGER.debug("registering items");
for (QuickieItems i : QuickieItems.values()) {
Registry.register(Registries.ITEM, new Identifier(QuickieMod.MODID, i.getName()), i.getItem());
}
FuelRegistry.INSTANCE.add(QuickieItems.SULPHOR.getItem(), 200);
FuelRegistry.INSTANCE.add(QuickieBlocks.BLOCKSULPHOR.getBlock(), 2000);
}
public static final void registerBlocks() {
LOGGER.debug("registering blocks");
for (QuickieBlocks b : QuickieBlocks.values()) {
Registry.register(Registries.BLOCK, new Identifier(QuickieMod.MODID, b.getName()), b.getBlock());
Registry.register(Registries.ITEM, new Identifier(QuickieMod.MODID, b.getName()), new BlockItem(b.getBlock(), new Settings()));
}
}
public static final void registerFeatures() {
// Overworld features
BiomeModifications.create(new Identifier(QuickieMod.MODID, "features")).add(ModificationPhase.ADDITIONS,
BiomeSelectors.foundInOverworld(), FeaturesManager.overworldOres());
// Nether features
BiomeModifications.create(new Identifier(QuickieMod.MODID, "nether_features")).add(ModificationPhase.ADDITIONS,
BiomeSelectors.foundInTheNether(), FeaturesManager.netherOres());
}
}

View File

@ -0,0 +1,21 @@
package de.jottyfan.quickiemod.item;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemUsageContext;
import net.minecraft.util.Hand;
import net.minecraft.util.hit.BlockHitResult;
import net.minecraft.world.World;
/**
*
* @author jotty
*
*/
public class ModdedItemUsageContext extends ItemUsageContext {
public ModdedItemUsageContext(World world, PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit) {
super(world, player, hand, stack, hit);
}
}

View File

@ -0,0 +1,17 @@
package de.jottyfan.quickiemod.items;
import net.minecraft.component.type.FoodComponent;
import net.minecraft.item.Item;
/**
*
* @author jotty
*
*/
public class ItemCarrotstack extends Item {
public ItemCarrotstack() {
super(new Item.Settings().maxCount(64)
.food(new FoodComponent.Builder().nutrition(12).saturationModifier(0.6F).build()));
}
}

View File

@ -0,0 +1,15 @@
package de.jottyfan.quickiemod.items;
import net.minecraft.item.Item;
/**
*
* @author jotty
*
*/
public class ItemRottenFleshStripes extends Item {
public ItemRottenFleshStripes() {
super(new Item.Settings().maxCount(64));
}
}

View File

@ -0,0 +1,15 @@
package de.jottyfan.quickiemod.items;
import net.minecraft.item.Item;
/**
*
* @author jotty
*
*/
public class ItemSalpeter extends Item {
public ItemSalpeter() {
super(new Item.Settings());
}
}

View File

@ -0,0 +1,14 @@
package de.jottyfan.quickiemod.items;
import net.minecraft.item.Item;
/**
*
* @author jotty
*
*/
public class ItemStub extends Item {
public ItemStub() {
super(new Item.Settings().maxCount(64));
}
}

View File

@ -0,0 +1,41 @@
package de.jottyfan.quickiemod.items;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Hand;
import net.minecraft.util.TypedActionResult;
import net.minecraft.world.World;
/**
*
* @author jotty
*
*/
public class ItemSulphor extends Item {
public ItemSulphor() {
super(new Item.Settings());
}
@Override
public TypedActionResult<ItemStack> use(World world, PlayerEntity user, Hand hand) {
ItemStack itemStack = user.getStackInHand(hand);
// TODO: reactivate when sulforpad is available
// BlockHitResult hitResult = BoatItem.raycast(world, user, RaycastContext.FluidHandling.SOURCE_ONLY);
// if (((HitResult) hitResult).getType() == HitResult.Type.MISS) {
// return TypedActionResult.pass(itemStack);
// }
// if (((HitResult) hitResult).getType() == HitResult.Type.BLOCK) {
// if (!world.isClient) {
// BlockPos pos = hitResult.getBlockPos();
// if (BlockSulforpad.getAllowedBlockHolder().contains(world.getBlockState(pos).getBlock()) && world.getBlockState(pos.up()).isAir()) {
// world.setBlockState(pos.up(), QuickieBlocks.SULFORPAD.getDefaultState());
// itemStack.decrement(1);
// }
// }
// return TypedActionResult.success(itemStack, world.isClient());
// }
return TypedActionResult.pass(itemStack);
}
}

View File

@ -0,0 +1,34 @@
package de.jottyfan.quickiemod.items;
import net.minecraft.item.Item;
/**
*
* @author jotty
*
*/
public enum QuickieItems {
// @formatter:off
ROTTEN_FLESH_STRIPES(new ItemRottenFleshStripes(), "rotten_flesh_stripes"),
CARROTSTACK(new ItemCarrotstack(), "carrotstack"),
STUB(new ItemStub(), "stub"),
SALPETER(new ItemSalpeter(), "salpeter"),
SULPHOR(new ItemSulphor(), "sulphor");
// @formatter:on
private final Item item;
private final String name;
private QuickieItems(Item item, String name) {
this.item = item;
this.name = name;
}
public final Item getItem() {
return item;
}
public final String getName() {
return name;
}
}

View File

@ -0,0 +1,52 @@
package de.jottyfan.quickiemod.text;
import java.util.List;
import net.minecraft.text.OrderedText;
import net.minecraft.text.Style;
import net.minecraft.text.Text;
import net.minecraft.text.TextContent;
/**
*
* @author jotty
*
*/
public class PrefixedText implements Text {
private final String pattern;
private final Text text;
private PrefixedText(String pattern, Text text) {
this.pattern = pattern;
this.text = text;
}
public final static PrefixedText instance(String pattern, Text text) {
return new PrefixedText(pattern, text);
}
private Text generateText() {
return Text.of(pattern.replace("%s", text.getString()));
}
@Override
public OrderedText asOrderedText() {
return generateText().asOrderedText();
}
@Override
public TextContent getContent() {
return generateText().getContent();
}
@Override
public List<Text> getSiblings() {
return generateText().getSiblings();
}
@Override
public Style getStyle() {
return text.getStyle();
}
}

View File

@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "quickiemod:block/blocksalpeter"
}
}
}

View File

@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "quickiemod:block/blocksulphor"
}
}
}

View File

@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "quickiemod:block/kelpstack"
}
}
}

View File

@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "quickiemod:block/oredeepslatesulphor"
}
}
}

View File

@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "quickiemod:block/orenethersulphor"
}
}
}

View File

@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "quickiemod:block/oresalpeter"
}
}
}

View File

@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "quickiemod:block/oresandsalpeter"
}
}
}

View File

@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "quickiemod:block/oresulphor"
}
}
}

View File

@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "quickiemod:block/sandsalpeter"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1,110 @@
{
"itemGroup.quickiemod.all": "quickiemod Items",
"item.quickiemod.speedpowderaxe": "Fluchtpulveraxt",
"item.quickiemod.speedpowderpickaxe": "Fluchtpulverspitzhacke",
"item.quickiemod.speedpowdershovel": "Fluchtpulverschaufel",
"item.quickiemod.speedpowderhoe": "Fluchtpulverfeldhacke",
"item.quickiemod.speedpowderwaterhoe": "bewässerte Fluchtpulverfeldhacke",
"item.quickiemod.speedpowder": "Fluchtpulver",
"item.quickiemod.quickiepowder": "Eilpulver",
"item.quickiemod.quickiepowderaxe": "Eilpulveraxt",
"item.quickiemod.quickiepowderpickaxe": "Eilpulverspitzhacke",
"item.quickiemod.quickiepowdershovel": "Eilpulverschaufel",
"item.quickiemod.quickiepowderhoe": "Eilpulverfeldhacke",
"item.quickiemod.quickiepowderwaterhoe": "bewässerte Eilpulverfeldhacke",
"item.quickiemod.sulphor": "Schwefel",
"item.quickiemod.salpeter": "Salpeter",
"item.quickiemod.construction0": "leerer Bauplan",
"item.quickiemod.construction1": "begonnener Bauplan",
"item.quickiemod.construction2": "fertiger Bauplan",
"item.quickiemod.pencil": "Bleistift",
"item.quickiemod.levelup": "Aufwerter",
"item.quickiemod.backpack_black": "schwarzer Rucksack",
"item.quickiemod.backpack_blue": "blauer Rucksack",
"item.quickiemod.backpack_brown": "brauner Rucksack",
"item.quickiemod.backpack_cyan": "türkiser Rucksack",
"item.quickiemod.backpack_green": "grüner Rucksack",
"item.quickiemod.backpack_pink": "rosaner Rucksack",
"item.quickiemod.backpack_red": "roter Rucksack",
"item.quickiemod.backpack_white": "weißer Rucksack",
"item.quickiemod.backpack_yellow": "gelber Rucksack",
"item.quickiemod.backpack_darkgray": "dunkelgrauer Rucksack",
"item.quickiemod.backpack_lightgray": "hellgrauer Rucksack",
"item.quickiemod.backpack_lightgreen": "hellgrüner Rucksack",
"item.quickiemod.backpack_magenta": "pinker Rucksack",
"item.quickiemod.backpack_orange": "orangener Rucksack",
"item.quickiemod.backpack_purple": "lilaner Rucksack",
"item.quickiemod.backpack_lightblue": "hellblauer Rucksack",
"item.quickiemod.bag": "Beutel",
"item.quickiemod.rotten_flesh_stripes": "geschnittenes Gammelfleisch",
"item.quickiemod.carrotstack": "Karottenbündel",
"item.quickiemod.cotton": "Baumwolle",
"item.quickiemod.cottonseed": "Baumwollsaat",
"item.quickiemod.canola": "Raps",
"item.quickiemod.canolaseed": "Rapssaat",
"item.quickiemod.canolabottle": "Rapsöl",
"item.quickiemod.canolabottlestack": "Rapsölsammlung",
"item.quickiemod.stub": "Stummel",
"item.quickiemod.oxidizedcopperpowder": "oxidiertes Kupferpulver",
"item.quickiemod.speedingot": "Fluchtpulverbarren",
"item.quickiemod.quickieingot": "Eilpulverbarren",
"block.quickiemod.orenethersulphor": "Nether-Schwefel",
"block.quickiemod.oresalpeter": "Salpetererz",
"block.quickiemod.oresandsalpeter": "Salpetergestein",
"block.quickiemod.oresulphor": "Schwefelgestein",
"block.quickiemod.oredeepslatesulphor": "Schwefeltiefengestein",
"block.quickiemod.dirtsalpeter": "Salpetererde",
"block.quickiemod.sandsalpeter": "Salpetersand",
"block.quickiemod.constructionborder": "Bauplangrenzblock",
"block.quickiemod.rotateclockwise": "im Urzeigersinn Bauplandreher",
"block.quickiemod.rotatecounterclockwise": "gegen den Urzeigersinn Bauplandreher",
"block.quickiemod.mirrorhorizontal": "horizontaler Bauplanspiegler",
"block.quickiemod.mirrorvertical": "vertikaler Bauplanspiegler",
"block.quickiemod.moveup": "Höhenpositionsaddierer",
"block.quickiemod.movedown": "Höhenpositionssubtrahierer",
"block.quickiemod.menu": "Bauplanwerkbank",
"block.quickiemod.lavahoarder": "voller Lavasauger",
"block.quickiemod.emptylavahoarder": "Lavasauger",
"block.quickiemod.itemhoarder": "Itemsauger",
"block.quickiemod.monsterhoarder": "Monstersauger",
"block.quickiemod.kelpstack": "Seegrassbündel",
"block.quickiemod.cottonplant": "Baumwollpflanze",
"block.quickiemod.blocksulphor": "Schwefelblock",
"block.quickiemod.blocksalpeter": "Salpeterblock",
"block.quickiemod.blockspeedpowder": "Fluchtpulverblock",
"block.quickiemod.blockquickiepowder": "Eilpulverblock",
"block.quickiemod.drill": "Bohrer",
"block.quickiemod.drilleast": "Ost-Bohrer",
"block.quickiemod.drillsouth": "Süd-Bohrer",
"block.quickiemod.drillwest": "West-Bohrer",
"block.quickiemod.drillnorth": "Nord-Bohrer",
"block.quickiemod.drillstop": "Bohrerstopper",
"block.quickiemod.blockstackerup": "Hochstapler",
"block.quickiemod.blockstackerdown": "Tiefstapler",
"block.quickiemod.blockstackereast": "Oststapler",
"block.quickiemod.blockstackerwest": "Weststapler",
"block.quickiemod.blockstackernorth": "Nordstapler",
"block.quickiemod.blockstackersouth": "Südstapler",
"block.quickiemod.blockspreader": "Blockverteiler",
"block.quickiemod.sulforpad": "Schwefelablagerung",
"container.quickiemod.backpack": "Rucksack",
"container.quickiemod.blockstacker": "Blockstapler",
"msg.buildingplan.start": "beginne Konstruktionsaufnahme bei %s,%s,%s",
"msg.buildingplan.end": "beende Konstruktionsaufnahme bei %s,%s,%s",
"msg.buildingplan.null": "Der Bauplan ist kaputt.",
"msg.buildingplan.missing": "Zum Bauen fehlt noch: %s",
"msg.buildingplan.rotateclockwise": "Der Bauplan wurde im Uhrzeigersinn gedreht.",
"msg.buildingplan.rotatecounterclockwise": "Der Bauplan wurde gegen den Uhrzeigersinn gedreht.",
"msg.buildingplan.mirrorhorizontal": "Der Bauplan wurde horizontal gespiegelt.",
"msg.buildingplan.mirrorvertical": "Der Bauplan wurde vertikal gespiegelt.",
"msg.buildingplan.move": "Der Bauplan wurde in der Höhe um %s Blöcke verschoben.",
"msg.buildingplan.failonblock": "Der Bau wurde abgelehnt, es ist im Weg: %s",
"msg.buildingplan.failonplayer": "Der Bau wurde abgelehnt, um Spieler %s nicht zu gefährden.",
"msg.itemhoarder.summary": "Der Itemsauger enthält: %s",
"msg.notyetimplemented": "leider noch nicht verfügbar",
"msg.backpack.transfer.filled": "Der Rucksack wurde befüllt.",
"msg.backpack.transfer.cleared": "Der Rucksackinhalt wurde soweit möglich geleert.",
"msg.backpack.transfer.cancel": "Entweder der Rucksack oder die Kiste sind nicht komplett leer.",
"msg.drill.fuelinfo": "Der Bohrer hat noch eine Ladung für den Abbau von %s Blöcken. Er kann mit Rapsöl aufgeladen werden.",
"error.unleveling.inventory.full": "Es ist kein Platz mehr frei, um die Aufwertungen abzulegen."
}

View File

@ -0,0 +1,110 @@
{
"itemGroup.quickiemod.all": "quickiemod items",
"item.quickiemod.speedpowderaxe": "speedpowder axe",
"item.quickiemod.speedpowderpickaxe": "speedpowder pickaxe",
"item.quickiemod.speedpowdershovel": "speedpowder shovel",
"item.quickiemod.speedpowderhoe": "speedpowder hoe",
"item.quickiemod.speedpowderwaterhoe": "watered speedpowder hoe",
"item.quickiemod.speedpowder": "speedpowder",
"item.quickiemod.quickiepowder": "hurrypowder",
"item.quickiemod.quickiepowderaxe": "hurrypowder axe",
"item.quickiemod.quickiepowderpickaxe": "hurrypowder pickaxe",
"item.quickiemod.quickiepowdershovel": "hurrypowder shovel",
"item.quickiemod.quickiepowderhoe": "hurrypowder hoe",
"item.quickiemod.quickiepowderwaterhoe": "watered hurrypowder hoe",
"item.quickiemod.sulphor": "sulfur",
"item.quickiemod.salpeter": "salpeter",
"item.quickiemod.construction0": "empty building plan",
"item.quickiemod.construction1": "started building plan",
"item.quickiemod.construction2": "finished building plan",
"item.quickiemod.pencil": "pencil",
"item.quickiemod.levelup": "level up",
"item.quickiemod.backpack_black": "black backpack",
"item.quickiemod.backpack_blue": "blue backpack",
"item.quickiemod.backpack_brown": "brown backpack",
"item.quickiemod.backpack_cyan": "cyan backpack",
"item.quickiemod.backpack_green": "green backpack",
"item.quickiemod.backpack_pink": "pink backpack",
"item.quickiemod.backpack_red": "red backpack",
"item.quickiemod.backpack_white": "white backpack",
"item.quickiemod.backpack_yellow": "yellow backpack",
"item.quickiemod.backpack_darkgray": "dark gray backpack",
"item.quickiemod.backpack_lightgray": "light gray backpack",
"item.quickiemod.backpack_lightgreen": "lime backpack",
"item.quickiemod.backpack_magenta": "magenta backpack",
"item.quickiemod.backpack_orange": "orange backpack",
"item.quickiemod.backpack_purple": "purple backpack",
"item.quickiemod.backpack_lightblue": "light blue backpack",
"item.quickiemod.bag": "bag",
"item.quickiemod.rotten_flesh_stripes": "rotten flesh stripes",
"item.quickiemod.carrotstack": "a bundle of carrots",
"item.quickiemod.cotton": "cotton",
"item.quickiemod.cottonseed": "cotton seed",
"item.quickiemod.canola": "canola",
"item.quickiemod.canolaseed": "canola seed",
"item.quickiemod.canolabottle": "canola oil",
"item.quickiemod.canolabottlestack": "canola oil collection",
"item.quickiemod.stub": "stub",
"item.quickiemod.oxidizedcopperpowder": "oxidized copper powder",
"item.quickiemod.speedingot": "Speedpowderingot",
"item.quickiemod.quickieingot": "Hurrypowderingot",
"block.quickiemod.orenethersulphor": "nether sulfur",
"block.quickiemod.oresalpeter": "salpeter ore",
"block.quickiemod.oresandsalpeter": "salpeter stone",
"block.quickiemod.oresulphor": "sulfur stone",
"block.quickiemod.oredeepslatesulphor": "deepslate sulfur stone",
"block.quickiemod.dirtsalpeter": "salpeter dirt",
"block.quickiemod.sandsalpeter": "salpeter sand",
"block.quickiemod.constructionborder": "building plan border block",
"block.quickiemod.rotateclockwise": "rotate clockwise building plan",
"block.quickiemod.rotatecounterclockwise": "rotate counterclockwise building plan",
"block.quickiemod.mirrorhorizontal": "horizontal building plan mirror",
"block.quickiemod.mirrorvertical": "vertical building plan mirror",
"block.quickiemod.moveup": "height position adder",
"block.quickiemod.movedown": "height position substractor",
"block.quickiemod.menu": "building plan crafting table",
"block.quickiemod.lavahoarder": "filled lava hoarder",
"block.quickiemod.emptylavahoarder": "lava hoarder",
"block.quickiemod.itemhoarder": "item hoarder",
"block.quickiemod.monsterhoarder": "monster hoarder",
"block.quickiemod.kelpstack": "kelp bundle",
"block.quickiemod.cottonplant": "cotton plant",
"block.quickiemod.blocksulphor": "block of sulfur",
"block.quickiemod.blocksalpeter": "block of salpeter",
"block.quickiemod.blockspeedpowder": "block of speedpowder",
"block.quickiemod.blockquickiepowder": "block of hurrypowder",
"block.quickiemod.drill": "drill",
"block.quickiemod.drilleast": "east drill",
"block.quickiemod.drillsouth": "south drill",
"block.quickiemod.drillwest": "west drill",
"block.quickiemod.drillnorth": "north drill",
"block.quickiemod.drillstop": "drill stopper",
"block.quickiemod.blockstackerup": "up stacker",
"block.quickiemod.blockstackerdown": "down stacker",
"block.quickiemod.blockstackereast": "east stacker",
"block.quickiemod.blockstackerwest": "west stacker",
"block.quickiemod.blockstackernorth": "north stacker",
"block.quickiemod.blockstackersouth": "south stacker",
"block.quickiemod.blockspreader": "block spreader",
"block.quickiemod.sulforpad": "sulphur deposition",
"container.quickiemod.backpack": "backpack",
"container.quickiemod.blockstacker": "block stacker",
"msg.buildingplan.start": "started recording of construction at %s,%s,%s",
"msg.buildingplan.end": "finished recording of construction at %s,%s,%s",
"msg.buildingplan.null": "The building plan is damaged.",
"msg.buildingplan.missing": "Cannot complete until you deliver %s",
"msg.buildingplan.rotateclockwise": "Rotated the building plan clockwise",
"msg.buildingplan.rotatecounterclockwise": "Rotated the building plan counterclockwise",
"msg.buildingplan.mirrorhorizontal": "Mirrored the building plan horizontally",
"msg.buildingplan.mirrorvertical": "Mirrored the building plan vertically",
"msg.buildingplan.move": "The building plan has been moved in height for %s blocks.",
"msg.buildingplan.failonblock": "The building execution was rejected because of %s",
"msg.buildingplan.failonplayer": "The building execution was rejected because of %s who could be injured.",
"msg.itemhoarder.summary": "The item hoarder contains: %s",
"msg.notyetimplemented": "not yet implemented",
"msg.backpack.transfer.filled": "Filled the backpack.",
"msg.backpack.transfer.cleared": "Cleared the backpack as much as possible.",
"msg.backpack.transfer.cancel": "Eigther backpack or chest are not completely empty.",
"msg.drill.fuelinfo": "The drill still has a charge for mining %s blocks. It can be charged with canola oil.",
"error.unleveling.inventory.full": "There is no free stack in your inventory for the level ups."
}

View File

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

View File

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

View File

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

View File

@ -0,0 +1,25 @@
{
"parent": "block/block",
"textures": {
"particle": "quickiemod:block/kelpstack_side",
"down": "quickiemod:block/kelpstack_bottom",
"up": "quickiemod:block/kelpstack_top",
"north": "quickiemod:block/kelpstack_side",
"east": "quickiemod:block/kelpstack_side",
"south": "quickiemod:block/kelpstack_side",
"west": "quickiemod:block/kelpstack_side"
},
"elements": [
{ "from": [ 0, 0, 0 ],
"to": [ 16, 16, 16 ],
"faces": {
"down": { "texture": "#down", "cullface": "down" },
"up": { "texture": "#up", "cullface": "up" },
"north": { "texture": "#north", "cullface": "north" },
"south": { "uv": [16, 0, 0, 16], "texture": "#south", "cullface": "south" },
"west": { "texture": "#west", "cullface": "west" },
"east": { "uv": [16, 0, 0, 16], "texture": "#east", "cullface": "east" }
}
}
]
}

View File

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

View File

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

View File

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

View File

@ -0,0 +1,7 @@
{
"parent": "block/cube_column",
"textures": {
"end" : "minecraft:block/sandstone_top",
"side": "quickiemod:block/oresandsalpeter"
}
}

View File

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

View File

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

View File

@ -0,0 +1,10 @@
{
"parent": "quickiemod: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": "quickiemod:block/blocksulphor",
"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/generated",
"textures": {
"layer0": "quickiemod:item/carrotstack"
}
}

View File

@ -0,0 +1,10 @@
{
"parent": "quickiemod:block/dirtsalpeter",
"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": "quickiemod:block/kelpstack",
"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": "quickiemod:block/oredeepslatesulphor",
"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": "quickiemod:block/orenethersulphor",
"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": "quickiemod:block/oresalpeter",
"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": "quickiemod:block/oresandsalpeter",
"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": "quickiemod:block/oresulphor",
"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": "quickiemod:item/rotten_flesh_stripes"
}
}

View File

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

View File

@ -0,0 +1,10 @@
{
"parent": "quickiemod:block/sandsalpeter",
"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/stick",
"textures": {
"layer0": "quickiemod:item/stub"
}
}

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 743 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 435 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 959 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 604 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

@ -0,0 +1,12 @@
{
"replace": false,
"values": [
"quickiemod:oresulphor",
"quickiemod:oredeepslatesulphor",
"quickiemod:orenethersulphor",
"quickiemod:oresalpeter",
"quickiemod:oresandsalpeter",
"quickiemod:sandsalpeter",
"quickiemod:dirtsalpeter"
]
}

View File

@ -0,0 +1,15 @@
{
"type": "minecraft:blasting",
"group": "ores",
"ingredient": [
{
"item": "minecraft:dead_brain_coral_block"
}
],
"result": {
"id":"quickiemod:salpeter"
},
"count": 3,
"experience": 0.5,
"cookingtime": 200
}

View File

@ -0,0 +1,15 @@
{
"type": "minecraft:blasting",
"group": "ores",
"ingredient": [
{
"item": "minecraft:dead_bubble_coral_block"
}
],
"result": {
"id":"quickiemod:salpeter"
},
"count": 3,
"experience": 0.5,
"cookingtime": 200
}

View File

@ -0,0 +1,15 @@
{
"type": "minecraft:blasting",
"group": "ores",
"ingredient": [
{
"item": "minecraft:dead_fire_coral_block"
}
],
"result": {
"id":"quickiemod:salpeter"
},
"count": 3,
"experience": 0.5,
"cookingtime": 200
}

View File

@ -0,0 +1,15 @@
{
"type": "minecraft:blasting",
"group": "ores",
"ingredient": [
{
"item": "minecraft:dead_horn_coral_block"
}
],
"result": {
"id":"quickiemod:salpeter"
},
"count": 3,
"experience": 0.5,
"cookingtime": 200
}

View File

@ -0,0 +1,15 @@
{
"type": "minecraft:blasting",
"group": "ores",
"ingredient": [
{
"item": "minecraft:dead_tube_coral_block"
}
],
"result": {
"id":"quickiemod:salpeter"
},
"count": 3,
"experience": 0.5,
"cookingtime": 200
}

View File

@ -0,0 +1,11 @@
{
"type": "minecraft:campfire_cooking",
"ingredient": {
"item": "quickiemod:kelpstack"
},
"result": {
"id": "minecraft:dried_kelp_block"
},
"experience": 0.9,
"cookingtime": 615
}

View File

@ -0,0 +1,11 @@
{
"type": "minecraft:campfire_cooking",
"ingredient": {
"item": "quickiemod:stub"
},
"result": {
"id":"minecraft:torch"
},
"experience": 0.1,
"cookingtime": 20
}

View File

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

View File

@ -0,0 +1,17 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"sss",
"sss",
"sss"
],
"key": {
"s": {
"item": "quickiemod:sulphor"
}
},
"result": {
"id": "quickiemod:blocksulphor",
"count": 1
}
}

View File

@ -0,0 +1,15 @@
{
"type": "crafting_shaped",
"pattern": [
"cc",
"cc"
],
"key": {
"c": {
"item": "minecraft:carrot"
}
},
"result": {
"id": "quickiemod:carrotstack"
}
}

View File

@ -0,0 +1,17 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"kkk",
"kkk",
"kkk"
],
"key": {
"k": {
"item": "minecraft:kelp"
}
},
"result": {
"id": "quickiemod:kelpstack",
"count": 1
}
}

View File

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "quickiemod:carrotstack"
}
],
"result": {
"id": "minecraft:carrot",
"count": 4
}
}

View File

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

View File

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "minecraft:white_wool"
}
],
"result": {
"id": "minecraft:string",
"count": 4
}
}

View File

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "minecraft:stick"
}
],
"result": {
"id": "quickiemod:stub",
"count": 4
}
}

View File

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "quickiemod:blocksulphor"
}
],
"result": {
"id": "quickiemod:sulphor",
"count": 9
}
}

View File

@ -0,0 +1,15 @@
{
"type": "minecraft:smelting",
"group": "ores",
"ingredient": [
{
"item": "quickiemod:dirtsalpeter"
}
],
"result": {
"id":"quickiemod:salpeter"
},
"count": 1,
"experience": 0.5,
"cookingtime": 200
}

View File

@ -0,0 +1,15 @@
{
"type": "minecraft:smelting",
"group": "ores",
"ingredient": [
{
"item": "quickiemod:oresalpeter"
}
],
"result": {
"id":"quickiemod:salpeter"
},
"count": 1,
"experience": 0.5,
"cookingtime": 200
}

View File

@ -0,0 +1,15 @@
{
"type": "minecraft:smelting",
"group": "ores",
"ingredient": [
{
"item": "quickiemod:oresandsalpeter"
}
],
"result": {
"id":"quickiemod:salpeter"
},
"count": 1,
"experience": 0.5,
"cookingtime": 200
}

View File

@ -0,0 +1,15 @@
{
"type": "minecraft:smelting",
"group": "ores",
"ingredient": [
{
"item": "quickiemod:sandsalpeter"
}
],
"result": {
"id":"quickiemod:salpeter"
},
"count": 1,
"experience": 0.5,
"cookingtime": 200
}

Some files were not shown because too many files have changed in this diff Show More