Skip to content

Commit

Permalink
Release new version based on minecart experiments for Minecraft 1.21.…
Browse files Browse the repository at this point in the history
…3 and 1.21.4
  • Loading branch information
audaki committed Dec 15, 2024
1 parent 67fa99a commit cc6d3e7
Show file tree
Hide file tree
Showing 12 changed files with 578 additions and 682 deletions.
16 changes: 14 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.0.0] - 2024-12-15
- Base mod on improved minecarts experiment
- The experimental code will be activated for all carts
- Rideable carts will be set to /gamerule aceCartSpeed (default 20) blocks per second
- All other carts will be set to 8 blocks per second speed
- Due to the new minecart experiment we now have the following features
- Full-Speed around corners
- Full-Speed around hills
- Consistent Jumps
- Perfect 1-tile breaks
- ROLLER COASTER MECHANICS

## [3.1.1] - 2024-05-25
- Make backwards compatible
- from Minecraft 1.21 down to Minecraft 1.17
Expand Down Expand Up @@ -50,12 +62,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- A little more slowdown before descending rails. Due to the vanilla parity you now start descending with 8m/s instead of 9.2m/s
- A little more slowdown before detector / activator rails. On and directly before detector/activator rails you also move with 8m/s instead of 9.2m/s now.
- Mod Compatibility: We only overwrite the moveOnRail function now when there is actually a LivingEntity riding the cart
- (technical) Mixin is targeting AbstractMinecartEntity again so we can inject and cancel the overwrite
- (technical) Mixin is targeting AbstractMinecart again so we can inject and cancel the overwrite
- Built for Minecraft 1.19.4

## [2.0.2] - 2023-03-15
- Starting with this version only mc 1.19+ receives mod updates (2.0.1 is very stable for mc 1.18 and 1.17)
- (technical) Refactored mixin to target MinecartEntity directly instead of AbstractMinecartEntity, therefore potentially increasing compatibility to other mods even more
- (technical) Refactored mixin to target MinecartEntity directly instead of AbstractMinecart, therefore potentially increasing compatibility to other mods even more
- Built for Minecraft 1.19.4

## [2.0.1] - 2023-02-20
Expand Down
558 changes: 437 additions & 121 deletions LICENSE

Large diffs are not rendered by default.

3 changes: 2 additions & 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.9-SNAPSHOT'
}

version = project.mod_version
Expand All @@ -14,6 +14,7 @@ dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings loom.officialMojangMappings()
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"
}

processResources {
Expand Down
8 changes: 5 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ org.gradle.jvmargs=-Xmx4G
org.gradle.parallel=true

# Fabric Properties, @see https://fabricmc.net/develop
minecraft_version=1.20.6
loader_version=0.15.11
minecraft_version=1.21.3
loader_version=0.16.9

fabric_api_version=0.112.0+1.21.3

# Mod Properties
mod_version = 3.1.1
mod_version = 4.0.0
maven_group = audaki.minecraft
archives_base_name = ACE
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.11-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
15 changes: 15 additions & 0 deletions src/main/java/audaki/cart_engine/AceGameRules.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package audaki.cart_engine;

import net.fabricmc.fabric.api.gamerule.v1.GameRuleFactory;
import net.fabricmc.fabric.api.gamerule.v1.GameRuleRegistry;
import net.minecraft.world.level.GameRules;

public class AceGameRules {
public static GameRules.Key<GameRules.IntegerValue> ACE_CART_SPEED;

public static void register() {
ACE_CART_SPEED = GameRuleRegistry.register("aceCartSpeed",
GameRules.Category.PLAYER,
GameRuleFactory.createIntRule(20));
}
}
10 changes: 10 additions & 0 deletions src/main/java/audaki/cart_engine/AceMod.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package audaki.cart_engine;

import net.fabricmc.api.ModInitializer;

public class AceMod implements ModInitializer {
@Override
public void onInitialize() {
AceGameRules.register();
}
}
Loading

0 comments on commit cc6d3e7

Please sign in to comment.