Compare commits

..

8 Commits

Author SHA1 Message Date
Liz Graham
de0983047a Bump to 1.4.0 2023-05-22 03:30:29 +01:00
Liz Graham
f453148c35 Improve error handling for incompatible particles 2023-05-22 03:29:40 +01:00
Liz Graham
5f48fec41a Fix bugs and fix #4
Particles can no longer spawn under the world.
Particles no longer spawn in blocks, instead spawning in air.
Fixed bug present since 1.2.0, which meant particle amount was dependant on blocks around player.
New particle multiplier allowing greater control of particle amount.
New F3 screen text, allows user to debug particle amount.
Removed upper and lower limit buttons.
2023-05-22 03:26:21 +01:00
Liz Graham
c345b7822c UI update 2023-05-22 03:23:13 +01:00
Liz Graham
0a49b2d459 Update build-release.yml 2023-05-21 23:27:16 +01:00
Liz Graham
282ce2e1af Bump to 1.3.0 2023-05-21 07:47:32 +01:00
Liz Graham
ec342b7506 Update README.md 2023-05-21 07:44:22 +01:00
Liz Graham
b8a45b3ed5 set default id to white ash's id 2023-05-21 07:30:04 +01:00
5 changed files with 20 additions and 19 deletions

View File

@@ -40,3 +40,5 @@ jobs:
curseforge-id: 594750
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -3,17 +3,17 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.20.2
yarn_mappings=1.20.2+build.4
loader_version=0.14.24
minecraft_version=1.19.3
yarn_mappings=1.19.3+build.5
loader_version=0.14.13
# Mod Properties
mod_version=1.4.1
mod_version = 1.4.0
maven_group = com.lizistired
archives_base_name = cave_dust
# Dependencies
fabric_version=0.90.7+1.20.2
clothconfig_version=12.0.10
modmenu_version=8.0.0-beta.2
kirin_version=1.16.0+1.20.2
fabric_version=0.72.0+1.19.3
clothconfig_version =9.0.94
modmenu_version =5.1.0-beta.3
kirin_version=1.13.2

View File

@@ -78,9 +78,9 @@ public class CaveDust implements ClientModInitializer {
for (int i = 0; i < PARTICLE_AMOUNT; i++) {
try {
int x = (int) (client.player.getPos().getX() + (int) generateRandomDouble(config.getDimensionsX() * -1, config.getDimensionsX()));
int y = (int) (client.player.getPos().getY() + (int) generateRandomDouble(config.getDimensionsY() * -1, config.getDimensionsY()));
int z = (int) (client.player.getPos().getZ() + (int) generateRandomDouble(config.getDimensionsZ() * -1, config.getDimensionsZ()));
double x = client.player.getPos().getX() + generateRandomDouble(config.getDimensionsX() * -1, config.getDimensionsX());
double y = client.player.getPos().getY() + generateRandomDouble(config.getDimensionsY() * -1, config.getDimensionsY());
double z = client.player.getPos().getZ() + generateRandomDouble(config.getDimensionsZ() * -1, config.getDimensionsZ());
BlockPos particlePos = new BlockPos(x, y, z);
if (shouldParticlesSpawn(client, config, particlePos)) {

View File

@@ -3,7 +3,6 @@ package net.lizistired.cavedust;
import com.minelittlepony.common.client.gui.GameGui;
import com.minelittlepony.common.client.gui.element.*;
import net.lizistired.cavedust.utils.TranslatableTextHelper;
import net.minecraft.client.gui.DrawContext;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.particle.ParticleEffect;
@@ -107,9 +106,9 @@ public class ModMenuConfigScreen extends GameGui {
@Override
public void render(DrawContext context, int mouseX, int mouseY, float partialTicks) {
renderBackground(context, mouseX, mouseY, partialTicks);
super.render(context, mouseX, mouseY, partialTicks);
public void render(MatrixStack matrices, int mouseX, int mouseY, float partialTicks) {
renderBackground(matrices);
super.render(matrices, mouseX, mouseY, partialTicks);
}
private String getNameOfParticle(){
CaveDustConfig config = CaveDust.getInstance().getConfig();

View File

@@ -28,7 +28,7 @@
"depends": {
"fabricloader": ">=0.14.5",
"fabric": "*",
"minecraft": "1.20.2",
"minecraft": ">=1.19-beta.5",
"java": ">=17"
},
"suggests": {