Update to 1.21
This commit is contained in:
parent
11553d1ea6
commit
e30b613f4e
@ -1,16 +1,16 @@
|
||||
# Done to increase the memory available to gradle.
|
||||
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
|
||||
# check this on https://modmuss50.me/fabric.html
|
||||
fabric_version=0.98.0+1.20.6
|
||||
minecraft_version=1.21
|
||||
yarn_mappings=1.21+build.1
|
||||
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.fabric.api.gamerule.v1.GameRuleFactory;
|
||||
import net.fabricmc.fabric.api.gamerule.v1.GameRuleRegistry;
|
||||
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 =
|
||||
GameRuleRegistry.register("entityPortalCooldown", GameRules.Category.MOBS, GameRuleFactory.createIntRule(300));
|
||||
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.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.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)
|
||||
public class DontHurtMePearlMixin {
|
@ -1,4 +1,4 @@
|
||||
package systems.brn.justteleportalready.mixin;
|
||||
package systems.brn.tweaks.mixin;
|
||||
|
||||
import net.minecraft.world.World;
|
||||
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.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)
|
||||
public class JustTeleportAlreadyMixin {
|
@ -1,23 +1,23 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "justteleportalready",
|
||||
"id": "tweaks",
|
||||
"version": "${version}",
|
||||
"name": "justteleportalready",
|
||||
"name": "tweaks",
|
||||
"description": "",
|
||||
"authors": [],
|
||||
"contact": {
|
||||
"repo": "https://git.brn.systems/BRNSystems/justteleportalreadyatencryptor"
|
||||
"repo": "https://git.brn.systems/BRNSystems/tweaks"
|
||||
},
|
||||
"license": "MIT",
|
||||
"icon": "assets/justteleportalready/icon.png",
|
||||
"icon": "assets/icon.png",
|
||||
"environment": "*",
|
||||
"entrypoints": {
|
||||
"main": [
|
||||
"systems.brn.justteleportalready.Justteleportalready"
|
||||
"systems.brn.tweaks.Tweaks"
|
||||
]
|
||||
},
|
||||
"mixins": [
|
||||
"justteleportalready.mixins.json"
|
||||
"tweaks.mixins.json"
|
||||
],
|
||||
"depends": {
|
||||
"fabricloader": ">=${loader_version}",
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"required": true,
|
||||
"minVersion": "0.8",
|
||||
"package": "systems.brn.justteleportalready.mixin",
|
||||
"package": "systems.brn.tweaks.mixin",
|
||||
"compatibilityLevel": "JAVA_21",
|
||||
"mixins": [
|
||||
"DontHurtMePearlMixin",
|
Loading…
Reference in New Issue
Block a user