Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class BlockNames {
public static final String WALNUT_CROP = "walnut_crop";
public static final String CINNAMON_LEAVES = "cinnamon_leaves";
public static final String SALT_ORE = "salt_ore";
public static final String CHOCOLATE_BLOCK = "chocolate_block";
public static final String ARTICHOKE_CROP = "artichoke_crop";
public static final String ASPARAGUS_CROP = "asparagus_crop";
public static final String BARLEY_CROP = "barley_crop";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ public class ItemNames {
public static final String COOKING_POT = "cooking_pot";
public static final String MORTAR_AND_PESTLE = "mortar_and_pestle";
public static final String SALT_ORE = "salt_ore";
public static final String CHOCOLATE_BLOCK = "chocolate_block";

public static final String BURRITO = "burrito";
public static final String TOSTADA = "tostada";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ public class ItemNamesV2 {
public static final String COOKING_POT = "cooking_pot";
public static final String MORTAR_AND_PESTLE = "mortar_and_pestle";
public static final String SALT_ORE = "salt_ore";
public static final String CHOCOLATE_BLOCK = "chocolate_block";

public static final String BURRITO = "burrito";
public static final String TOSTADA = "tostada";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,9 @@ public class Content {
public static Block SALT_ORE_BLOCK = new Block(BlockBehaviour.Properties.of(Material.SAND).strength(0.5F).sound(SoundType.SAND));
public static final Item SALT_ORE = new ItemNameBlockItem(SALT_ORE_BLOCK, createGroup());

public static Block CHOCOLATE_BLOCK_BLOCK = new Block(BlockBehaviour.Properties.of(Material.CAKE).strength(1F).sound(SoundType.STONE));
public static final Item CHOCOLATE_BLOCK = new ItemNameBlockItem(CHOCOLATE_BLOCK_BLOCK, createGroup());

public static Item GUIDE;

public static void registerBlocks(RegisterFunction<Block> register) {
Expand Down Expand Up @@ -632,6 +635,7 @@ public static void registerItems(RegisterFunction<Item> register) {
register.register(createIdentifier(ItemNamesV2.THE_BIG_BREAKFAST), THE_BIG_BREAKFAST);

register.register(createIdentifier(ItemNamesV2.SALT_ORE), SALT_ORE);
register.register(createIdentifier(ItemNamesV2.CHOCOLATE_BLOCK), CHOCOLATE_BLOCK);
}

public static Stream<Item> createCropStream() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"variants": {
"": {
"model": "croptopia:block/chocolate_block"
}
}
}

1 change: 1 addition & 0 deletions shared/src/main/resources/assets/croptopia/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@
"item.croptopia.guide": "Croptopia",

"item.croptopia.salt_ore": "Salt Ore",
"item.croptopia.chocolate_block": "Chocolate Block",

"block.croptopia.salt_ore": "Salt Ore",
"block.croptopia.apple_crop": "Apple Crop",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"parent": "block/cube_all",
"textures": {
"all": "croptopia:block/chocolate_block"
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"parent": "croptopia:block/chocolate_block"
}

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": [
"croptopia:chocolate_block"
]
},
"criteria": {
"has_chocolate": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"items": ["croptopia:chocolate"]
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "croptopia:chocolate_block"
}
}
},
"requirements": [
[
"has_chocolate",
"has_the_recipe"
]
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": [
"croptopia:chocolate_from_block"
]
},
"criteria": {
"has_chocolate_block": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"items": ["croptopia:chocolate_block"]
}
]
}
},
"has_the_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "croptopia:chocolate_from_block"
}
}
},
"requirements": [
[
"has_chocolate_block",
"has_the_recipe"
]
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "croptopia:chocolate_block"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "croptopia:chocolate"
},
{
"item": "croptopia:chocolate"
},
{
"item": "croptopia:chocolate"
},
{
"item": "croptopia:chocolate"
},
{
"item": "croptopia:chocolate"
},
{
"item": "croptopia:chocolate"
},
{
"item": "croptopia:chocolate"
},
{
"item": "croptopia:chocolate"
},
{
"item": "croptopia:chocolate"
}
],
"result": {
"item": "croptopia:chocolate_block",
"count": 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "croptopia:chocolate_block"
}
],
"result": {
"item": "croptopia:chocolate",
"count": 9
}
}