Skip to content

Commit

Permalink
Bump version + Blue Swets now evaporate in >1.0f temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
CDAGaming committed Nov 30, 2021
1 parent e7dc2d8 commit 4b04907
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,33 @@
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 {
public BlueSwetEntity(EntityType<? extends BlueSwetEntity> entityType, World world) {
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;
Expand Down

0 comments on commit 4b04907

Please sign in to comment.