diff --git a/src/main/java/fox/spiteful/avaritia/ClientProxy.java b/src/main/java/fox/spiteful/avaritia/ClientProxy.java index 11446a1..d6ad992 100644 --- a/src/main/java/fox/spiteful/avaritia/ClientProxy.java +++ b/src/main/java/fox/spiteful/avaritia/ClientProxy.java @@ -9,6 +9,7 @@ import fox.spiteful.avaritia.items.LudicrousItems; import fox.spiteful.avaritia.render.CosmicItemRenderer; import fox.spiteful.avaritia.render.FancyHaloRenderer; import fox.spiteful.avaritia.render.LudicrousRenderEvents; +import fox.spiteful.avaritia.render.RenderGapingVoid; import fox.spiteful.avaritia.render.ShaderHelper; import net.minecraft.client.renderer.entity.RenderSnowball; import net.minecraftforge.client.MinecraftForgeClient; @@ -16,6 +17,8 @@ import net.minecraftforge.common.MinecraftForge; public class ClientProxy extends CommonProxy { + public static final double toDeg = (1.0/(Math.PI*2))*360.0; + @Override public void makeThingsPretty() { FancyHaloRenderer shiny = new FancyHaloRenderer(); @@ -25,7 +28,7 @@ public class ClientProxy extends CommonProxy { MinecraftForgeClient.registerItemRenderer(LudicrousItems.endest_pearl, shiny); RenderingRegistry.registerEntityRenderingHandler(EntityEndestPearl.class, new RenderSnowball(LudicrousItems.endest_pearl)); - RenderingRegistry.registerEntityRenderingHandler(EntityGapingVoid.class, new RenderSnowball(LudicrousItems.cosmic_meatballs)); + RenderingRegistry.registerEntityRenderingHandler(EntityGapingVoid.class, new RenderGapingVoid()); CosmicItemRenderer sparkly = new CosmicItemRenderer(); diff --git a/src/main/java/fox/spiteful/avaritia/entity/EntityEndestPearl.java b/src/main/java/fox/spiteful/avaritia/entity/EntityEndestPearl.java index cc1f9f2..12cc93e 100644 --- a/src/main/java/fox/spiteful/avaritia/entity/EntityEndestPearl.java +++ b/src/main/java/fox/spiteful/avaritia/entity/EntityEndestPearl.java @@ -8,6 +8,7 @@ import net.minecraft.entity.projectile.EntityThrowable; import net.minecraft.util.DamageSource; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; +import net.minecraftforge.common.util.ForgeDirection; public class EntityEndestPearl extends EntityThrowable { @@ -30,9 +31,9 @@ public class EntityEndestPearl extends EntityThrowable { pos.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), 0.0F); } - for (int i = 0; i < 32; ++i) + for (int i = 0; i < 100; ++i) { - this.worldObj.spawnParticle("portal", this.posX, this.posY + this.rand.nextDouble() * 2.0D, this.posZ, this.rand.nextGaussian(), 0.0D, this.rand.nextGaussian()); + this.worldObj.spawnParticle("portal", this.posX, this.posY, this.posZ, this.rand.nextGaussian()*3, this.rand.nextGaussian()*3, this.rand.nextGaussian()*3); } if (!this.worldObj.isRemote) @@ -41,12 +42,11 @@ public class EntityEndestPearl extends EntityThrowable { Entity ent = new EntityGapingVoid(this.worldObj); //Entity ent = new EntityChicken(this.worldObj); - ent.setLocationAndAngles(this.posX, this.posY, this.posZ, this.rotationYaw, 0.0F); + ForgeDirection dir = ForgeDirection.getOrientation(pos.sideHit); + ent.setLocationAndAngles(this.posX + dir.offsetX*0.25, this.posY + dir.offsetY*0.25, this.posZ + dir.offsetZ*0.25, this.rotationYaw, 0.0F); this.worldObj.spawnEntityInWorld(ent); this.setDead(); - - Lumberjack.info("ded"); } } diff --git a/src/main/java/fox/spiteful/avaritia/entity/EntityGapingVoid.java b/src/main/java/fox/spiteful/avaritia/entity/EntityGapingVoid.java index ded4539..55b0338 100644 --- a/src/main/java/fox/spiteful/avaritia/entity/EntityGapingVoid.java +++ b/src/main/java/fox/spiteful/avaritia/entity/EntityGapingVoid.java @@ -1,37 +1,195 @@ package fox.spiteful.avaritia.entity; +import java.util.List; +import java.util.Random; + +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; + import fox.spiteful.avaritia.Lumberjack; +import net.minecraft.block.Block; +import net.minecraft.command.IEntitySelector; import net.minecraft.entity.Entity; +import net.minecraft.entity.EntityLivingBase; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; +import net.minecraft.util.AxisAlignedBB; +import net.minecraft.util.DamageSource; +import net.minecraft.util.Vec3; import net.minecraft.world.World; public class EntityGapingVoid extends Entity { - public static final int maxLifetime = 200; + private static Random randy = new Random(); + public static final int maxLifetime = 186; + public static double collapse = .95; + public static double suckrange = 20.0; + + public static final IEntitySelector sucklector = new IEntitySelector() { + + @Override + public boolean isEntityApplicable(Entity ent) { + if (ent instanceof EntityPlayer) { + EntityPlayer p = (EntityPlayer)ent; + if (p.capabilities.isCreativeMode && p.capabilities.isFlying) { + return false; + } + } + + return true; + } + + }; + + public static final IEntitySelector nomlector = new IEntitySelector() { + + @Override + public boolean isEntityApplicable(Entity ent) { + if(!(ent instanceof EntityLivingBase)) { return false; } + + if (ent instanceof EntityPlayer) { + EntityPlayer p = (EntityPlayer)ent; + if (p.capabilities.isCreativeMode) { + return false; + } + } + + return true; + } + + }; public EntityGapingVoid(World world) { super(world); this.isImmuneToFire = true; + this.setSize(0.1F, 0.1F); + this.ignoreFrustumCheck = true; + this.renderDistanceWeight = 100.0; } @Override protected void entityInit() { dataWatcher.addObject(12, 0); dataWatcher.setObjectWatched(12); - Lumberjack.info("SPAWN"); } + @SuppressWarnings("unchecked") @Override public void onUpdate() { super.onUpdate(); + // tick, tock int age = this.getAge(); if (age >= maxLifetime) { + this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, 6.0f, true); this.setDead(); } else { + if (age == 0) { + this.worldObj.playSoundEffect(this.posX, this.posY, this.posZ, "Avaritia:gapingVoid", 8.0F, 1.0F); + } this.setAge(age+1); } + + // poot poot + double particlespeed = 4.5; + + double size = getVoidScale(age)*0.5 - 0.2; + for(int i=0; i<50; i++) { + Vec3 pootdir = Vec3.createVectorHelper(0, 0, size); + pootdir.rotateAroundY(randy.nextFloat()*180f); + pootdir.rotateAroundX(randy.nextFloat()*360f); + + Vec3 pootspeed = pootdir.normalize(); + pootspeed.xCoord *= particlespeed; + pootspeed.yCoord *= particlespeed; + pootspeed.zCoord *= particlespeed; + + this.worldObj.spawnParticle("portal", this.posX + pootdir.xCoord, this.posY + pootdir.yCoord, this.posZ + pootdir.zCoord, pootspeed.xCoord, pootspeed.yCoord, pootspeed.zCoord); + } + + // *slurping noises* + AxisAlignedBB suckzone = AxisAlignedBB.getBoundingBox(this.posX - suckrange, this.posY - suckrange, this.posZ - suckrange, this.posX + suckrange, this.posY + suckrange, this.posZ + suckrange); + List sucked = this.worldObj.selectEntitiesWithinAABB(Entity.class, suckzone, sucklector); + + double radius = getVoidScale(age)*0.5; + + for (Entity suckee : sucked) { + if (suckee != this) { + double dx = this.posX - suckee.posX; + double dy = this.posY - suckee.posY; + double dz = this.posZ - suckee.posZ; + + double lensquared = dx*dx + dy*dy + dz*dz; + double len = Math.sqrt(lensquared); + double lenn = len/suckrange; + + if (len <= suckrange) { + double strength = (1-lenn)*(1-lenn); + double power = 0.075 * radius; + + suckee.motionX += (dx/len)*strength*power; + suckee.motionY += (dy/len)*strength*power; + suckee.motionZ += (dz/len)*strength*power; + } + } + } + + // om nom nom + double nomrange = radius*0.95; + AxisAlignedBB nomzone = AxisAlignedBB.getBoundingBox(this.posX - nomrange, this.posY - nomrange, this.posZ - nomrange, this.posX + nomrange, this.posY + nomrange, this.posZ + nomrange); + List nommed = this.worldObj.selectEntitiesWithinAABB(EntityLivingBase.class, nomzone, nomlector); + + for (Entity nommee : nommed) { + if (nommee != this) { + double dx = this.posX - nommee.posX; + double dy = this.posY - nommee.posY; + double dz = this.posZ - nommee.posZ; + + double lensquared = dx*dx + dy*dy + dz*dz; + double len = Math.sqrt(lensquared); + + if (len <= nomrange) { + nommee.attackEntityFrom(DamageSource.outOfWorld, 3.0f); + } + } + } + + // every half second, SMASH STUFF + if (age % 10 == 0) { + int bx = (int) Math.floor(this.posX); + int by = (int) Math.floor(this.posY); + int bz = (int) Math.floor(this.posZ); + + int blockrange = (int) Math.round(nomrange); + int lx,ly,lz; + + for (int y = -blockrange; y <= blockrange; y++) { + for (int z = -blockrange; z <= blockrange; z++) { + for (int x = -blockrange; x <= blockrange; x++) { + lx = bx+x; + ly = by+y; + lz = bz+z; + + if (ly < 0 || ly > 255) { + continue; + } + + double dist = Math.sqrt(x*x+y*y+z*z); + if (dist <= nomrange && !this.worldObj.isAirBlock(lx, ly, lz)) { + Block b = this.worldObj.getBlock(lx, ly, lz); + int meta = this.worldObj.getBlockMetadata(lx, ly, lz); + float resist = b.getExplosionResistance(this, this.worldObj, lx, ly, lz, this.posX, this.posY, this.posZ); + if (resist <= 10.0) { + b.dropBlockAsItemWithChance(worldObj, lx, ly, lz, meta, 0.9f, 0); + this.worldObj.setBlockToAir(lx, ly, lz); + } + } + } + } + } + } } @@ -39,7 +197,7 @@ public class EntityGapingVoid extends Entity { dataWatcher.updateObject(12, age); } - private int getAge() { + public int getAge() { return dataWatcher.getWatchableObjectInt(12); } @@ -52,4 +210,34 @@ public class EntityGapingVoid extends Entity { protected void writeEntityToNBT(NBTTagCompound tag) { tag.setInteger("age", this.getAge()); } + + public static double getVoidScale(double age) { + double life = age / (double)maxLifetime; + + double curve; + if (life < collapse) { + curve = 0.005 + ease(1-((collapse-life)/collapse))* 0.995; + } else { + curve = ease(1-((life-collapse)/(1-collapse))); + } + return 10.0*curve; + } + + private static double ease(double in) { + double t = in-1; + return Math.sqrt(1 - t*t); + } + + @Override + @SideOnly(Side.CLIENT) + public float getShadowSize() + { + return 0.0F; + } + + @Override + public boolean canBeCollidedWith() + { + return false; + } } diff --git a/src/main/java/fox/spiteful/avaritia/entity/LudicrousEntities.java b/src/main/java/fox/spiteful/avaritia/entity/LudicrousEntities.java index 8ef1856..5225899 100644 --- a/src/main/java/fox/spiteful/avaritia/entity/LudicrousEntities.java +++ b/src/main/java/fox/spiteful/avaritia/entity/LudicrousEntities.java @@ -7,6 +7,6 @@ public class LudicrousEntities { public static void letLooseTheDogsOfWar() { EntityRegistry.registerModEntity(EntityEndestPearl.class, "EndestPearl", 1, Avaritia.instance, 64, 10, true); - EntityRegistry.registerModEntity(EntityGapingVoid.class, "GapingVoid", 2, Avaritia.instance, 64, 10, false); + EntityRegistry.registerModEntity(EntityGapingVoid.class, "GapingVoid", 2, Avaritia.instance, 256, 10, false); } } diff --git a/src/main/java/fox/spiteful/avaritia/render/RenderGapingVoid.java b/src/main/java/fox/spiteful/avaritia/render/RenderGapingVoid.java new file mode 100644 index 0000000..ac7b73f --- /dev/null +++ b/src/main/java/fox/spiteful/avaritia/render/RenderGapingVoid.java @@ -0,0 +1,153 @@ +package fox.spiteful.avaritia.render; + +import org.lwjgl.opengl.GL11; + +import fox.spiteful.avaritia.ClientProxy; +import fox.spiteful.avaritia.Lumberjack; +import fox.spiteful.avaritia.entity.EntityGapingVoid; + +import net.minecraft.client.Minecraft; +import net.minecraft.client.renderer.Tessellator; +import net.minecraft.client.renderer.entity.Render; +import net.minecraft.client.renderer.entity.RenderManager; +import net.minecraft.entity.Entity; +import net.minecraft.util.ResourceLocation; +import net.minecraftforge.client.model.AdvancedModelLoader; +import net.minecraftforge.client.model.IModelCustom; + +public class RenderGapingVoid extends Render { + + private ResourceLocation fill = new ResourceLocation("avaritia", "textures/entity/void.png"); + private ResourceLocation halo = new ResourceLocation("avaritia", "textures/entity/voidhalo.png"); + private IModelCustom model; + + public RenderGapingVoid() { + this.model = AdvancedModelLoader.loadModel(new ResourceLocation("avaritia", "model/hemisphere.obj")); + } + + @Override + public void doRender(Entity ent, double x, double y, double z, float p_76986_8_, float partialTicks) { + EntityGapingVoid egv = (EntityGapingVoid)ent; + Minecraft mc =Minecraft.getMinecraft(); + mc.renderEngine.bindTexture(this.halo); + Tessellator tess = Tessellator.instance; + + double age = egv.getAge() + partialTicks; + + setColour(age, 1.0); + + double scale = EntityGapingVoid.getVoidScale(age); + + double fullfadedist = 0.6 * scale; + double fadedist = fullfadedist + 1.5; + + double halocoord = 0.58 * scale; + double haloscaledist = 2.2 * scale; + + double dx = ent.posX - RenderManager.renderPosX; + double dy = ent.posY - RenderManager.renderPosY; + double dz = ent.posZ - RenderManager.renderPosZ; + + double xzlen = Math.sqrt(dx*dx + dz*dz); + double len = Math.sqrt(dx*dx + dy*dy + dz*dz); + + if (len <= haloscaledist) { + double close = (haloscaledist-len)/haloscaledist; + halocoord *= 1.0 + close*close*close*close*1.5; + } + + double yang = Math.atan2(xzlen, dy) * ClientProxy.toDeg; + double xang = Math.atan2(dx, dz) * ClientProxy.toDeg; + + //Lumberjack.info("dx: "+dx+", dy: "+dy+", dz: "+dz+", xang: "+xang); + //Lumberjack.info("x: "+x+", y: "+y+", z: "+z); + + GL11.glDisable(GL11.GL_LIGHTING); + mc.entityRenderer.disableLightmap(0.0); + + GL11.glPushMatrix(); + { + GL11.glTranslated(x, y, z); + + GL11.glRotated(xang, 0, 1, 0); + GL11.glRotated(yang+90, 1, 0, 0); + + GL11.glPushMatrix(); + { + GL11.glRotated(90, 1, 0, 0); + + GL11.glDisable(GL11.GL_ALPHA_TEST); + GL11.glEnable(GL11.GL_BLEND); + GL11.glDepthMask(false); + + tess.startDrawingQuads(); + tess.addVertexWithUV(-halocoord,0.0,-halocoord, 0.0, 0.0); + tess.addVertexWithUV(-halocoord,0.0, halocoord, 0.0, 1.0); + tess.addVertexWithUV( halocoord,0.0, halocoord, 1.0, 1.0); + tess.addVertexWithUV( halocoord,0.0,-halocoord, 1.0, 0.0); + tess.draw(); + + GL11.glDepthMask(true); + GL11.glDisable(GL11.GL_BLEND); + GL11.glEnable(GL11.GL_ALPHA_TEST); + } + GL11.glPopMatrix(); + + Minecraft.getMinecraft().renderEngine.bindTexture(this.fill); + + GL11.glScaled(scale, scale, scale); + + model.renderAll(); + + + } + GL11.glPopMatrix(); + + if (len <= fadedist) { + double alpha = 1.0; + if (len >= fullfadedist) { + alpha = 1.0 - ((len - fullfadedist) / (fadedist - fullfadedist)); + alpha = alpha*alpha*(3 - 2*alpha); + } + setColour(age, alpha); + GL11.glPushMatrix(); + { + GL11.glDisable(GL11.GL_ALPHA_TEST); + GL11.glEnable(GL11.GL_BLEND); + + GL11.glRotatef(180.0F - this.renderManager.playerViewY, 0.0F, 1.0F, 0.0F); + GL11.glRotatef(-this.renderManager.playerViewX, 1.0F, 0.0F, 0.0F); + + double d = 0; + + tess.startDrawingQuads(); + tess.addVertexWithUV(-100, 100, d, 0.0, 0.0); + tess.addVertexWithUV(-100,-100, d, 0.0, 1.0); + tess.addVertexWithUV( 100,-100, d, 1.0, 1.0); + tess.addVertexWithUV( 100, 100, d, 1.0, 0.0); + tess.draw(); + + GL11.glDisable(GL11.GL_BLEND); + GL11.glEnable(GL11.GL_ALPHA_TEST); + } + GL11.glPopMatrix(); + } + + mc.entityRenderer.enableLightmap(0.0); + GL11.glEnable(GL11.GL_LIGHTING); + + GL11.glColor4d(1, 1, 1, 1); + } + + @Override + protected ResourceLocation getEntityTexture(Entity ent) { + return this.fill; + } + + private void setColour(double age, double alpha) { + double life = (age / (double)EntityGapingVoid.maxLifetime); + double f = Math.max(0, (life - EntityGapingVoid.collapse)/(1-EntityGapingVoid.collapse)); + f = Math.max(f, 1-(life*30)); + GL11.glColor4d(f, f, f, alpha); + } +} diff --git a/src/main/resources/assets/avaritia/model/hemisphere.obj b/src/main/resources/assets/avaritia/model/hemisphere.obj new file mode 100644 index 0000000..0ba6c7e --- /dev/null +++ b/src/main/resources/assets/avaritia/model/hemisphere.obj @@ -0,0 +1,503 @@ +# 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware +# File Created: 19.07.2015 17:22:45 + +# +# object model +# + +v 0.0000 0.0000 0.5000 +v -0.0000 0.1366 0.4810 +v -0.1299 0.0422 0.4810 +v -0.0000 0.2629 0.4253 +v -0.1314 0.1809 0.4472 +v -0.2500 0.0812 0.4253 +v -0.0803 -0.1105 0.4810 +v -0.2127 -0.0691 0.4472 +v -0.1545 -0.2127 0.4253 +v 0.0803 -0.1105 0.4810 +v 0.0000 -0.2236 0.4472 +v 0.1545 -0.2127 0.4253 +v 0.1299 0.0422 0.4810 +v 0.2127 -0.0691 0.4472 +v 0.2500 0.0812 0.4253 +v 0.1314 0.1809 0.4472 +v -0.2500 0.3441 0.2629 +v -0.2629 0.2236 0.3618 +v -0.1314 0.3191 0.3618 +v -0.4045 -0.1314 0.2629 +v -0.2939 -0.1809 0.3618 +v -0.3441 -0.0264 0.3618 +v 0.0000 -0.4253 0.2629 +v 0.0812 -0.3354 0.3618 +v -0.0812 -0.3354 0.3618 +v 0.4045 -0.1314 0.2629 +v 0.3441 -0.0264 0.3618 +v 0.2939 -0.1809 0.3618 +v 0.2500 0.3441 0.2629 +v 0.1314 0.3191 0.3618 +v 0.2629 0.2236 0.3618 +v -0.0000 0.3691 0.3373 +v 0.1299 0.4113 0.2529 +v -0.0000 0.4472 0.2236 +v -0.1299 0.4113 0.2529 +v -0.3510 0.1141 0.3373 +v -0.3510 0.2507 0.2529 +v -0.4253 0.1382 0.2236 +v -0.4313 0.0035 0.2529 +v -0.2169 -0.2986 0.3373 +v -0.3469 -0.2564 0.2529 +v -0.2629 -0.3618 0.2236 +v -0.1366 -0.4091 0.2529 +v 0.2169 -0.2986 0.3373 +v 0.1366 -0.4091 0.2529 +v 0.2629 -0.3618 0.2236 +v 0.3469 -0.2564 0.2529 +v 0.3510 0.1141 0.3373 +v 0.4313 0.0035 0.2529 +v 0.4253 0.1382 0.2236 +v 0.3510 0.2507 0.2529 +v -0.1545 0.4755 0.0000 +v -0.2127 0.4309 0.1382 +v -0.0803 0.4796 0.1162 +v -0.4045 0.2939 0.0000 +v -0.4313 0.2246 0.1162 +v -0.3441 0.3354 0.1382 +v -0.5000 -0.0000 0.0000 +v -0.4755 -0.0691 0.1382 +v -0.4810 0.0718 0.1162 +v -0.4045 -0.2939 0.0000 +v -0.3469 -0.3408 0.1162 +v -0.4253 -0.2236 0.1382 +v -0.1545 -0.4755 0.0000 +v -0.0812 -0.4736 0.1382 +v -0.2169 -0.4352 0.1162 +v 0.1545 -0.4755 0.0000 +v 0.2169 -0.4352 0.1162 +v 0.0812 -0.4736 0.1382 +v 0.4045 -0.2939 0.0000 +v 0.4253 -0.2236 0.1382 +v 0.3469 -0.3408 0.1162 +v 0.5000 0.0000 0.0000 +v 0.4810 0.0718 0.1162 +v 0.4755 -0.0691 0.1382 +v 0.4045 0.2939 0.0000 +v 0.3441 0.3354 0.1382 +v 0.4313 0.2246 0.1162 +v 0.1545 0.4755 0.0000 +v 0.0803 0.4796 0.1162 +v 0.2127 0.4309 0.1382 +v -0.0000 0.5000 0.0000 +v -0.2939 0.4045 0.0000 +v -0.4755 0.1545 0.0000 +v -0.4755 -0.1545 0.0000 +v -0.2939 -0.4045 0.0000 +v 0.0000 -0.5000 0.0000 +v 0.2939 -0.4045 0.0000 +v 0.4755 -0.1545 0.0000 +v 0.4755 0.1545 0.0000 +v 0.2939 0.4045 0.0000 +v 0.0000 0.0000 0.0000 +# 92 vertices + +vn -0.0000 -0.0000 1.0000 +vn -0.0000 0.2713 0.9625 +vn -0.2580 0.0838 0.9625 +vn -0.0000 0.5257 0.8507 +vn -0.2683 0.3693 0.8897 +vn -0.5000 0.1625 0.8507 +vn -0.1595 -0.2195 0.9625 +vn -0.4341 -0.1411 0.8897 +vn -0.3090 -0.4253 0.8507 +vn 0.1595 -0.2195 0.9625 +vn 0.0000 -0.4565 0.8897 +vn 0.3090 -0.4253 0.8507 +vn 0.2580 0.0838 0.9625 +vn 0.4341 -0.1411 0.8897 +vn 0.5000 0.1625 0.8507 +vn 0.2683 0.3693 0.8897 +vn -0.5000 0.6882 0.5257 +vn -0.5169 0.4501 0.7282 +vn -0.2683 0.6306 0.7282 +vn -0.8090 -0.2629 0.5257 +vn -0.5878 -0.3525 0.7282 +vn -0.6827 -0.0603 0.7282 +vn 0.0000 -0.8507 0.5257 +vn 0.1536 -0.6679 0.7282 +vn -0.1536 -0.6679 0.7282 +vn 0.8090 -0.2629 0.5257 +vn 0.6827 -0.0603 0.7282 +vn 0.5878 -0.3525 0.7282 +vn 0.5000 0.6882 0.5257 +vn 0.2683 0.6306 0.7282 +vn 0.5169 0.4501 0.7282 +vn -0.0000 0.7396 0.6731 +vn 0.2580 0.8234 0.5054 +vn -0.0000 0.8944 0.4472 +vn -0.2580 0.8234 0.5054 +vn -0.7034 0.2285 0.6731 +vn -0.7034 0.4998 0.5054 +vn -0.8507 0.2764 0.4472 +vn -0.8628 0.0090 0.5054 +vn -0.4347 -0.5983 0.6731 +vn -0.6927 -0.5145 0.5054 +vn -0.5257 -0.7236 0.4472 +vn -0.2752 -0.8178 0.5054 +vn 0.4347 -0.5983 0.6731 +vn 0.2752 -0.8178 0.5054 +vn 0.5257 -0.7236 0.4472 +vn 0.6927 -0.5145 0.5054 +vn 0.7034 0.2285 0.6731 +vn 0.8628 0.0090 0.5054 +vn 0.8507 0.2764 0.4472 +vn 0.7034 0.4998 0.5054 +vn -0.3148 0.9427 0.1106 +vn -0.4341 0.8589 0.2717 +vn -0.1595 0.9590 0.2341 +vn -0.7993 0.5907 0.1106 +vn -0.8628 0.4480 0.2341 +vn -0.6827 0.6783 0.2717 +vn -0.9938 -0.0081 0.1106 +vn -0.9510 -0.1475 0.2717 +vn -0.9614 0.1447 0.2341 +vn -0.8088 -0.5776 0.1106 +vn -0.6927 -0.6821 0.2341 +vn -0.8561 -0.4397 0.2717 +vn -0.2994 -0.9477 0.1106 +vn -0.1536 -0.9500 0.2717 +vn -0.4347 -0.8696 0.2341 +vn 0.2994 -0.9477 0.1106 +vn 0.4347 -0.8696 0.2341 +vn 0.1536 -0.9500 0.2717 +vn 0.8088 -0.5776 0.1106 +vn 0.8561 -0.4397 0.2717 +vn 0.6927 -0.6821 0.2341 +vn 0.9938 -0.0081 0.1106 +vn 0.9614 0.1447 0.2341 +vn 0.9510 -0.1475 0.2717 +vn 0.7993 0.5907 0.1106 +vn 0.6827 0.6783 0.2717 +vn 0.8628 0.4480 0.2341 +vn 0.3148 0.9427 0.1106 +vn 0.1595 0.9590 0.2341 +vn 0.4341 0.8589 0.2717 +vn -0.0000 0.9942 0.1073 +vn -0.5829 0.8023 0.1283 +vn -0.9456 0.3072 0.1073 +vn -0.9432 -0.3065 0.1283 +vn -0.5844 -0.8043 0.1073 +vn 0.0000 -0.9917 0.1283 +vn 0.5844 -0.8043 0.1073 +vn 0.9432 -0.3065 0.1283 +vn 0.9456 0.3072 0.1073 +vn 0.5829 0.8023 0.1283 +vn 0.0000 0.0000 -1.0000 +# 92 vertex normals + +vt 0.6000 1.0000 0.5000 +vt 0.5000 0.9119 0.5000 +vt 0.7000 0.9119 0.5000 +vt 0.5000 0.8238 0.5000 +vt 0.6000 0.8524 0.5000 +vt 0.7000 0.8238 0.5000 +vt 0.8000 1.0000 0.5000 +vt 0.9000 0.9119 0.5000 +vt 0.8000 0.8524 0.5000 +vt 0.9000 0.8238 0.5000 +vt 0.0000 1.0000 0.5000 +vt -0.1000 0.9119 0.5000 +vt 0.1000 0.9119 0.5000 +vt -0.1000 0.8238 0.5000 +vt 0.0000 0.8524 0.5000 +vt 0.1000 0.8238 0.5000 +vt 0.2000 1.0000 0.5000 +vt 0.3000 0.9119 0.5000 +vt 0.2000 0.8524 0.5000 +vt 0.3000 0.8238 0.5000 +vt 0.4000 1.0000 0.5000 +vt 0.4000 0.8524 0.5000 +vt 0.6000 0.6762 0.5000 +vt 0.6378 0.7575 0.5000 +vt 0.5622 0.7575 0.5000 +vt 0.8000 0.6762 0.5000 +vt 0.8378 0.7575 0.5000 +vt 0.7622 0.7575 0.5000 +vt 0.0000 0.6762 0.5000 +vt 0.0378 0.7575 0.5000 +vt -0.0378 0.7575 0.5000 +vt 0.2000 0.6762 0.5000 +vt 0.2378 0.7575 0.5000 +vt 0.1622 0.7575 0.5000 +vt 0.4000 0.6762 0.5000 +vt 0.4378 0.7575 0.5000 +vt 0.3622 0.7575 0.5000 +vt 0.5000 0.7357 0.5000 +vt 0.4513 0.6688 0.5000 +vt 0.5000 0.6476 0.5000 +vt 0.5487 0.6688 0.5000 +vt 0.7000 0.7357 0.5000 +vt 0.6513 0.6688 0.5000 +vt 0.7000 0.6476 0.5000 +vt 0.7487 0.6688 0.5000 +vt 0.9000 0.7357 0.5000 +vt 0.8513 0.6688 0.5000 +vt 0.9000 0.6476 0.5000 +vt 0.9622 0.7575 0.5000 +vt 0.9487 0.6688 0.5000 +vt -0.0513 0.6688 0.5000 +vt 0.1000 0.7357 0.5000 +vt 0.0513 0.6688 0.5000 +vt 0.1000 0.6476 0.5000 +vt 0.1487 0.6688 0.5000 +vt 0.3000 0.7357 0.5000 +vt 0.2513 0.6688 0.5000 +vt 0.3000 0.6476 0.5000 +vt 0.3487 0.6688 0.5000 +vt 0.5500 0.5000 0.5000 +vt 0.5730 0.5891 0.5000 +vt 0.5264 0.5747 0.5000 +vt 0.6500 0.5000 0.5000 +vt 0.6736 0.5747 0.5000 +vt 0.6270 0.5891 0.5000 +vt 0.7500 0.5000 0.5000 +vt 0.7730 0.5891 0.5000 +vt 0.7264 0.5747 0.5000 +vt 0.8500 0.5000 0.5000 +vt 0.8736 0.5747 0.5000 +vt 0.8270 0.5891 0.5000 +vt 0.9500 0.5000 0.5000 +vt 0.9730 0.5891 0.5000 +vt 0.9264 0.5747 0.5000 +vt -0.0270 0.5891 0.5000 +vt 0.0500 0.5000 0.5000 +vt 0.0736 0.5747 0.5000 +vt 0.0270 0.5891 0.5000 +vt 0.1500 0.5000 0.5000 +vt 0.1730 0.5891 0.5000 +vt 0.1264 0.5747 0.5000 +vt 0.2500 0.5000 0.5000 +vt 0.2736 0.5747 0.5000 +vt 0.2270 0.5891 0.5000 +vt 0.3500 0.5000 0.5000 +vt 0.3730 0.5891 0.5000 +vt 0.3264 0.5747 0.5000 +vt 0.4500 0.5000 0.5000 +vt 0.4736 0.5747 0.5000 +vt 0.4270 0.5891 0.5000 +vt 0.5000 0.5000 0.5000 +vt 0.6000 0.5000 0.5000 +vt 0.7000 0.5000 0.5000 +vt 0.8000 0.5000 0.5000 +vt 0.9000 0.5000 0.5000 +vt -0.0500 0.5000 0.5000 +vt 0.0000 0.5000 0.5000 +vt 0.1000 0.5000 0.5000 +vt 0.2000 0.5000 0.5000 +vt 0.3000 0.5000 0.5000 +vt 0.4000 0.5000 0.5000 +vt 0.4750 0.5000 0.0000 +vt 0.5250 0.5000 0.0000 +vt 0.5750 0.5000 0.0000 +vt 0.6250 0.5000 0.0000 +vt 0.6750 0.5000 0.0000 +vt 0.7250 0.5000 0.0000 +vt 0.7750 0.5000 0.0000 +vt 0.8250 0.5000 0.0000 +vt 0.8750 0.5000 0.0000 +vt 0.9250 0.5000 0.0000 +vt -0.0250 0.5000 0.0000 +vt 0.0250 0.5000 0.0000 +vt 0.0750 0.5000 0.0000 +vt 0.1250 0.5000 0.0000 +vt 0.1750 0.5000 0.0000 +vt 0.2250 0.5000 0.0000 +vt 0.2750 0.5000 0.0000 +vt 0.3250 0.5000 0.0000 +vt 0.3750 0.5000 0.0000 +vt 0.4250 0.5000 0.0000 +# 121 texture coords + +g model +s 1 +f 1/1/1 2/2/2 3/3/3 +f 2/2/2 4/4/4 5/5/5 +f 2/2/2 5/5/5 3/3/3 +f 3/3/3 5/5/5 6/6/6 +f 1/7/1 3/3/3 7/8/7 +f 3/3/3 6/6/6 8/9/8 +f 3/3/3 8/9/8 7/8/7 +f 7/8/7 8/9/8 9/10/9 +f 1/11/1 7/12/7 10/13/10 +f 7/12/7 9/14/9 11/15/11 +f 7/12/7 11/15/11 10/13/10 +f 10/13/10 11/15/11 12/16/12 +f 1/17/1 10/13/10 13/18/13 +f 10/13/10 12/16/12 14/19/14 +f 10/13/10 14/19/14 13/18/13 +f 13/18/13 14/19/14 15/20/15 +f 1/21/1 13/18/13 2/2/2 +f 13/18/13 15/20/15 16/22/16 +f 13/18/13 16/22/16 2/2/2 +f 2/2/2 16/22/16 4/4/4 +f 17/23/17 18/24/18 19/25/19 +f 18/24/18 6/6/6 5/5/5 +f 18/24/18 5/5/5 19/25/19 +f 19/25/19 5/5/5 4/4/4 +f 20/26/20 21/27/21 22/28/22 +f 21/27/21 9/10/9 8/9/8 +f 21/27/21 8/9/8 22/28/22 +f 22/28/22 8/9/8 6/6/6 +f 23/29/23 24/30/24 25/31/25 +f 24/30/24 12/16/12 11/15/11 +f 24/30/24 11/15/11 25/31/25 +f 25/31/25 11/15/11 9/14/9 +f 26/32/26 27/33/27 28/34/28 +f 27/33/27 15/20/15 14/19/14 +f 27/33/27 14/19/14 28/34/28 +f 28/34/28 14/19/14 12/16/12 +f 29/35/29 30/36/30 31/37/31 +f 30/36/30 4/4/4 16/22/16 +f 30/36/30 16/22/16 31/37/31 +f 31/37/31 16/22/16 15/20/15 +f 4/4/4 30/36/30 32/38/32 +f 30/36/30 29/35/29 33/39/33 +f 30/36/30 33/39/33 32/38/32 +f 32/38/32 33/39/33 34/40/34 +f 4/4/4 32/38/32 19/25/19 +f 32/38/32 34/40/34 35/41/35 +f 32/38/32 35/41/35 19/25/19 +f 19/25/19 35/41/35 17/23/17 +f 6/6/6 18/24/18 36/42/36 +f 18/24/18 17/23/17 37/43/37 +f 18/24/18 37/43/37 36/42/36 +f 36/42/36 37/43/37 38/44/38 +f 6/6/6 36/42/36 22/28/22 +f 36/42/36 38/44/38 39/45/39 +f 36/42/36 39/45/39 22/28/22 +f 22/28/22 39/45/39 20/26/20 +f 9/10/9 21/27/21 40/46/40 +f 21/27/21 20/26/20 41/47/41 +f 21/27/21 41/47/41 40/46/40 +f 40/46/40 41/47/41 42/48/42 +f 9/10/9 40/46/40 25/49/25 +f 40/46/40 42/48/42 43/50/43 +f 40/46/40 43/50/43 25/49/25 +f 25/31/25 43/51/43 23/29/23 +f 12/16/12 24/30/24 44/52/44 +f 24/30/24 23/29/23 45/53/45 +f 24/30/24 45/53/45 44/52/44 +f 44/52/44 45/53/45 46/54/46 +f 12/16/12 44/52/44 28/34/28 +f 44/52/44 46/54/46 47/55/47 +f 44/52/44 47/55/47 28/34/28 +f 28/34/28 47/55/47 26/32/26 +f 15/20/15 27/33/27 48/56/48 +f 27/33/27 26/32/26 49/57/49 +f 27/33/27 49/57/49 48/56/48 +f 48/56/48 49/57/49 50/58/50 +f 15/20/15 48/56/48 31/37/31 +f 48/56/48 50/58/50 51/59/51 +f 48/56/48 51/59/51 31/37/31 +f 31/37/31 51/59/51 29/35/29 +f 52/60/52 53/61/53 54/62/54 +f 53/61/53 17/23/17 35/41/35 +f 53/61/53 35/41/35 54/62/54 +f 54/62/54 35/41/35 34/40/34 +f 55/63/55 56/64/56 57/65/57 +f 56/64/56 38/44/38 37/43/37 +f 56/64/56 37/43/37 57/65/57 +f 57/65/57 37/43/37 17/23/17 +f 58/66/58 59/67/59 60/68/60 +f 59/67/59 20/26/20 39/45/39 +f 59/67/59 39/45/39 60/68/60 +f 60/68/60 39/45/39 38/44/38 +f 61/69/61 62/70/62 63/71/63 +f 62/70/62 42/48/42 41/47/41 +f 62/70/62 41/47/41 63/71/63 +f 63/71/63 41/47/41 20/26/20 +f 64/72/64 65/73/65 66/74/66 +f 65/75/65 23/29/23 43/51/43 +f 65/73/65 43/50/43 66/74/66 +f 66/74/66 43/50/43 42/48/42 +f 67/76/67 68/77/68 69/78/69 +f 68/77/68 46/54/46 45/53/45 +f 68/77/68 45/53/45 69/78/69 +f 69/78/69 45/53/45 23/29/23 +f 70/79/70 71/80/71 72/81/72 +f 71/80/71 26/32/26 47/55/47 +f 71/80/71 47/55/47 72/81/72 +f 72/81/72 47/55/47 46/54/46 +f 73/82/73 74/83/74 75/84/75 +f 74/83/74 50/58/50 49/57/49 +f 74/83/74 49/57/49 75/84/75 +f 75/84/75 49/57/49 26/32/26 +f 76/85/76 77/86/77 78/87/78 +f 77/86/77 29/35/29 51/59/51 +f 77/86/77 51/59/51 78/87/78 +f 78/87/78 51/59/51 50/58/50 +f 79/88/79 80/89/80 81/90/81 +f 80/89/80 34/40/34 33/39/33 +f 80/89/80 33/39/33 81/90/81 +f 81/90/81 33/39/33 29/35/29 +f 34/40/34 80/89/80 54/62/54 +f 80/89/80 79/88/79 82/91/82 +f 80/89/80 82/91/82 54/62/54 +f 54/62/54 82/91/82 52/60/52 +f 17/23/17 53/61/53 57/65/57 +f 53/61/53 52/60/52 83/92/83 +f 53/61/53 83/92/83 57/65/57 +f 57/65/57 83/92/83 55/63/55 +f 38/44/38 56/64/56 60/68/60 +f 56/64/56 55/63/55 84/93/84 +f 56/64/56 84/93/84 60/68/60 +f 60/68/60 84/93/84 58/66/58 +f 20/26/20 59/67/59 63/71/63 +f 59/67/59 58/66/58 85/94/85 +f 59/67/59 85/94/85 63/71/63 +f 63/71/63 85/94/85 61/69/61 +f 42/48/42 62/70/62 66/74/66 +f 62/70/62 61/69/61 86/95/86 +f 62/70/62 86/95/86 66/74/66 +f 66/74/66 86/95/86 64/72/64 +f 23/29/23 65/75/65 69/78/69 +f 65/75/65 64/96/64 87/97/87 +f 65/75/65 87/97/87 69/78/69 +f 69/78/69 87/97/87 67/76/67 +f 46/54/46 68/77/68 72/81/72 +f 68/77/68 67/76/67 88/98/88 +f 68/77/68 88/98/88 72/81/72 +f 72/81/72 88/98/88 70/79/70 +f 26/32/26 71/80/71 75/84/75 +f 71/80/71 70/79/70 89/99/89 +f 71/80/71 89/99/89 75/84/75 +f 75/84/75 89/99/89 73/82/73 +f 50/58/50 74/83/74 78/87/78 +f 74/83/74 73/82/73 90/100/90 +f 74/83/74 90/100/90 78/87/78 +f 78/87/78 90/100/90 76/85/76 +f 29/35/29 77/86/77 81/90/81 +f 77/86/77 76/85/76 91/101/91 +f 77/86/77 91/101/91 81/90/81 +f 81/90/81 91/101/91 79/88/79 +s 2 +f 82/91/92 79/88/92 92/102/92 +f 52/60/92 82/91/92 92/103/92 +f 83/92/92 52/60/92 92/104/92 +f 55/63/92 83/92/92 92/105/92 +f 84/93/92 55/63/92 92/106/92 +f 58/66/92 84/93/92 92/107/92 +f 85/94/92 58/66/92 92/108/92 +f 61/69/92 85/94/92 92/109/92 +f 86/95/92 61/69/92 92/110/92 +f 64/72/92 86/95/92 92/111/92 +f 87/97/92 64/96/92 92/112/92 +f 67/76/92 87/97/92 92/113/92 +f 88/98/92 67/76/92 92/114/92 +f 70/79/92 88/98/92 92/115/92 +f 89/99/92 70/79/92 92/116/92 +f 73/82/92 89/99/92 92/117/92 +f 90/100/92 73/82/92 92/118/92 +f 76/85/92 90/100/92 92/119/92 +f 91/101/92 76/85/92 92/120/92 +f 79/88/92 91/101/92 92/121/92 +# 180 faces + diff --git a/src/main/resources/assets/avaritia/sounds.json b/src/main/resources/assets/avaritia/sounds.json new file mode 100644 index 0000000..8fe8c10 --- /dev/null +++ b/src/main/resources/assets/avaritia/sounds.json @@ -0,0 +1,3 @@ +{ +"gapingVoid": {"category": "hostile", "sounds": ["gapingVoid"]} +} \ No newline at end of file diff --git a/src/main/resources/assets/avaritia/sounds/gapingVoid.ogg b/src/main/resources/assets/avaritia/sounds/gapingVoid.ogg new file mode 100644 index 0000000..7d6e79b Binary files /dev/null and b/src/main/resources/assets/avaritia/sounds/gapingVoid.ogg differ diff --git a/src/main/resources/assets/avaritia/textures/entity/void.png b/src/main/resources/assets/avaritia/textures/entity/void.png new file mode 100644 index 0000000..20c4387 Binary files /dev/null and b/src/main/resources/assets/avaritia/textures/entity/void.png differ diff --git a/src/main/resources/assets/avaritia/textures/entity/voidhalo.png b/src/main/resources/assets/avaritia/textures/entity/voidhalo.png new file mode 100644 index 0000000..fe1c274 Binary files /dev/null and b/src/main/resources/assets/avaritia/textures/entity/voidhalo.png differ diff --git a/src/main/resources/assets/avaritia/textures/entity/voidhalo.png.mcmeta b/src/main/resources/assets/avaritia/textures/entity/voidhalo.png.mcmeta new file mode 100644 index 0000000..2077f3c --- /dev/null +++ b/src/main/resources/assets/avaritia/textures/entity/voidhalo.png.mcmeta @@ -0,0 +1,6 @@ +{ + "texture": { + "blur": true + } +} + diff --git a/src/main/resources/assets/avaritia/textures/items/halo128.png.mcmeta b/src/main/resources/assets/avaritia/textures/items/halo128.png.mcmeta new file mode 100644 index 0000000..2077f3c --- /dev/null +++ b/src/main/resources/assets/avaritia/textures/items/halo128.png.mcmeta @@ -0,0 +1,6 @@ +{ + "texture": { + "blur": true + } +} +