Compare commits
7 Commits
b4c5b62834
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 8322b34b35 | |||
| 4d2db89f37 | |||
| 5d375d77f7 | |||
| a12e7ac5b8 | |||
| 06387dd6ac | |||
| ed3638ada4 | |||
| cd2150fabc |
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id 'fabric-loom' version '1.11-SNAPSHOT'
|
||||
id 'fabric-loom' version "${loom_version}"
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
|
||||
@@ -3,15 +3,16 @@ org.gradle.jvmargs=-Xmx1G
|
||||
|
||||
# Fabric Properties
|
||||
# check these on https://modmuss50.me/fabric.html
|
||||
minecraft_version=1.21.8
|
||||
yarn_mappings=1.21.8+build.1
|
||||
loader_version=0.16.14
|
||||
minecraft_version=1.21.10
|
||||
yarn_mappings=1.21.10+build.2
|
||||
loader_version=0.17.3
|
||||
loom_version=1.12-SNAPSHOT
|
||||
|
||||
# Mod Properties
|
||||
mod_version = 1.2
|
||||
maven_group = com.kasetoatz
|
||||
archives_base_name = BoatJump
|
||||
mod_version = 1.6
|
||||
maven_group = com.kasetoatz
|
||||
archives_base_name = BoatJump
|
||||
|
||||
# Dependencies
|
||||
# check this on https://modmuss50.me/fabric.html
|
||||
fabric_version=0.131.0+1.21.8
|
||||
fabric_version=0.136.0+1.21.10
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
package com.kasetoatz.boatjump;
|
||||
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
|
||||
public class BoatJump implements ModInitializer {
|
||||
public static MinecraftClient client;
|
||||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
client = MinecraftClient.getInstance();
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.kasetoatz.boatjump.mixin;
|
||||
|
||||
import com.kasetoatz.boatjump.BoatJump;
|
||||
import net.minecraft.entity.EntityType;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.vehicle.AbstractBoatEntity;
|
||||
import net.minecraft.entity.vehicle.VehicleEntity;
|
||||
import net.minecraft.world.World;
|
||||
@@ -22,7 +22,7 @@ public abstract class BoatEntityMixin extends VehicleEntity {
|
||||
|
||||
@Inject(method="tick", at=@At("HEAD"))
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package com.kasetoatz.boatjump.mixin;
|
||||
|
||||
import com.kasetoatz.boatjump.BoatJump;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.LivingEntity;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.vehicle.AbstractBoatEntity;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
@@ -17,7 +17,7 @@ public abstract class EntityMixin {
|
||||
|
||||
@Inject(method="getStepHeight", at = @At("HEAD"), cancellable = true)
|
||||
public void getStepHeight(CallbackInfoReturnable<Float> cir) {
|
||||
if ((Entity)(Object)this instanceof AbstractBoatEntity && this.getControllingPassenger() == BoatJump.client.player) {
|
||||
if ((Entity)(Object)this instanceof AbstractBoatEntity && this.getControllingPassenger() instanceof PlayerEntity) {
|
||||
cir.setReturnValue(1.f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,18 +3,17 @@
|
||||
"id": "boatjump",
|
||||
"version": "${version}",
|
||||
"name": "BoatJump",
|
||||
"description": "",
|
||||
"authors": [],
|
||||
"description": "Literally jump with boats",
|
||||
"authors": ["KaseToatz"],
|
||||
"contact": {
|
||||
"repo": "https://git.kasetoatz.com/KaseToatz/BoatJump"
|
||||
"email": "kasetoatz@kasetoatz.com",
|
||||
"homepage": "https://modrinth.com/mod/joatbump",
|
||||
"issues": "https://git.kasetoatz.com/KaseToatz/BoatJump/issues",
|
||||
"sources": "https://git.kasetoatz.com/KaseToatz/BoatJump"
|
||||
},
|
||||
"license": "MIT",
|
||||
"icon": "icon.png",
|
||||
"environment": "*",
|
||||
"entrypoints": {
|
||||
"main": [
|
||||
"com.kasetoatz.boatjump.BoatJump"
|
||||
]
|
||||
},
|
||||
"mixins": [
|
||||
"boatjump.mixins.json"
|
||||
],
|
||||
|
||||
BIN
src/main/resources/icon.png
Normal file
BIN
src/main/resources/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 48 KiB |
Reference in New Issue
Block a user