Update to 1.21

This commit is contained in:
Bruno Rybársky 2024-06-14 14:40:59 +02:00
parent 11553d1ea6
commit e30b613f4e
6 changed files with 25 additions and 25 deletions

@ -1,16 +1,16 @@
# Done to increase the memory available to gradle. # Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G 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.1
loader_version=0.15.11
# Mod Properties
mod_version = 1.0
maven_group = systems.brn
archives_base_name = justteleportalready
# Dependencies minecraft_version=1.21
# check this on https://modmuss50.me/fabric.html yarn_mappings=1.21+build.1
fabric_version=0.98.0+1.20.6 loader_version=0.15.11
# Fabric API
fabric_version=0.100.1+1.21
# Mod Properties
mod_version = 1.1
maven_group = systems.brn
archives_base_name = tweaks

@ -1,11 +1,11 @@
package systems.brn.justteleportalready; package systems.brn.tweaks;
import net.fabricmc.api.ModInitializer; import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.gamerule.v1.GameRuleFactory; import net.fabricmc.fabric.api.gamerule.v1.GameRuleFactory;
import net.fabricmc.fabric.api.gamerule.v1.GameRuleRegistry; import net.fabricmc.fabric.api.gamerule.v1.GameRuleRegistry;
import net.minecraft.world.GameRules; import net.minecraft.world.GameRules;
public class Justteleportalready implements ModInitializer { public class Tweaks implements ModInitializer {
public static final GameRules.Key<GameRules.IntRule> Entity_Portal_Cooldown = public static final GameRules.Key<GameRules.IntRule> Entity_Portal_Cooldown =
GameRuleRegistry.register("entityPortalCooldown", GameRules.Category.MOBS, GameRuleFactory.createIntRule(300)); GameRuleRegistry.register("entityPortalCooldown", GameRules.Category.MOBS, GameRuleFactory.createIntRule(300));
public static final GameRules.Key<GameRules.IntRule> Enderpearl_Damage = public static final GameRules.Key<GameRules.IntRule> Enderpearl_Damage =

@ -1,4 +1,4 @@
package systems.brn.justteleportalready.mixin; package systems.brn.tweaks.mixin;
import net.minecraft.entity.Entity; import net.minecraft.entity.Entity;
import net.minecraft.entity.damage.DamageSource; import net.minecraft.entity.damage.DamageSource;
@ -7,7 +7,7 @@ import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect; import org.spongepowered.asm.mixin.injection.Redirect;
import static systems.brn.justteleportalready.Justteleportalready.Enderpearl_Damage; import static systems.brn.tweaks.Tweaks.Enderpearl_Damage;
@Mixin(net.minecraft.entity.projectile.thrown.EnderPearlEntity.class) @Mixin(net.minecraft.entity.projectile.thrown.EnderPearlEntity.class)
public class DontHurtMePearlMixin { public class DontHurtMePearlMixin {

@ -1,4 +1,4 @@
package systems.brn.justteleportalready.mixin; package systems.brn.tweaks.mixin;
import net.minecraft.world.World; import net.minecraft.world.World;
import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Mixin;
@ -8,7 +8,7 @@ import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
import static systems.brn.justteleportalready.Justteleportalready.Entity_Portal_Cooldown; import static systems.brn.tweaks.Tweaks.Entity_Portal_Cooldown;
@Mixin(net.minecraft.entity.Entity.class) @Mixin(net.minecraft.entity.Entity.class)
public class JustTeleportAlreadyMixin { public class JustTeleportAlreadyMixin {

@ -1,23 +1,23 @@
{ {
"schemaVersion": 1, "schemaVersion": 1,
"id": "justteleportalready", "id": "tweaks",
"version": "${version}", "version": "${version}",
"name": "justteleportalready", "name": "tweaks",
"description": "", "description": "",
"authors": [], "authors": [],
"contact": { "contact": {
"repo": "https://git.brn.systems/BRNSystems/justteleportalreadyatencryptor" "repo": "https://git.brn.systems/BRNSystems/tweaks"
}, },
"license": "MIT", "license": "MIT",
"icon": "assets/justteleportalready/icon.png", "icon": "assets/icon.png",
"environment": "*", "environment": "*",
"entrypoints": { "entrypoints": {
"main": [ "main": [
"systems.brn.justteleportalready.Justteleportalready" "systems.brn.tweaks.Tweaks"
] ]
}, },
"mixins": [ "mixins": [
"justteleportalready.mixins.json" "tweaks.mixins.json"
], ],
"depends": { "depends": {
"fabricloader": ">=${loader_version}", "fabricloader": ">=${loader_version}",

@ -1,7 +1,7 @@
{ {
"required": true, "required": true,
"minVersion": "0.8", "minVersion": "0.8",
"package": "systems.brn.justteleportalready.mixin", "package": "systems.brn.tweaks.mixin",
"compatibilityLevel": "JAVA_21", "compatibilityLevel": "JAVA_21",
"mixins": [ "mixins": [
"DontHurtMePearlMixin", "DontHurtMePearlMixin",