5 Commits
v0.1.0 ... main

Author SHA1 Message Date
Motschen
be27f1a5e6 Fix submarine's always having a red tint to them when used without canvas or iris 2021-08-02 22:19:52 +02:00
Motschen
c094f05351 Bump version 2021-07-07 17:04:39 +02:00
Motschen
46696cd130 Disable unfinished code
Fixes #1
2021-07-07 17:03:51 +02:00
Motschen
7a33ed2d6e Update README.md 2021-07-03 17:44:04 +02:00
Motschen
49aeac05fd Update README.md 2021-07-03 17:40:07 +02:00
3 changed files with 19 additions and 5 deletions

View File

@@ -1,2 +1,15 @@
# Nauticality
Explore the oceans with submarines, fight against pirates and watch the beautiful glow fish!
<div align="center"> <h1>Nauticality</h1>
Explore the oceans with submarines, fight against pirates and watch the beautiful glow fish!
Nauticality is TeamMidnightDust's submission for ModFest 1.17: BGDC
The mod is focused on enhancing ocean exploration with new blocks, mobs, vehicles and structures.
Use the new submarine to view the beautiful glow fish and loot pirate ships that spawn throughout the minecraft world.
![Submarine](https://media.discordapp.net/attachments/851900313409552394/860898179355508766/2021-07-03_11.45.40.png)
![Pirate Ship](https://media.discordapp.net/attachments/808287286022242314/860900982636019772/2021-06-20_19.07.25.png)
![Swamp](https://media.discordapp.net/attachments/808287286022242314/860901834469539840/2021-07-03_17.16.22.png)
</div>

View File

@@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx2G
loader_version=0.11.6 loader_version=0.11.6
# Mod Properties # Mod Properties
mod_version = 0.1.0 mod_version = 0.1.2
maven_group = eu.midnightdust maven_group = eu.midnightdust
archives_base_name = nauticality archives_base_name = nauticality

View File

@@ -4,6 +4,7 @@ import eu.midnightdust.nauticality.entity.SubmarineEntity;
import eu.midnightdust.nauticality.entity.client.model.SubmarineModel; import eu.midnightdust.nauticality.entity.client.model.SubmarineModel;
import net.fabricmc.api.EnvType; import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment; import net.fabricmc.api.Environment;
import net.minecraft.client.render.OverlayTexture;
import net.minecraft.client.render.RenderLayer; import net.minecraft.client.render.RenderLayer;
import net.minecraft.client.render.VertexConsumerProvider; import net.minecraft.client.render.VertexConsumerProvider;
import net.minecraft.client.render.entity.EntityRenderer; import net.minecraft.client.render.entity.EntityRenderer;
@@ -37,13 +38,13 @@ public class SubmarineRenderer extends EntityRenderer<SubmarineEntity> implement
matrixStack.push(); matrixStack.push();
matrixStack.multiply(Vec3f.POSITIVE_Y.getDegreesQuaternion(180F - yaw)); matrixStack.multiply(Vec3f.POSITIVE_Y.getDegreesQuaternion(180F - yaw));
matrixStack.multiply(Vec3f.POSITIVE_Y.getDegreesQuaternion(180F)); matrixStack.multiply(Vec3f.POSITIVE_Y.getDegreesQuaternion(180F));
matrixStack.multiply(Vec3f.POSITIVE_Z.getDegreesQuaternion((yaw - entity.prevRoll)*8)); //matrixStack.multiply(Vec3f.POSITIVE_Z.getDegreesQuaternion((yaw - entity.prevRoll)*8));
entity.prevRoll = yaw; entity.prevRoll = yaw;
matrixStack.multiply(Vec3f.POSITIVE_X.getDegreesQuaternion(180.0F + pitch)); matrixStack.multiply(Vec3f.POSITIVE_X.getDegreesQuaternion(180.0F + pitch));
matrixStack.translate(0.0D , -1.75D, -0.5D + (90 + entity.getPitch()) * 0.01f); matrixStack.translate(0.0D , -1.75D, -0.5D + (90 + entity.getPitch()) * 0.01f);
matrixStack.scale(1.2f,1.2f,1.2f); matrixStack.scale(1.2f,1.2f,1.2f);
model.setAngles(entity,tickDelta,0,0,yaw,entity.getPitch()); model.setAngles(entity,tickDelta,0,0,yaw,entity.getPitch());
model.render(matrixStack, vertexConsumers.getBuffer(RenderLayer.getEntityCutout(getTexture(entity))), light, 1,1f,1f,1f,1f); model.render(matrixStack, vertexConsumers.getBuffer(RenderLayer.getEntityCutout(getTexture(entity))), light, OverlayTexture.DEFAULT_UV,1f,1f,1f,1f);
overlay.render(matrixStack,vertexConsumers,light,entity,yaw,0f,tickDelta,0f,yaw,entity.getPitch()); overlay.render(matrixStack,vertexConsumers,light,entity,yaw,0f,tickDelta,0f,yaw,entity.getPitch());
matrixStack.pop(); matrixStack.pop();
} }