Skip to content

Commit

Permalink
Update to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Killarexe committed Jun 14, 2024
1 parent 7cc8954 commit d3cd2bc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ public class CEMod {
public static final String MOD_ID = "copper_extension";

public static ResourceLocation id(String id) {
return new ResourceLocation(MOD_ID, id);
return ResourceLocation.fromNamespaceAndPath(MOD_ID, id);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class CEItems {

public static final FabricScrapableItem WAXED_COPPER_INGOT = createItem(
"waxed_copper_ingot",
new FabricScrapableItem(new Item.Properties(), new ResourceLocation("minecraft", "copper_ingot"))
new FabricScrapableItem(new Item.Properties(), ResourceLocation.withDefaultNamespace("copper_ingot"))
);

public static final FabricScrapableItem WAXED_EXPOSED_COPPER_INGOT = createItem(
Expand All @@ -38,7 +38,7 @@ public class CEItems {

public static final FabricRustableItem EXPOSED_COPPER_INGOT = createItem("exposed_copper_ingot", new FabricRustableItem(
new Item.Properties(),
new ResourceLocation("minecraft", "copper_ingot"),
ResourceLocation.withDefaultNamespace( "copper_ingot"),
CEMod.id("waxed_exposed_copper_ingot"),
CEMod.id("weathered_copper_ingot"))
);
Expand All @@ -54,7 +54,7 @@ public class CEItems {

public static void register() {
ITEMS.forEach((id, item) -> {
Registry.register(BuiltInRegistries.ITEM, new ResourceLocation(CEMod.MOD_ID, id), item);
Registry.register(BuiltInRegistries.ITEM, CEMod.id(id), item);
ItemGroupEvents.modifyEntriesEvent(CreativeModeTabs.INGREDIENTS).register((group) -> {
group.accept(item);
});
Expand Down
14 changes: 7 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ org.gradle.parallel=true
org.gradle.deamon=false

#Common settings
minecraft_version=1.20.6
minecraft_version=1.21
enabled_platforms=fabric,neoforge

mod_id=copper_extension
mod_name=Copper Extension
mod_version=1.3.0
mod_version=1.3.1

mod_contributors=junshengxie
mod_license=CC-BY-4.0
Expand All @@ -23,13 +23,13 @@ maven_group=github.killarexe.copper_extension

#Fabric settings
fabric_loader_version=0.15.11
fabric_api_version=0.99.4+1.20.6
fabric_api_version=0.100.1+1.21
fabric_mod_sources=https://github.com/Killarexe/Copper-Extension
fabric_mod_main=github.killarexe.copper_extension.fabric.CEFabric

#Forge settings
neoforge_version=20.6.99-beta
neoforge_minecraft_version_range=[1.20.6,1.21)
neoforge_version_range=[20.6,)
neoforge_loader_version_range=[2,)
neoforge_version=21.0.0-beta
neoforge_minecraft_version_range=[1.21,1.22)
neoforge_version_range=[21.0.0-beta,)
neoforge_loader_version_range=[4,)
neoforge_update_json_url=https://raw.githubusercontent.com/Killarexe/Copper-Extension/master/neoforge/update.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class CEItems {

public static final Supplier<NeoForgeScrapableItem> WAXED_COPPER_INGOT = ITEMS.register(
"waxed_copper_ingot",
() -> new NeoForgeScrapableItem(new Item.Properties(), new ResourceLocation( "copper_ingot"))
() -> new NeoForgeScrapableItem(new Item.Properties(), ResourceLocation.withDefaultNamespace( "copper_ingot"))
);

public static final Supplier<NeoForgeScrapableItem> WAXED_EXPOSED_COPPER_INGOT = ITEMS.register(
Expand All @@ -39,7 +39,7 @@ public class CEItems {
"exposed_copper_ingot",
() -> new NeoForgeRustableItem(
new Item.Properties(),
new ResourceLocation("copper_ingot"),
ResourceLocation.withDefaultNamespace("copper_ingot"),
CEMod.id("waxed_exposed_copper_ingot"),
CEMod.id("weathered_copper_ingot")
)
Expand Down

0 comments on commit d3cd2bc

Please sign in to comment.