From 4b049075288bee60cbeb14af9a2358544a9f3e58 Mon Sep 17 00:00:00 2001 From: CDAGaming Date: Tue, 30 Nov 2021 01:04:01 -0600 Subject: [PATCH] Bump version + Blue Swets now evaporate in >1.0f temperature - https://github.com/devs-immortal/The-Aether/issues/543 --- CHANGELOG.md | 1 + gradle.properties | 2 +- .../entities/hostile/swet/BlueSwetEntity.java | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b259f0ab..7e14b6d1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - Stopped rooks from spawning. They'll be adjusted for 1.7 - Began work on datafixers behind-the-scenes - Swet jiggle physics have been slightly changed +- Blue Swets now burn up in the Nether # Fixes diff --git a/gradle.properties b/gradle.properties index 58068fe90..ed3961e1a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx2G max_errors=400 # Mod Properties -mod_version=1.17.1-1.6.2 +mod_version=1.17.1-1.6.3 maven_group=com.aether archives_base_name=paradise-lost # Fabric Properties diff --git a/src/main/java/net/id/aether/entities/hostile/swet/BlueSwetEntity.java b/src/main/java/net/id/aether/entities/hostile/swet/BlueSwetEntity.java index 6e4c51610..6e5246652 100644 --- a/src/main/java/net/id/aether/entities/hostile/swet/BlueSwetEntity.java +++ b/src/main/java/net/id/aether/entities/hostile/swet/BlueSwetEntity.java @@ -1,8 +1,11 @@ package net.id.aether.entities.hostile.swet; import net.minecraft.entity.EntityType; +import net.minecraft.entity.damage.DamageSource; import net.minecraft.particle.ParticleEffect; import net.minecraft.particle.ParticleTypes; +import net.minecraft.util.math.BlockPos; +import net.minecraft.util.math.MathHelper; import net.minecraft.world.World; public class BlueSwetEntity extends SwetEntity { @@ -10,6 +13,21 @@ public BlueSwetEntity(EntityType entityType, World wor super(entityType, world); } + @Override + public void tickMovement() { + super.tickMovement(); + if (!this.world.isClient) { + int i = MathHelper.floor(this.getX()); + int j = MathHelper.floor(this.getY()); + int k = MathHelper.floor(this.getZ()); + BlockPos blockPos = new BlockPos(i, 0, k); + BlockPos blockPos2 = new BlockPos(i, j, k); + if (this.world.getBiome(blockPos).getTemperature(blockPos2) > 1.0f) { + this.damage(DamageSource.ON_FIRE, 1.0f); + } + } + } + @Override protected ParticleEffect getParticles() { return ParticleTypes.SPLASH;