Skip to content

Commit

Permalink
Scraped the Coffee Machine Idea
Browse files Browse the repository at this point in the history
  • Loading branch information
pluto7073 committed Apr 10, 2022
1 parent 4968c59 commit 67cdf79
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 148 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

14 changes: 1 addition & 13 deletions src/main/java/ml/pluto7073/plutoscoffee/registry/ModBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,22 @@

import ml.pluto7073.plutoscoffee.PlutosCoffee;
import ml.pluto7073.plutoscoffee.blocks.CoffeeCrop;
import ml.pluto7073.plutoscoffee.blocks.CoffeeMachineBlock;
import ml.pluto7073.plutoscoffee.blocks.CoffeeMachineBlockEntity;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.block.Block;
import net.minecraft.block.Material;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.block.entity.BlockEntityType;
import net.minecraft.item.AliasedBlockItem;
import net.minecraft.item.BlockItem;
import net.minecraft.item.Item;
import net.minecraft.item.ItemGroup;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;

public class ModBlocks {

public static final Block COFFEE_CROP = new CoffeeCrop();
public static final BlockEntityType COFFEE_MACHINE_BLOCK_ENTITY;
public static final Block COFFEE_MACHINE = new CoffeeMachineBlock(FabricBlockSettings.of(Material.METAL));

static {
COFFEE_MACHINE_BLOCK_ENTITY =
Registry.register(Registry.BLOCK_ENTITY_TYPE, new Identifier(PlutosCoffee.MOD_ID, "coffee_machine"),
BlockEntityType.Builder.create(CoffeeMachineBlockEntity::new, COFFEE_MACHINE).build(null));

}

public static void registerBlocks() {
Registry.register(Registry.BLOCK, new Identifier(PlutosCoffee.MOD_ID, "coffee_plant"), COFFEE_CROP);
Registry.register(Registry.BLOCK, new Identifier(PlutosCoffee.MOD_ID, "coffee_machine"), COFFEE_MACHINE);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@

public class ModStats {

public static final Identifier INTERACT_WITH_COFFEE_MACHINE = new Identifier(PlutosCoffee.MOD_ID, "interact_with_coffee_machine");
public static final Identifier DRINK_COFFEE = new Identifier(PlutosCoffee.MOD_ID, "drink_coffee");

public static void registerStats() {
Registry.register(Registry.CUSTOM_STAT, INTERACT_WITH_COFFEE_MACHINE.getPath(), INTERACT_WITH_COFFEE_MACHINE);
Stats.CUSTOM.getOrCreateStat(INTERACT_WITH_COFFEE_MACHINE, StatFormatter.DEFAULT);
Registry.register(Registry.CUSTOM_STAT, DRINK_COFFEE.getPath(), DRINK_COFFEE);
Stats.CUSTOM.getOrCreateStat(DRINK_COFFEE, StatFormatter.DEFAULT);
}
Expand Down

0 comments on commit 67cdf79

Please sign in to comment.