Skip to content

Commit 3a2b644

Browse files
committed
chore: add support for 1.21
1 parent cc0a833 commit 3a2b644

File tree

4 files changed

+61
-0
lines changed

4 files changed

+61
-0
lines changed

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,3 +195,31 @@ jobs:
195195

196196
retry-attempts: 3
197197
retry-delay: 10000
198+
199+
- name: Publish Minecraft Mods 1.21
200+
uses: Kir-Antipov/mc-publish@v3.3
201+
with:
202+
modrinth-id: SB7oe4aB
203+
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
204+
205+
curseforge-id: 891699
206+
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
207+
208+
files: processed_artifacts/1.21/*.jar
209+
210+
name: v${{ inputs.version }} For Minecraft 1.21
211+
version: v${{ inputs.version }}
212+
version-type: ${{ inputs.release_type }}
213+
214+
loaders: fabric
215+
game-versions: '1.21'
216+
game-version-filter: any
217+
dependencies: |-
218+
carpet(required)
219+
fabric-api(required)
220+
221+
modrinth-changelog: 'Got full change logs in [GitHub](https://github.com/OptiJava/OptCarpetAddition/releases).'
222+
curseforge-changelog: 'Got full change logs in [GitHub](https://github.com/OptiJava/OptCarpetAddition/releases).'
223+
224+
retry-attempts: 3
225+
retry-delay: 10000

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ preprocess {
1111
def mc1193 = createNode('1.19.3' , 1_19_03, 'yarn')
1212
def mc1201 = createNode('1.20.1' , 1_20_01, 'yarn')
1313
def mc1204 = createNode('1.20.4' , 1_20_04, 'yarn')
14+
def mc1210 = createNode('1.21' , 1_21, 'yarn')
1415

1516
mc117 .link(mc118, null)
1617
mc118 .link(mc1193, null)
1718
mc1193.link(mc1201, null)
1819
mc1201.link(mc1204, null)
20+
mc1204.link(mc1210, null)
1921
}

versions/1.21/gradle.properties

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Fabric Properties
2+
# check these on https://fabricmc.net/versions.html?&version=1.20.1
3+
minecraft_version=1.21
4+
yarn_mappings=1.21+build.9
5+
6+
# Fabric Mod Metadata
7+
minecraft_requirement_version=1.21.x
8+
carpet_requirement_version=>=1.4.147
9+
10+
# Build Information
11+
# The target mc versions for the mod during mod publishing, separated with \n
12+
game_versions=1.21
13+
14+
# Dependencies
15+
fabric_version=0.100.8+1.21
16+
carpet_core_version=5425253
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
accessWidener v1 named
2+
accessible class net/minecraft/entity/mob/EndermanEntity$PickUpBlockGoal
3+
accessible class net/minecraft/entity/mob/EndermanEntity$PlaceBlockGoal
4+
mutable field net/minecraft/network/packet/c2s/play/ChatMessageC2SPacket chatMessage Ljava/lang/String;
5+
accessible field net/minecraft/network/packet/c2s/play/ChatMessageC2SPacket chatMessage Ljava/lang/String;
6+
accessible field net/minecraft/server/network/ServerLoginNetworkHandler server Lnet/minecraft/server/MinecraftServer;
7+
accessible method net/minecraft/entity/Entity unsetRemoved ()V
8+
accessible method net/minecraft/server/network/ServerPlayerEntity worldChanged (Lnet/minecraft/server/world/ServerWorld;)V
9+
accessible class net/minecraft/world/block/ChainRestrictedNeighborUpdater$Entry
10+
accessible class net/minecraft/world/block/ChainRestrictedNeighborUpdater$SimpleEntry
11+
accessible class net/minecraft/world/block/ChainRestrictedNeighborUpdater$StateReplacementEntry
12+
accessible class net/minecraft/world/block/ChainRestrictedNeighborUpdater$StatefulEntry
13+
accessible class net/minecraft/world/block/ChainRestrictedNeighborUpdater$SixWayEntry
14+
accessible field net/minecraft/world/block/ChainRestrictedNeighborUpdater$SixWayEntry sourceBlock Lnet/minecraft/block/Block;
15+
accessible field net/minecraft/world/block/ChainRestrictedNeighborUpdater$SixWayEntry pos Lnet/minecraft/util/math/BlockPos;

0 commit comments

Comments
 (0)