Compare commits
2 commits
1.0.2-1.20
...
1.21.1
Author | SHA1 | Date | |
---|---|---|---|
c97416d113 | |||
1d1510eb0f |
6 changed files with 18 additions and 14 deletions
|
@ -38,7 +38,7 @@ processResources {
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
tasks.withType(JavaCompile).configureEach {
|
||||||
it.options.release = 17
|
it.options.release = 21
|
||||||
}
|
}
|
||||||
|
|
||||||
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_17
|
sourceCompatibility = JavaVersion.VERSION_21
|
||||||
targetCompatibility = JavaVersion.VERSION_17
|
targetCompatibility = JavaVersion.VERSION_21
|
||||||
}
|
}
|
||||||
|
|
||||||
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.20.1
|
minecraft_version=1.21.1
|
||||||
yarn_mappings=1.20.1+build.10
|
yarn_mappings=1.21.1+build.3
|
||||||
loader_version=0.16.5
|
loader_version=0.16.5
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=1.0.2
|
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.92.2+1.20.1
|
fabric_version=0.104.0+1.21.1
|
|
@ -1,6 +1,6 @@
|
||||||
package net.chaoticbyte.hardboiled;
|
package net.chaoticbyte.hardboiled;
|
||||||
|
|
||||||
import net.minecraft.item.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.registry.Registries;
|
||||||
import net.minecraft.registry.Registry;
|
import net.minecraft.registry.Registry;
|
||||||
|
@ -9,7 +9,7 @@ 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()
|
||||||
.hunger(3)
|
.nutrition(3)
|
||||||
.snack()
|
.snack()
|
||||||
.build();
|
.build();
|
||||||
// register item
|
// register item
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
"ingredient": {
|
"ingredient": {
|
||||||
"item": "minecraft:egg"
|
"item": "minecraft:egg"
|
||||||
},
|
},
|
||||||
"result": "hardboiled:hardboiled_egg",
|
"result": {
|
||||||
|
"id": "hardboiled:hardboiled_egg"
|
||||||
|
},
|
||||||
"experience": 0.25,
|
"experience": 0.25,
|
||||||
"cookingtime": 200
|
"cookingtime": 200
|
||||||
}
|
}
|
|
@ -3,7 +3,9 @@
|
||||||
"ingredient": {
|
"ingredient": {
|
||||||
"item": "minecraft:egg"
|
"item": "minecraft:egg"
|
||||||
},
|
},
|
||||||
"result": "hardboiled:hardboiled_egg",
|
"result": {
|
||||||
|
"id": "hardboiled:hardboiled_egg"
|
||||||
|
},
|
||||||
"experience": 0.25,
|
"experience": 0.25,
|
||||||
"cookingtime": 200
|
"cookingtime": 200
|
||||||
}
|
}
|
|
@ -21,9 +21,9 @@
|
||||||
},
|
},
|
||||||
"mixins": [],
|
"mixins": [],
|
||||||
"depends": {
|
"depends": {
|
||||||
"fabricloader": ">=0.16.0",
|
"fabricloader": ">=0.16.5",
|
||||||
"minecraft": "1.20.1",
|
"minecraft": "~1.21.1",
|
||||||
"java": ">=17",
|
"java": ">=21",
|
||||||
"fabric-api": "*"
|
"fabric-api": "*"
|
||||||
},
|
},
|
||||||
"suggests": {}
|
"suggests": {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue