Initial port to 1.19
This commit is contained in:
parent
3bd253dcdd
commit
4872239044
|
|
@ -3,7 +3,6 @@ package com.example.examplemod;
|
||||||
import com.example.examplemod.platform.Services;
|
import com.example.examplemod.platform.Services;
|
||||||
import net.minecraft.core.Registry;
|
import net.minecraft.core.Registry;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
import net.minecraft.network.chat.TextComponent;
|
|
||||||
import net.minecraft.world.food.FoodProperties;
|
import net.minecraft.world.food.FoodProperties;
|
||||||
import net.minecraft.world.item.ItemStack;
|
import net.minecraft.world.item.ItemStack;
|
||||||
import net.minecraft.world.item.Items;
|
import net.minecraft.world.item.Items;
|
||||||
|
|
@ -33,8 +32,8 @@ public class CommonClass {
|
||||||
|
|
||||||
if (food != null) {
|
if (food != null) {
|
||||||
|
|
||||||
tooltip.add(new TextComponent("Nutrition: " + food.getNutrition()));
|
tooltip.add(Component.literal("Nutrition: " + food.getNutrition()));
|
||||||
tooltip.add(new TextComponent("Saturation: " + food.getSaturationModifier()));
|
tooltip.add(Component.literal("Saturation: " + food.getSaturationModifier()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,9 +27,9 @@
|
||||||
],
|
],
|
||||||
|
|
||||||
"depends": {
|
"depends": {
|
||||||
"fabricloader": ">=0.13",
|
"fabricloader": ">=0.14",
|
||||||
"fabric": "*",
|
"fabric": "*",
|
||||||
"minecraft": "1.18.x",
|
"minecraft": "1.19.x",
|
||||||
"java": ">=17"
|
"java": ">=17"
|
||||||
},
|
},
|
||||||
"suggests": {
|
"suggests": {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
# The name of the mod loader type to load - for regular FML @Mod mods it should be javafml
|
# The name of the mod loader type to load - for regular FML @Mod mods it should be javafml
|
||||||
modLoader="javafml" #mandatory
|
modLoader="javafml" #mandatory
|
||||||
# A version range to match for said mod loader - for regular FML @Mod it will be the forge version
|
# A version range to match for said mod loader - for regular FML @Mod it will be the forge version
|
||||||
loaderVersion="[40,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
|
loaderVersion="[41,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
|
||||||
# The license for you mod. This is mandatory metadata and allows for easier comprehension of your redistributive properties.
|
# The license for you mod. This is mandatory metadata and allows for easier comprehension of your redistributive properties.
|
||||||
# Review your options at https://choosealicense.com/. All rights reserved is the default copyright stance, and is thus the default here.
|
# Review your options at https://choosealicense.com/. All rights reserved is the default copyright stance, and is thus the default here.
|
||||||
license="All rights reserved"
|
license="All rights reserved"
|
||||||
|
|
@ -47,7 +47,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mollis lacinia magn
|
||||||
# Does this dependency have to exist - if not, ordering below must be specified
|
# Does this dependency have to exist - if not, ordering below must be specified
|
||||||
mandatory=true #mandatory
|
mandatory=true #mandatory
|
||||||
# The version range of the dependency
|
# The version range of the dependency
|
||||||
versionRange="[38,)" #mandatory
|
versionRange="[41,)" #mandatory
|
||||||
# An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
|
# An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
|
||||||
ordering="NONE"
|
ordering="NONE"
|
||||||
# Side this dependency is applied on - BOTH, CLIENT or SERVER
|
# Side this dependency is applied on - BOTH, CLIENT or SERVER
|
||||||
|
|
@ -57,6 +57,6 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mollis lacinia magn
|
||||||
modId="minecraft"
|
modId="minecraft"
|
||||||
mandatory=true
|
mandatory=true
|
||||||
# This version range declares a minimum of the current minecraft version up to but not including the next major version
|
# This version range declares a minimum of the current minecraft version up to but not including the next major version
|
||||||
versionRange="[1.18,1.19)"
|
versionRange="[1.19,1.20)"
|
||||||
ordering="NONE"
|
ordering="NONE"
|
||||||
side="BOTH"
|
side="BOTH"
|
||||||
|
|
|
||||||
|
|
@ -3,18 +3,18 @@ version=1.0.0
|
||||||
group=com.example.examplemod
|
group=com.example.examplemod
|
||||||
|
|
||||||
# Common
|
# Common
|
||||||
minecraft_version=1.18.2
|
minecraft_version=1.19
|
||||||
common_runs_enabled=false
|
common_runs_enabled=false
|
||||||
common_client_run_name=Common Client
|
common_client_run_name=Common Client
|
||||||
common_server_run_name=Common Server
|
common_server_run_name=Common Server
|
||||||
|
|
||||||
# Forge
|
# Forge
|
||||||
forge_version=40.0.54
|
forge_version=41.0.1
|
||||||
//forge_ats_enabled=true
|
//forge_ats_enabled=true
|
||||||
|
|
||||||
# Fabric
|
# Fabric
|
||||||
fabric_version=0.51.0+1.18.2
|
fabric_version=0.55.2+1.19
|
||||||
fabric_loader_version=0.13.3
|
fabric_loader_version=0.14.6
|
||||||
|
|
||||||
# Mod options
|
# Mod options
|
||||||
mod_name=MultiLoader
|
mod_name=MultiLoader
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user