Compare commits
8 Commits
V1.1
...
ed3638ada4
| Author | SHA1 | Date | |
|---|---|---|---|
| ed3638ada4 | |||
| cd2150fabc | |||
| b4c5b62834 | |||
| 0f4c26ec72 | |||
| 1291ee97ed | |||
| cbdd1ced5e | |||
| 55fd983c42 | |||
| 571f167704 |
@@ -3,15 +3,15 @@ org.gradle.jvmargs=-Xmx1G
|
|||||||
|
|
||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
# check these on https://modmuss50.me/fabric.html
|
# check these on https://modmuss50.me/fabric.html
|
||||||
minecraft_version=1.21.5
|
minecraft_version=1.21.8
|
||||||
yarn_mappings=1.21.5+build.1
|
yarn_mappings=1.21.8+build.1
|
||||||
loader_version=0.16.14
|
loader_version=0.16.14
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 1.1
|
mod_version = 1.3
|
||||||
maven_group = com.kasetoatz
|
maven_group = com.kasetoatz
|
||||||
archives_base_name = BoatJump
|
archives_base_name = BoatJump
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
# check this on https://modmuss50.me/fabric.html
|
# check this on https://modmuss50.me/fabric.html
|
||||||
fabric_version=0.128.1+1.21.5
|
fabric_version=0.131.0+1.21.8
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
package com.kasetoatz.boatjump;
|
|
||||||
|
|
||||||
import net.fabricmc.api.ClientModInitializer;
|
|
||||||
import net.minecraft.client.MinecraftClient;
|
|
||||||
|
|
||||||
public class BoatJump implements ClientModInitializer {
|
|
||||||
public static MinecraftClient client;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onInitializeClient() {
|
|
||||||
client = MinecraftClient.getInstance();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
package com.kasetoatz.boatjump.mixin;
|
package com.kasetoatz.boatjump.mixin;
|
||||||
|
|
||||||
import com.kasetoatz.boatjump.BoatJump;
|
|
||||||
import net.minecraft.entity.EntityType;
|
import net.minecraft.entity.EntityType;
|
||||||
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
import net.minecraft.entity.vehicle.AbstractBoatEntity;
|
import net.minecraft.entity.vehicle.AbstractBoatEntity;
|
||||||
import net.minecraft.entity.vehicle.VehicleEntity;
|
import net.minecraft.entity.vehicle.VehicleEntity;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
@@ -22,7 +22,7 @@ public abstract class BoatEntityMixin extends VehicleEntity {
|
|||||||
|
|
||||||
@Inject(method="tick", at=@At("HEAD"))
|
@Inject(method="tick", at=@At("HEAD"))
|
||||||
public void tick(CallbackInfo ci) {
|
public void tick(CallbackInfo ci) {
|
||||||
if (this.getControllingPassenger() == BoatJump.client.player && this.location == AbstractBoatEntity.Location.IN_WATER) {
|
if (this.getControllingPassenger() instanceof PlayerEntity && this.location == AbstractBoatEntity.Location.IN_WATER) {
|
||||||
this.setOnGround(true);
|
this.setOnGround(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package com.kasetoatz.boatjump.mixin;
|
package com.kasetoatz.boatjump.mixin;
|
||||||
|
|
||||||
import com.kasetoatz.boatjump.BoatJump;
|
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.LivingEntity;
|
import net.minecraft.entity.LivingEntity;
|
||||||
import net.minecraft.entity.vehicle.BoatEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
|
import net.minecraft.entity.vehicle.AbstractBoatEntity;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.Shadow;
|
import org.spongepowered.asm.mixin.Shadow;
|
||||||
@@ -17,7 +17,7 @@ public abstract class EntityMixin {
|
|||||||
|
|
||||||
@Inject(method="getStepHeight", at = @At("HEAD"), cancellable = true)
|
@Inject(method="getStepHeight", at = @At("HEAD"), cancellable = true)
|
||||||
public void getStepHeight(CallbackInfoReturnable<Float> cir) {
|
public void getStepHeight(CallbackInfoReturnable<Float> cir) {
|
||||||
if ((Entity)(Object)this instanceof BoatEntity && this.getControllingPassenger() == BoatJump.client.player) {
|
if ((Entity)(Object)this instanceof AbstractBoatEntity && this.getControllingPassenger() instanceof PlayerEntity) {
|
||||||
cir.setReturnValue(1.f);
|
cir.setReturnValue(1.f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"minVersion": "0.8",
|
"minVersion": "0.8",
|
||||||
"package": "com.kasetoatz.boatjump.mixin",
|
"package": "com.kasetoatz.boatjump.mixin",
|
||||||
"compatibilityLevel": "JAVA_21",
|
"compatibilityLevel": "JAVA_21",
|
||||||
"client": [
|
"mixins": [
|
||||||
"EntityMixin",
|
"EntityMixin",
|
||||||
"BoatEntityMixin"
|
"BoatEntityMixin"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -6,15 +6,10 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"authors": [],
|
"authors": [],
|
||||||
"contact": {
|
"contact": {
|
||||||
"repo": "https://github.com/KaseToatz1337/NoExplosionGrief"
|
"repo": "https://git.kasetoatz.com/KaseToatz/BoatJump"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"environment": "*",
|
"environment": "*",
|
||||||
"entrypoints": {
|
|
||||||
"client": [
|
|
||||||
"com.kasetoatz.boatjump.BoatJump"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"mixins": [
|
"mixins": [
|
||||||
"boatjump.mixins.json"
|
"boatjump.mixins.json"
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user