Skip to content

Commit

Permalink
feat: 1.21~1.21.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenlige committed Nov 28, 2024
1 parent 3e9e22f commit 19b68e1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 39 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

github-token: ${{ secrets.GAYHUB_TOKEN }}
github-commitish: 1.21

version-type: beta
loaders: ["fabric", "quilt"]
30 changes: 6 additions & 24 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,19 @@ org.gradle.parallel=true

# Fabric Properties
# check these on https://fabricmc.net/develop

# 1.21.3
minecraft_version=1.21.3
yarn_mappings=1.21.3+build.2

# 1.21.1
#minecraft_version=1.21.1
#yarn_mappings=1.21.1+build.3

# shared
minecraft_version=1.21.1
yarn_mappings=1.21.1+build.3
loader_version=0.16.9

# Mod Properties
mod_version=0.3.0+1.21.2
mod_version=0.3.0+1.21
maven_group=com.github.zhenlige.xennote
archives_base_name=xennote

# Dependencies

# 1.21.3
fabric_version=0.107.0+1.21.3
cloth_version=16.0.141
modmenu_version=12.0.0-beta.1

# 1.21.1
#fabric_version=0.106.0+1.21.1
#cloth_version=15.0.140
#modmenu_version=11.0.3

# shared
conditional_mixin_version=0.6.3
fabric_version=0.110.0+1.21.1
cloth_version=15.0.140
modmenu_version=11.0.3

#loom_libraries_base=https://bmclapi2.bangbang93.com/maven/
#loom_resources_base=https://bmclapi2.bangbang93.com/assets/
Expand Down
14 changes: 3 additions & 11 deletions src/main/java/com/github/zhenlige/xennote/Xennote.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.github.zhenlige.xennote.payload.ClientInitPayload;
import com.github.zhenlige.xennote.payload.UpdateTuningPayload;
import com.github.zhenlige.xennote.payload.BlockTuningPayload;
import com.google.common.collect.ImmutableSet;
import com.mojang.brigadier.arguments.StringArgumentType;
import com.mojang.brigadier.exceptions.DynamicCommandExceptionType;
import net.fabricmc.api.ModInitializer;
Expand Down Expand Up @@ -45,18 +44,11 @@ public class Xennote implements ModInitializer {
public static final String MOD_ID = "xennote";
public static final Logger GLOBAL_LOGGER = LoggerFactory.getLogger(MOD_ID + " global");
private static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
public static final XenNoteBlock NOTE_BLOCK = new XenNoteBlock(
Block.Settings.copy(Blocks.NOTE_BLOCK)
.registryKey(RegistryKey.of(RegistryKeys.BLOCK, Identifier.of(MOD_ID, "note_block")))
);
public static final BlockItem NOTE_BLOCK_ITEM = new BlockItem(NOTE_BLOCK,
new Item.Settings()
.useBlockPrefixedTranslationKey()
.registryKey(RegistryKey.of(RegistryKeys.ITEM, Identifier.of(MOD_ID, "note_block")))
);
public static final XenNoteBlock NOTE_BLOCK = new XenNoteBlock(Block.Settings.copy(Blocks.NOTE_BLOCK));
public static final BlockItem NOTE_BLOCK_ITEM = new BlockItem(NOTE_BLOCK, new Item.Settings());
public static final BlockEntityType<XenNoteBlockEntity> NOTE_BLOCK_ENTITY = Registry.register(
Registries.BLOCK_ENTITY_TYPE, Identifier.of(MOD_ID, "note_block_entity"),
new BlockEntityType<>(XenNoteBlockEntity::new, ImmutableSet.of(NOTE_BLOCK))
BlockEntityType.Builder.create(XenNoteBlockEntity::new, NOTE_BLOCK).build()
);
public static final DynamicCommandExceptionType INVALID_TUNING_ID = new DynamicCommandExceptionType(
o -> Text.translatable("argument.tuning.invalid_id", o)
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 @@ -35,7 +35,7 @@
],
"depends": {
"fabricloader": "*",
"minecraft": ">=1.21.2-",
"minecraft": ">=1.21- <1.21.2-",
"java": ">=21",
"fabric-api": "*"
},
Expand Down
4 changes: 1 addition & 3 deletions src/main/resources/xennote.accesswidener
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
accessWidener v2 named
accessible class net/minecraft/block/entity/BlockEntityType$BlockEntityFactory
accessible method net/minecraft/block/entity/BlockEntityType <init> (Lnet/minecraft/block/entity/BlockEntityType$BlockEntityFactory;Ljava/util/Set;)V
accessWidener v2 named

0 comments on commit 19b68e1

Please sign in to comment.