Compare commits
3 commits
1.21.4
...
1.0.1-1.20
Author | SHA1 | Date | |
---|---|---|---|
99d16627ea | |||
2a7532be2b | |||
b441a39323 |
10 changed files with 42 additions and 38 deletions
11
README.md
11
README.md
|
@ -1,6 +1,15 @@
|
||||||
# Hard Boiled
|
# Hard Boiled
|
||||||
|
|
||||||
This Minecraft Fabric mod allows cooking egg into hard-boiled egg, using
|
This Minecraft mod allows cooking egg into hard-boiled egg, using
|
||||||
|
|
||||||
- a campfire
|
- a campfire
|
||||||
- a furnace
|
- a furnace
|
||||||
|
|
||||||
|
## Supported Minecraft Versions / Mod Loaders
|
||||||
|
|
||||||
|
This is a Fabric-only mod.
|
||||||
|
|
||||||
|
The following Minecraft versions are supported:
|
||||||
|
|
||||||
|
- 1.20.1
|
||||||
|
- 1.21.1
|
||||||
|
|
|
@ -38,7 +38,7 @@ processResources {
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
tasks.withType(JavaCompile).configureEach {
|
||||||
it.options.release = 21
|
it.options.release = 17
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
|
@ -47,8 +47,8 @@ java {
|
||||||
// If you remove this line, sources will not be generated.
|
// If you remove this line, sources will not be generated.
|
||||||
withSourcesJar()
|
withSourcesJar()
|
||||||
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_21
|
sourceCompatibility = JavaVersion.VERSION_17
|
||||||
targetCompatibility = JavaVersion.VERSION_21
|
targetCompatibility = JavaVersion.VERSION_17
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
|
|
|
@ -4,14 +4,14 @@ org.gradle.parallel=true
|
||||||
|
|
||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
# check these on https://fabricmc.net/develop
|
# check these on https://fabricmc.net/develop
|
||||||
minecraft_version=1.21.4
|
minecraft_version=1.20.1
|
||||||
yarn_mappings=1.21.4+build.8
|
yarn_mappings=1.20.1+build.10
|
||||||
loader_version=0.16.10
|
loader_version=0.16.5
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=1.0.4
|
mod_version=1.0.1
|
||||||
maven_group=net.chaoticbyte.hardboiled
|
maven_group=net.chaoticbyte.hardboiled
|
||||||
archives_base_name=hardboiled
|
archives_base_name=hardboiled
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
fabric_version=0.118.5+1.21.4
|
fabric_version=0.92.2+1.20.1
|
|
@ -1,22 +1,23 @@
|
||||||
package net.chaoticbyte.hardboiled;
|
package net.chaoticbyte.hardboiled;
|
||||||
|
|
||||||
import net.minecraft.component.type.FoodComponent;
|
import net.minecraft.item.FoodComponent;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.Items;
|
import net.minecraft.registry.Registries;
|
||||||
import net.minecraft.registry.RegistryKey;
|
import net.minecraft.registry.Registry;
|
||||||
import net.minecraft.registry.RegistryKeys;
|
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
|
|
||||||
public class HardBoiledItems {
|
public class HardBoiledItems {
|
||||||
// default food component
|
// default food component
|
||||||
public static final FoodComponent foodComponent = new FoodComponent.Builder()
|
public static final FoodComponent foodComponent = new FoodComponent.Builder()
|
||||||
.nutrition(3)
|
.hunger(3)
|
||||||
|
.snack()
|
||||||
.build();
|
.build();
|
||||||
// register item
|
// register item
|
||||||
public static Item register(String id) {
|
public static Item register(String id) {
|
||||||
final RegistryKey<Item> regKey = RegistryKey.of(RegistryKeys.ITEM, Identifier.of(HardBoiled.MOD_ID, id));
|
|
||||||
Item.Settings settings = new Item.Settings().food(foodComponent);
|
Item.Settings settings = new Item.Settings().food(foodComponent);
|
||||||
return Items.register(regKey, Item::new, settings);
|
Identifier itemId = Identifier.of(HardBoiled.MOD_ID, id);
|
||||||
|
Item item = new Item(settings);
|
||||||
|
return Registry.register(Registries.ITEM, itemId, item);
|
||||||
}
|
}
|
||||||
// dummy init method
|
// dummy init method
|
||||||
public static void init() {}
|
public static void init() {}
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"model": {
|
|
||||||
"type": "minecraft:model",
|
|
||||||
"model": "hardboiled:item/hardboiled_egg"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "minecraft:item/generated",
|
"parent": "item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "hardboiled:item/hardboiled_egg"
|
"layer0": "hardboiled:item/hardboiled_egg"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
{
|
|
||||||
"type": "minecraft:smelting",
|
|
||||||
"ingredient": "minecraft:egg",
|
|
||||||
"result": {
|
|
||||||
"id": "hardboiled:hardboiled_egg"
|
|
||||||
},
|
|
||||||
"experience": 0.25,
|
|
||||||
"cookingtime": 200
|
|
||||||
}
|
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
"type": "minecraft:campfire_cooking",
|
"type": "minecraft:campfire_cooking",
|
||||||
"ingredient": "minecraft:egg",
|
"ingredient": {
|
||||||
"result": {
|
"item": "minecraft:egg"
|
||||||
"id": "hardboiled:hardboiled_egg"
|
|
||||||
},
|
},
|
||||||
|
"result": "hardboiled:hardboiled_egg",
|
||||||
"experience": 0.25,
|
"experience": 0.25,
|
||||||
"cookingtime": 200
|
"cookingtime": 200
|
||||||
}
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"type": "minecraft:smelting",
|
||||||
|
"ingredient": {
|
||||||
|
"item": "minecraft:egg"
|
||||||
|
},
|
||||||
|
"result": "hardboiled:hardboiled_egg",
|
||||||
|
"experience": 0.25,
|
||||||
|
"cookingtime": 200
|
||||||
|
}
|
|
@ -21,9 +21,9 @@
|
||||||
},
|
},
|
||||||
"mixins": [],
|
"mixins": [],
|
||||||
"depends": {
|
"depends": {
|
||||||
"fabricloader": ">=0.16.10",
|
"fabricloader": ">=0.16.0",
|
||||||
"minecraft": "1.21.4",
|
"minecraft": "~1.20.1",
|
||||||
"java": ">=21",
|
"java": ">=17",
|
||||||
"fabric-api": "*"
|
"fabric-api": "*"
|
||||||
},
|
},
|
||||||
"suggests": {}
|
"suggests": {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue