Updated code and dependencies for minecraft 1.21.3
This commit is contained in:
parent
c97416d113
commit
5df8395298
6 changed files with 15 additions and 29 deletions
11
README.md
11
README.md
|
@ -1,15 +1,6 @@
|
||||||
# Hard Boiled
|
# Hard Boiled
|
||||||
|
|
||||||
This Minecraft mod allows cooking egg into hard-boiled egg, using
|
This Minecraft Fabric 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
|
|
||||||
|
|
|
@ -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.1
|
minecraft_version=1.21.3
|
||||||
yarn_mappings=1.21.1+build.3
|
yarn_mappings=1.21.3+build.2
|
||||||
loader_version=0.16.5
|
loader_version=0.16.9
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=1.0.1
|
mod_version=1.0.3
|
||||||
maven_group=net.chaoticbyte.hardboiled
|
maven_group=net.chaoticbyte.hardboiled
|
||||||
archives_base_name=hardboiled
|
archives_base_name=hardboiled
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
fabric_version=0.104.0+1.21.1
|
fabric_version=0.107.0+1.21.3
|
|
@ -2,22 +2,21 @@ package net.chaoticbyte.hardboiled;
|
||||||
|
|
||||||
import net.minecraft.component.type.FoodComponent;
|
import net.minecraft.component.type.FoodComponent;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.registry.Registries;
|
import net.minecraft.item.Items;
|
||||||
import net.minecraft.registry.Registry;
|
import net.minecraft.registry.RegistryKey;
|
||||||
|
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)
|
.nutrition(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);
|
||||||
Identifier itemId = Identifier.of(HardBoiled.MOD_ID, id);
|
return Items.register(regKey, Item::new, settings);
|
||||||
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,8 +1,6 @@
|
||||||
{
|
{
|
||||||
"type": "minecraft:campfire_cooking",
|
"type": "minecraft:campfire_cooking",
|
||||||
"ingredient": {
|
"ingredient": "minecraft:egg",
|
||||||
"item": "minecraft:egg"
|
|
||||||
},
|
|
||||||
"result": {
|
"result": {
|
||||||
"id": "hardboiled:hardboiled_egg"
|
"id": "hardboiled:hardboiled_egg"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{
|
{
|
||||||
"type": "minecraft:smelting",
|
"type": "minecraft:smelting",
|
||||||
"ingredient": {
|
"ingredient": "minecraft:egg",
|
||||||
"item": "minecraft:egg"
|
|
||||||
},
|
|
||||||
"result": {
|
"result": {
|
||||||
"id": "hardboiled:hardboiled_egg"
|
"id": "hardboiled:hardboiled_egg"
|
||||||
},
|
},
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
},
|
},
|
||||||
"mixins": [],
|
"mixins": [],
|
||||||
"depends": {
|
"depends": {
|
||||||
"fabricloader": ">=0.16.5",
|
"fabricloader": ">=0.16.9",
|
||||||
"minecraft": "~1.21.1",
|
"minecraft": "1.21.3",
|
||||||
"java": ">=21",
|
"java": ">=21",
|
||||||
"fabric-api": "*"
|
"fabric-api": "*"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue