Skip to content

Commit

Permalink
fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
btwonion committed Oct 8, 2024
1 parent 77bc4d2 commit 18ccbd1
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 24 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The configuration file can be found in the client/server directory.
<details>
<summary>telekinesis.json</summary>

```json
```json5
{
"version": 1, // For migration purposes only, just ignore this.
"config": {
Expand All @@ -27,11 +27,9 @@ The configuration file can be found in the client/server directory.

### Other

Currently supported versions are: 1.20.1, 1.20.4, 1.20.6 and 1.21. This can change in the future!

If you need help with any of my mods, just join my [discord server](https://nyon.dev/discord)
If you need help with any of my mods, just join my [discord server](https://nyon.dev/discord).

#### Paper Compatibility

The paper module of telekinesis is as of Minecraft version 1.20.2 discontinued cause of the lack of ability to
register the enchantment (When Paper's registry modification api is merged I will continue.)
register the enchantment.
6 changes: 1 addition & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ plugins {
}

val beta: Int? = null // Pattern is '1.0.0-beta1-1.20.6-pre.2'
val featureVersion = "3.0.4${if (beta != null) "-beta$beta" else ""}"
val featureVersion = "3.0.5${if (beta != null) "-beta$beta" else ""}"
val mcVersion = property("mcVersion")!!.toString()
val mcVersionRange = property("mcVersionRange")!!.toString()
version = "$featureVersion-$mcVersion"

group = "dev.nyon"
val projectAuthors = listOf("btwonion")
val githubRepo = "btwonion/telekinesis"

base {
Expand Down Expand Up @@ -53,7 +52,6 @@ repositories {
maven("https://maven.quiltmc.org/repository/release/")
maven("https://repo.nyon.dev/releases")
maven("https://maven.isxander.dev/releases")
maven("https://maven.bawnorton.com/releases")
}

dependencies {
Expand All @@ -72,8 +70,6 @@ dependencies {
modImplementation("dev.isxander:yet-another-config-lib:${property("deps.yacl")!!}")
modImplementation("com.terraformersmc:modmenu:${property("deps.modMenu")!!}")

include(implementation(annotationProcessor("com.github.bawnorton.mixinsquared:mixinsquared-fabric:0.2.0-beta.6")!!)!!)

include(modImplementation("dev.nyon:konfig:2.0.2-1.20.4")!!)
}

Expand Down
6 changes: 2 additions & 4 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
- also award player with exp orb gain stat
- fix crash on tool repair with telekinesis (#17 by f-raZ0R)
- fix infinitely dropping boats, without destroying them on <=1.20.2 (#16 by f-raZ0R)
- update konfig, preventing a crash, when inner config does not match json format
- only limit fabric.mod.json Minecraft requirement for versions of Minecraft that are too old
- remove old mixinsquared import
2 changes: 1 addition & 1 deletion src/main/kotlin/dev/nyon/telekinesis/DropEvent.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ object DropEvent {
player.take(fakeExperienceOrb, 1)
val leftExp = (fakeExperienceOrb as ExperienceOrbInvoker).invokeRepairPlayerItems(player, exp.value)
if (leftExp > 0) player.giveExperiencePoints(leftExp)
exp.setValue(0)
exp.value = 0
}
}
}
Expand Down
10 changes: 6 additions & 4 deletions src/main/kotlin/dev/nyon/telekinesis/TelekinesisEnchantment.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package dev.nyon.telekinesis

import net.minecraft.ChatFormatting
import net.minecraft.network.chat.Component
import net.minecraft.world.item.enchantment.Enchantment
import net.minecraft.world.entity.EquipmentSlot
/*? if >=1.21 {*/
import net.minecraft.core.registries.Registries
import net.minecraft.resources.ResourceLocation
Expand All @@ -13,13 +10,18 @@ val telekinesisEffectId: TagKey<Enchantment> = TagKey.create(Registries.ENCHANTM
val telekinesisEnchantmentId: ResourceLocation = ResourceLocation.fromNamespaceAndPath("telekinesis", "telekinesis")
/*?} elif <1.21 && >=1.20.5 {*/
/*import net.fabricmc.fabric.api.tag.convention.v2.ConventionalItemTags
import net.minecraft.ChatFormatting
import net.minecraft.network.chat.Component
import net.minecraft.world.entity.EquipmentSlot
*//*?} elif <=1.20.4 {*/
/*import net.minecraft.world.damagesource.DamageSource
import net.minecraft.ChatFormatting
import net.minecraft.network.chat.Component
import net.minecraft.world.entity.MobType
import net.minecraft.world.item.enchantment.EnchantmentCategory
import net.minecraft.world.entity.EquipmentSlot
*//*?}*/


/*? if =1.20.6 {*/
/*class TelekinesisEnchantment : Enchantment(
definition(
Expand Down
2 changes: 1 addition & 1 deletion versions/1.20.1/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mcVersion=1.20.1
mcVersionRange=>=1.20 <=1.20.3
mcVersionRange=>=1.20
supportedMcVersions=1.20,1.20.1

deps.quiltmappings=1.20.1+build.9
Expand Down
2 changes: 1 addition & 1 deletion versions/1.20.4/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mcVersion=1.20.4
mcVersionRange=>=1.20.3 <=1.20.4
mcVersionRange=>=1.20.3
supportedMcVersions=1.20.4

deps.quiltmappings=1.20.4+build.3
Expand Down
2 changes: 1 addition & 1 deletion versions/1.20.6/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mcVersion=1.20.6
mcVersionRange=>=1.20.5 <=1.20.6
mcVersionRange=>=1.20.5
supportedMcVersions=1.20.5,1.20.6

deps.quiltmappings=1.20.6+build.6
Expand Down
4 changes: 2 additions & 2 deletions versions/1.21/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mcVersion=1.21
mcVersionRange=>1.20.6 <=1.21
supportedMcVersions=1.21
mcVersionRange=>1.20.6
supportedMcVersions=1.21,1.21.1

deps.quiltmappings=1.21+build.9
deps.fapi=0.100.8+1.21
Expand Down

0 comments on commit 18ccbd1

Please sign in to comment.