Skip to content

Commit

Permalink
Version for 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
mt1006 committed Jun 15, 2024
1 parent e9908b1 commit 4e97c7f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dependencies
mappings loom.layered()
{
officialMojangMappings()
parchment("org.parchmentmc.data:parchment-${project.minecraft_version}:${project.mappings_version}@zip")
parchment("org.parchmentmc.data:parchment-${project.mappings_version}@zip")
}

modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ org.gradle.parallel=true
# Fabric Properties
# https://fabricmc.net/develop
# https://parchmentmc.org/docs/getting-started
minecraft_version=1.20.6
minecraft_version=1.21
loader_version=0.15.11
mappings_version=2024.05.01
mappings_version=1.20.6:2024.06.02

# Mod Properties
mod_version=1.1
maven_group=com.mt1006.irondoorkey
archives_base_name=IronDoorKey

# Dependencies
fabric_version=0.99.0+1.20.6
fabric_version=0.100.1+1.21
6 changes: 3 additions & 3 deletions src/main/java/com/mt1006/irondoorkey/IronDoorKeyMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ public class IronDoorKeyMod implements ModInitializer
{
public static final String MOD_ID = "irondoorkey";
public static final String VERSION = "1.1";
public static final String FOR_VERSION = "1.20.6";
public static final String FOR_VERSION = "1.21";
public static final String FOR_LOADER = "Fabric";
public static final Logger LOGGER = LogUtils.getLogger();

public static final Item ITEM_IRON_DOOR_KEY = new IronDoorKeyItem();
public static final TagKey<Block> OPENABLE = TagKey.create(Registries.BLOCK, new ResourceLocation(MOD_ID, "openable"));
public static final TagKey<Block> OPENABLE = TagKey.create(Registries.BLOCK, ResourceLocation.fromNamespaceAndPath(MOD_ID, "openable"));

@Override public void onInitialize()
{
LOGGER.info("{} - Author: mt1006", getFullName());
Registry.register(BuiltInRegistries.ITEM, new ResourceLocation(MOD_ID, "iron_door_key"), ITEM_IRON_DOOR_KEY);
Registry.register(BuiltInRegistries.ITEM, ResourceLocation.fromNamespaceAndPath(MOD_ID, "iron_door_key"), ITEM_IRON_DOOR_KEY);

ItemGroupEvents.modifyEntriesEvent(CreativeModeTabs.TOOLS_AND_UTILITIES)
.register(content -> content.accept(ITEM_IRON_DOOR_KEY));
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

"depends":
{
"minecraft": "~1.20.5",
"minecraft": ">=1.21",
"fabricloader": ">=0.15.0",
"fabric-api": "*",
"java": ">=21"
Expand Down

0 comments on commit 4e97c7f

Please sign in to comment.