Skip to content

Commit

Permalink
update minecraft 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Yancey2023 committed Jul 11, 2024
1 parent c9fee6e commit 7cb3b78
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ English | [简体中文](README_CN.md)

CommandFallingBlock, a fabric mod in minecraft, adds `fallingblock` command to summon falling block conveniently.

supported minecraft versions: `1.16.5`, `1.18.2`, `1.20.*`
supported minecraft versions: `1.16.5`, `1.18.2`, `1.20.*`, `1.21`

## How to use

Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

CommandFallingBlock是一个fabric的模组,增加了`fallingblock`指令来实现方便地生成掉落方块。

游戏版本:`1.16.5`, `1.18.2`, `1.20.*`
游戏版本:`1.16.5`, `1.18.2`, `1.20.*`, `1.21`

## 模组怎么用

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '1.6-SNAPSHOT'
id 'fabric-loom' version '1.7-SNAPSHOT'
id 'maven-publish'
}

Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.20.6
yarn_mappings=1.20.6+build.3
minecraft_version=1.21
yarn_mappings=1.21+build.9
loader_version=0.15.11

# Mod Properties
mod_version = 1.20.6-1.7-fabric
mod_version = 1.21-1.7-fabric
maven_group = yancey
archives_base_name = CommandFallingBlock

# Dependencies
# check this on https://modmuss50.me/fabric.html
fabric_version=0.99.4+1.20.6
fabric_version=0.100.6+1.21
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public class FallingBlockCommand {
@SuppressWarnings("SpellCheckingInspection")
private static final SimpleCommandExceptionType FAILED_EXCEPTION = new SimpleCommandExceptionType(Text.translatable("command.commandfallingblock.fallingblock.failedToCalculate"));

@SuppressWarnings("SpellCheckingInspection")
public static void register(CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess commandRegistryAccess) {
Executor moveFromPos = FallingBlockCommand::moveFromPos;
Executor moveFromPosByTick = FallingBlockCommand::moveFromPosByTick;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class EntityBetterFallingBlock extends Entity {

public static final EntityType<EntityBetterFallingBlock> BETTER_FALLING_BLOCK = Registry.register(
Registries.ENTITY_TYPE,
new Identifier(CommandFallingBlock.MOD_ID, "better_falling_block"),
Identifier.of(CommandFallingBlock.MOD_ID, "better_falling_block"),
EntityType.Builder.create((EntityType.EntityFactory<EntityBetterFallingBlock>) EntityBetterFallingBlock::new, SpawnGroup.MISC).dimensions(0.98f, 0.98f).maxTrackingRange(10).trackingTickInterval(20).build()
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public record SummonFallingBlockPayloadS2C(int id, UUID uuid, Vec3d pos, Vec3d v
boolean hasNoGravity, int tickMove,
BlockPos blockPosEnd) implements CustomPayload {

public static final CustomPayload.Id<SummonFallingBlockPayloadS2C> ID = new CustomPayload.Id<>(new Identifier(MOD_ID, "summon_falling_block"));
public static final CustomPayload.Id<SummonFallingBlockPayloadS2C> ID = new CustomPayload.Id<>(Identifier.of(MOD_ID, "summon_falling_block"));
public static final PacketCodec<RegistryByteBuf, SummonFallingBlockPayloadS2C> CODEC = new PacketCodec<>() {
@Override
public SummonFallingBlockPayloadS2C decode(RegistryByteBuf buf) {
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 @@ -8,7 +8,7 @@
"Yancey"
],
"contact": {
"repo": "https://github.com/Yancey666/CommandFallingBlock"
"repo": "https://github.com/Yancey2023/CommandFallingBlock"
},
"license": "GPL-3.0",
"icon": "assets/commandfallingblock/icon.png",
Expand Down

0 comments on commit 7cb3b78

Please sign in to comment.