-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added particles for the Thermoregulator
- Loading branch information
Showing
40 changed files
with
136 additions
and
38 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
common/src/generated/resources/.cache/d6a68f98580d9908a43dbfe9cc754bc0c1ac14b0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// 1.20.4 2024-01-08T12:48:48.1761072 Tags for minecraft:block mod id toughasnails | ||
// 1.20.4 2024-01-07T21:24:08.2345992 Tags for minecraft:block mod id toughasnails | ||
bffb0fdf09ac6cfbed64666a723e8a78cb784bbd data/minecraft/tags/blocks/mineable/axe.json | ||
0342cd45a4d6f790afda91090de45871d9b0ef63 data/minecraft/tags/blocks/mineable/pickaxe.json | ||
eed9ca8217c04724f67008aba1a0a5edde5697c2 data/toughasnails/tags/blocks/cooling_blocks.json | ||
658fab0118eb1ac9896e1b9ab89f2d5ed055a967 data/toughasnails/tags/blocks/heating_blocks.json | ||
4e9fc3338709900bd37b9707629283ff25f3234a data/toughasnails/tags/blocks/passable_blocks.json | ||
e31d0ccf1dd374df5d89a102ae1829d4411012f6 data/toughasnails/tags/blocks/passable_blocks.json |
3 changes: 2 additions & 1 deletion
3
common/src/generated/resources/data/toughasnails/tags/blocks/passable_blocks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"values": [ | ||
"#minecraft:doors", | ||
"#minecraft:trapdoors" | ||
"#minecraft:trapdoors", | ||
"minecraft:scaffolding" | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
common/src/main/java/toughasnails/api/particle/TANParticles.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package toughasnails.api.particle; | ||
|
||
import net.minecraft.core.particles.SimpleParticleType; | ||
|
||
public class TANParticles | ||
{ | ||
public static SimpleParticleType THERMOREGULATOR_COOL; | ||
public static SimpleParticleType THERMOREGULATOR_WARM; | ||
public static SimpleParticleType THERMOREGULATOR_NEUTRAL; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
common/src/main/java/toughasnails/client/particle/ThermoregulatorParticle.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
package toughasnails.client.particle; | ||
|
||
import net.minecraft.client.multiplayer.ClientLevel; | ||
import net.minecraft.client.particle.*; | ||
import net.minecraft.core.particles.SimpleParticleType; | ||
|
||
public class ThermoregulatorParticle extends TextureSheetParticle | ||
{ | ||
ThermoregulatorParticle(ClientLevel p_105856_, double p_105857_, double p_105858_, double p_105859_, double p_105860_, double p_105861_, double p_105862_) | ||
{ | ||
super(p_105856_, p_105857_, p_105858_, p_105859_); | ||
this.lifetime = this.random.nextInt(8) + 8; | ||
this.gravity = 3.0E-6F; | ||
this.xd = p_105860_; | ||
this.yd = p_105861_; | ||
this.zd = p_105862_; | ||
} | ||
|
||
@Override | ||
public void tick() | ||
{ | ||
this.xo = this.x; | ||
this.yo = this.y; | ||
this.zo = this.z; | ||
if (this.age++ < this.lifetime && !(this.alpha <= 0.0F)) | ||
{ | ||
this.move(this.xd, this.yd, this.zd); | ||
if (this.age >= this.lifetime - 60 && this.alpha > 0.01F) | ||
{ | ||
this.alpha -= 0.01F; | ||
} | ||
|
||
} | ||
else | ||
{ | ||
this.remove(); | ||
} | ||
} | ||
|
||
@Override | ||
public float getQuadSize(float p_107089_) | ||
{ | ||
float f = ((float)this.age + p_107089_) / (float)this.lifetime; | ||
return this.quadSize * (1.0F - f * f); | ||
} | ||
|
||
@Override | ||
public ParticleRenderType getRenderType() { | ||
return ParticleRenderType.PARTICLE_SHEET_TRANSLUCENT; | ||
} | ||
|
||
public static class Provider implements ParticleProvider<SimpleParticleType> | ||
{ | ||
private final SpriteSet sprites; | ||
|
||
public Provider(SpriteSet p_105899_) { | ||
this.sprites = p_105899_; | ||
} | ||
|
||
public Particle createParticle(SimpleParticleType p_105910_, ClientLevel p_105911_, double p_105912_, double p_105913_, double p_105914_, double p_105915_, double p_105916_, double p_105917_) | ||
{ | ||
ThermoregulatorParticle particle = new ThermoregulatorParticle(p_105911_, p_105912_, p_105913_, p_105914_, p_105915_, p_105916_, p_105917_); | ||
particle.setAlpha(0.5F); | ||
particle.pickSprite(this.sprites); | ||
return particle; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
common/src/main/resources/assets/toughasnails/particles/cooling.json
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
common/src/main/resources/assets/toughasnails/particles/heating.json
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
common/src/main/resources/assets/toughasnails/particles/thermoregulator_cool.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"textures": [ | ||
"toughasnails:thermoregulator_cool_0", | ||
"toughasnails:thermoregulator_cool_1", | ||
"toughasnails:thermoregulator_cool_2", | ||
"toughasnails:thermoregulator_cool_3" | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
common/src/main/resources/assets/toughasnails/particles/thermoregulator_neutral.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"textures": [ | ||
"toughasnails:thermoregulator_neutral_0", | ||
"toughasnails:thermoregulator_neutral_1", | ||
"toughasnails:thermoregulator_neutral_2", | ||
"toughasnails:thermoregulator_neutral_3" | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
common/src/main/resources/assets/toughasnails/particles/thermoregulator_warm.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"textures": [ | ||
"toughasnails:thermoregulator_warm_0", | ||
"toughasnails:thermoregulator_warm_1", | ||
"toughasnails:thermoregulator_warm_2", | ||
"toughasnails:thermoregulator_warm_3" | ||
] | ||
} |
8 changes: 0 additions & 8 deletions
8
common/src/main/resources/assets/toughasnails/particles/vapor.json
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-119 Bytes
common/src/main/resources/assets/toughasnails/textures/particle/cooling_0.png
Binary file not shown.
Binary file removed
BIN
-119 Bytes
common/src/main/resources/assets/toughasnails/textures/particle/cooling_1.png
Binary file not shown.
Binary file removed
BIN
-119 Bytes
common/src/main/resources/assets/toughasnails/textures/particle/cooling_2.png
Binary file not shown.
Binary file removed
BIN
-119 Bytes
common/src/main/resources/assets/toughasnails/textures/particle/cooling_3.png
Binary file not shown.
Binary file removed
BIN
-119 Bytes
common/src/main/resources/assets/toughasnails/textures/particle/heating_0.png
Binary file not shown.
Binary file removed
BIN
-119 Bytes
common/src/main/resources/assets/toughasnails/textures/particle/heating_1.png
Binary file not shown.
Binary file removed
BIN
-119 Bytes
common/src/main/resources/assets/toughasnails/textures/particle/heating_2.png
Binary file not shown.
Binary file removed
BIN
-119 Bytes
common/src/main/resources/assets/toughasnails/textures/particle/heating_3.png
Binary file not shown.
Binary file added
BIN
+174 Bytes
...main/resources/assets/toughasnails/textures/particle/thermoregulator_cool_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+176 Bytes
...main/resources/assets/toughasnails/textures/particle/thermoregulator_cool_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+153 Bytes
...main/resources/assets/toughasnails/textures/particle/thermoregulator_cool_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+136 Bytes
...oughasnails/textures/particle/vapor_2.png → ...tures/particle/thermoregulator_cool_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+149 Bytes
...n/resources/assets/toughasnails/textures/particle/thermoregulator_neutral_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+166 Bytes
...n/resources/assets/toughasnails/textures/particle/thermoregulator_neutral_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+163 Bytes
...n/resources/assets/toughasnails/textures/particle/thermoregulator_neutral_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+126 Bytes
...oughasnails/textures/particle/vapor_3.png → ...es/particle/thermoregulator_neutral_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+174 Bytes
...main/resources/assets/toughasnails/textures/particle/thermoregulator_warm_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+175 Bytes
...main/resources/assets/toughasnails/textures/particle/thermoregulator_warm_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+152 Bytes
...main/resources/assets/toughasnails/textures/particle/thermoregulator_warm_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+142 Bytes
...main/resources/assets/toughasnails/textures/particle/thermoregulator_warm_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-165 Bytes
common/src/main/resources/assets/toughasnails/textures/particle/vapor_0.png
Binary file not shown.
Binary file removed
BIN
-162 Bytes
common/src/main/resources/assets/toughasnails/textures/particle/vapor_1.png
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters