Jump to content

Particle Effect crash


NeverMind

Recommended Posts

Hey, guys. I need some help with a problem. I tried adding a custom particle effect, but when i want to use it in game, the game crashes. Here is the crash report and the code:

 

 

package com.NeverMind.SonOfGods;

 

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

import net.minecraft.client.Minecraft;

import net.minecraft.client.particle.EntityFX;

import net.minecraft.client.renderer.Tessellator;

import net.minecraft.util.ResourceLocation;

import net.minecraft.world.World;

 

@SideOnly(Side.CLIENT)

public class EntityClothFX extends EntityFX {

 

private static final ResourceLocation texture = new ResourceLocation("Nevermind2:" + "textures/particle/particlecloth.png");

 

protected EntityClothFX(World par1World, double x, double y, double z) {

super(par1World, x, y, z);

setGravity(0);

}

public void renderParticle(Tessellator par1Tessellator, float par2, float par3, float par4, float par5, float par6, float par7)

{

float f6 = (float)this.particleTextureIndexX / 16.0F;

    float f7 = f6 + 0.0624375F;

    float f8 = (float)this.particleTextureIndexY / 16.0F;

    float f9 = f8 + 0.0624375F;

    float f10 = 0.1F * this.particleScale;

 

    if (this.particleIcon != null)

    {

        f6 = this.particleIcon.getMinU();

        f7 = this.particleIcon.getMaxU();

        f8 = this.particleIcon.getMinV();

        f9 = this.particleIcon.getMaxV();

    }

 

    float f11 = (float)(this.prevPosX + (this.posX - this.prevPosX) * (double)par2 - interpPosX);

    float f12 = (float)(this.prevPosY + (this.posY - this.prevPosY) * (double)par2 - interpPosY);

    float f13 = (float)(this.prevPosZ + (this.posZ - this.prevPosZ) * (double)par2 - interpPosZ);

    par1Tessellator.setColorRGBA_F(this.particleRed, this.particleGreen, this.particleBlue, this.particleAlpha);

    par1Tessellator.addVertexWithUV((double)(f11 - par3 * f10 - par6 * f10), (double)(f12 - par4 * f10), (double)(f13 - par5 * f10 - par7 * f10), (double)f7, (double)f9);

    par1Tessellator.addVertexWithUV((double)(f11 - par3 * f10 + par6 * f10), (double)(f12 + par4 * f10), (double)(f13 - par5 * f10 + par7 * f10), (double)f7, (double)f8);

    par1Tessellator.addVertexWithUV((double)(f11 + par3 * f10 + par6 * f10), (double)(f12 + par4 * f10), (double)(f13 + par5 * f10 + par7 * f10), (double)f6, (double)f8);

    par1Tessellator.addVertexWithUV((double)(f11 + par3 * f10 - par6 * f10), (double)(f12 - par4 * f10), (double)(f13 + par5 * f10 - par7 * f10), (double)f6, (double)f9);

}

 

public int getFXLayer()

{

return 3;

}

 

public EntityClothFX setMaxAge(int maxAge){

particleMaxAge = maxAge;

return this;

}

 

public EntityClothFX setGravity(int gravity)

{

particleGravity = gravity;

return this;

}

 

public EntityClothFX setscale(int scale)

{

particleScale = scale;

return this;

}

 

 

//this is how I try to add it in the game

 

Minecraft.getMinecraft().effectRenderer.addEffect(new EntityClothFX(world, (double)x, (double)y, (double)z));

 

---- Minecraft Crash Report ----

// Everything's going to plan. No, really, that was supposed to happen.

 

Time: 7/20/14 4:24 PM

Description: Ticking Particle

 

java.lang.NullPointerException: Ticking Particle

at net.minecraft.entity.Entity.moveEntity(Entity.java:718)

at net.minecraft.client.particle.EntityFX.onUpdate(EntityFX.java:144)

at net.minecraft.client.particle.EffectRenderer.updateEffects(EffectRenderer.java:79)

at net.minecraft.client.Minecraft.runTick(Minecraft.java:2113)

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:996)

at net.minecraft.client.Minecraft.run(Minecraft.java:912)

at net.minecraft.client.main.Main.main(Main.java:112)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at net.minecraft.entity.Entity.moveEntity(Entity.java:718)

at net.minecraft.client.particle.EntityFX.onUpdate(EntityFX.java:144)

 

-- Particle being ticked --

Details:

Particle: EntityClothFX, Pos (-192.71832275390625,4.0,827.936279296875), RGBA (1.0,1.0,1.0,1.0), Age 4

Particle Type: ENTITY_PARTICLE_TEXTURE

Stacktrace:

at net.minecraft.client.particle.EffectRenderer.updateEffects(EffectRenderer.java:79)

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['Player244'/218, l='MpServer', x=-192.72, y=5.62, z=827.94]]

Chunk stats: MultiplayerChunkCache: 225, 225

Level seed: 0

Level generator: ID 01 - flat, ver 0. Features enabled: false

Level generator options:

Level spawn location: World: (-275,4,694), Chunk: (at 13,0,6 in -18,43; contains blocks -288,0,688 to -273,255,703), Region: (-1,1; contains chunks -32,32 to -1,63, blocks -512,0,512 to -1,255,1023)

Level time: 130339 game time, 50600 day time

Level dimension: 0

Level storage version: 0x00000 - Unknown?

Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)

Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false

Forced entities: 66 total; [EntityItem['item.item.rottenFlesh'/128, l='MpServer', x=-246.84, y=4.13, z=823.75], EntityItem['item.item.arrow'/129, l='MpServer', x=-246.50, y=4.13, z=887.06], EntityItem['item.item.bone'/130, l='MpServer', x=-246.84, y=4.13, z=887.50], EntitySlime['Slime'/131, l='MpServer', x=-241.60, y=4.47, z=891.95], EntitySlime['Slime'/132, l='MpServer', x=-237.71, y=4.42, z=883.46], EntitySlime['Slime'/143, l='MpServer', x=-224.21, y=5.50, z=766.33], EntityItem['item.item.seeds'/145, l='MpServer', x=-228.31, y=5.13, z=764.00], EntityItem['item.item.wheat'/146, l='MpServer', x=-226.19, y=5.13, z=766.03], EntityItem['item.item.seeds'/147, l='MpServer', x=-226.97, y=5.13, z=765.50], EntityItem['item.item.rottenFlesh'/148, l='MpServer', x=-231.31, y=4.13, z=812.31], EntityItem['item.item.rottenFlesh'/149, l='MpServer', x=-232.97, y=4.13, z=813.47], EntitySlime['Slime'/150, l='MpServer', x=-224.00, y=4.47, z=812.19], EntitySlime['Slime'/151, l='MpServer', x=-232.91, y=4.48, z=837.14], EntityItem['item.item.rottenFlesh'/152, l='MpServer', x=-231.94, y=4.13, z=859.81], EntityCreeper['Creeper'/153, l='MpServer', x=-236.31, y=4.00, z=848.28], EntitySlime['Slime'/158, l='MpServer', x=-217.32, y=4.47, z=781.56], EntityItem['item.item.arrow'/159, l='MpServer', x=-223.69, y=4.13, z=797.97], EntityZombie['Zombie'/160, l='MpServer', x=-207.83, y=4.00, z=837.51], EntityItem['item.item.arrow'/161, l='MpServer', x=-222.00, y=4.13, z=871.41], EntitySlime['Slime'/173, l='MpServer', x=-191.34, y=4.00, z=768.22], EntitySlime['Slime'/174, l='MpServer', x=-204.68, y=4.47, z=754.48], EntityCow['Cow'/175, l='MpServer', x=-196.38, y=4.00, z=768.28], EntitySlime['Slime'/176, l='MpServer', x=-204.32, y=4.50, z=778.62], EntityItem['item.item.arrow'/177, l='MpServer', x=-198.09, y=4.13, z=797.97], EntityItem['item.item.arrow'/178, l='MpServer', x=-202.69, y=4.13, z=791.63], EntityItem['item.item.bone'/179, l='MpServer', x=-199.47, y=4.13, z=796.75], EntityItem['item.item.bone'/180, l='MpServer', x=-198.94, y=4.13, z=789.00], EntitySlime['Slime'/181, l='MpServer', x=-204.46, y=4.47, z=829.21], EntitySlime['Slime'/182, l='MpServer', x=-197.37, y=4.47, z=856.24], EntitySlime['Slime'/183, l='MpServer', x=-204.59, y=4.47, z=875.19], EntitySlime['Slime'/184, l='MpServer', x=-206.80, y=4.41, z=885.15], EntitySlime['Slime'/187, l='MpServer', x=-176.03, y=4.00, z=762.78], EntitySlime['Slime'/188, l='MpServer', x=-179.13, y=4.11, z=781.08], EntitySlime['Slime'/189, l='MpServer', x=-180.02, y=4.27, z=790.52], EntityItem['item.item.bone'/190, l='MpServer', x=-189.72, y=4.13, z=800.34], EntityItem['item.item.arrow'/191, l='MpServer', x=-190.09, y=4.13, z=819.03], EntityItem['item.item.bone'/192, l='MpServer', x=-186.53, y=4.13, z=816.34], EntitySlime['Slime'/193, l='MpServer', x=-188.66, y=4.00, z=855.00], EntitySlime['Slime'/200, l='MpServer', x=-158.66, y=4.33, z=876.45], EntitySlime['Slime'/204, l='MpServer', x=-143.80, y=4.50, z=831.84], EntitySlime['Slime'/205, l='MpServer', x=-161.18, y=4.44, z=842.41], EntitySlime['Slime'/206, l='MpServer', x=-155.98, y=4.50, z=850.98], EntitySlime['Slime'/207, l='MpServer', x=-154.14, y=4.50, z=865.20], EntitySlime['Slime'/210, l='MpServer', x=-131.59, y=4.00, z=804.94], EntitySlime['Slime'/211, l='MpServer', x=-141.96, y=4.11, z=843.34], EntitySlime['Slime'/212, l='MpServer', x=-134.69, y=4.00, z=866.53], EntitySlime['Slime'/213, l='MpServer', x=-137.24, y=4.00, z=849.33], EntitySlime['Slime'/214, l='MpServer', x=-123.44, y=4.00, z=845.16], EntitySlime['Slime'/215, l='MpServer', x=-125.00, y=4.11, z=832.04], EntitySlime['Slime'/216, l='MpServer', x=-120.62, y=4.33, z=865.99], EntitySlime['Slime'/217, l='MpServer', x=-123.26, y=4.00, z=882.31], EntitySlime['Slime'/223, l='MpServer', x=-186.26, y=4.00, z=899.29], EntitySlime['Slime'/226, l='MpServer', x=-158.19, y=4.00, z=897.91], EntityClientPlayerMP['Player244'/218, l='MpServer', x=-192.72, y=5.62, z=827.94], EntityCow['Cow'/101, l='MpServer', x=-272.78, y=4.00, z=800.28], EntityCow['Cow'/114, l='MpServer', x=-268.59, y=5.00, z=756.41], EntitySlime['Slime'/115, l='MpServer', x=-259.21, y=5.47, z=766.94], EntityChicken['Chicken'/116, l='MpServer', x=-260.47, y=4.00, z=777.56], EntitySlime['Slime'/117, l='MpServer', x=-267.58, y=4.24, z=778.82], EntityChicken['Chicken'/118, l='MpServer', x=-265.25, y=4.00, z=796.19], EntityCow['Cow'/119, l='MpServer', x=-270.28, y=4.00, z=786.31], EntityBat['Bat'/120, l='MpServer', x=-254.48, y=4.58, z=801.21], EntitySlime['Slime'/121, l='MpServer', x=-260.78, y=4.24, z=826.24], EntitySlime['Slime'/124, l='MpServer', x=-266.12, y=4.23, z=862.93], EntitySlime['Slime'/126, l='MpServer', x=-252.35, y=4.23, z=762.94], EntitySlime['Slime'/127, l='MpServer', x=-248.63, y=4.00, z=775.46]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

Stacktrace:

at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:412)

at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2523)

at net.minecraft.client.Minecraft.run(Minecraft.java:934)

at net.minecraft.client.main.Main.main(Main.java:112)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

 

-- System Details --

Details:

Minecraft Version: 1.7.2

Operating System: Windows 7 (amd64) version 6.1

Java Version: 1.8.0_05, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 926761136 bytes (883 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 34851 (1951656 bytes; 1 MB) allocated, 1665 (93240 bytes; 0 MB) used

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v9.03 FML v7.2.211.1121 Minecraft Forge 10.12.2.1121 6 mods loaded, 6 mods active

mcp{9.03} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

FML{7.2.211.1121} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.2.1121.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Forge{10.12.2.1121} [Minecraft Forge] (forgeSrc-1.7.2-10.12.2.1121.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

SonOfGods{1.0} [sonOfGods] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

NeverMind{1.0} [FirstMod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Launched Version: 1.6

LWJGL: 2.9.0

OpenGL: GeForce GTX 560 Ti/PCIe/SSE2 GL version 4.4.0, NVIDIA Corporation

Is Modded: Definitely; Client brand changed to 'fml,forge'

Type: Client (map_client.txt)

Resource Packs: []

Current Language: English (US)

Profiler Position: N/A (disabled)

Vec3 Pool Size: 1445 (80920 bytes; 0 MB) allocated, 135 (7560 bytes; 0 MB) used

Anisotropic Filtering: Off (1)

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • so my minecraft crashes when opening my world, i played without any troubles for about 5 days and today it started tweaking.. pls help me
    • Hi guys! I am having some issues with the server crashing over and over and I was hoping to get some guidance.  Thanks in advance! Crash 1: java.lang.Error: ServerHangWatchdog detected that a single server tick took 60.00 seconds (should be max 0.05)     at net.minecraft.server.dedicated.ServerWatchdog.run(ServerWatchdog.java:43) ~[server-1.20.1-20230612.114412-srg.jar%23217!/:?] {re:classloading}     at java.lang.Thread.run(Thread.java:840) ~[?:?] { Crash 2: java.lang.IllegalStateException: Capability missing for eeb7f026-34b4-42f5-9164-e7736461df83     at me.lucko.luckperms.forge.capabilities.UserCapabilityImpl.lambda$get$0(UserCapabilityImpl.java:66) ~[?:?] {re:classloading,re:classloading,re:classloading}     at net.minecraftforge.common.util.LazyOptional.orElseThrow(LazyOptional.java:261) ~[forge-1.20.1-47.3.10-universal.jar%23222!/:?] {re:mixin,re:classloading}     at me.lucko.luckperms.forge.capabilities.UserCapabilityImpl.get(UserCapabilityImpl.java:66) ~[?:?] {re:classloading,re:classloading,re:classloading}     at me.lucko.luckperms.forge.util.BrigadierInjector$InjectedPermissionRequirement.test(BrigadierInjector.java:143) ~[?:?] {}     at me.lucko.luckperms.forge.util.BrigadierInjector$InjectedPermissionRequirement.test(BrigadierInjector.java:129) ~[?:?] {}     at com.mojang.brigadier.tree.CommandNode.canUse(CommandNode.java:65) ~[brigadier-1.1.8.jar%2376!/:?] {}     at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:359) ~[brigadier-1.1.8.jar%2376!/:?] {}     at com.mojang.brigadier.CommandDispatcher.parse(CommandDispatcher.java:349) ~[brigadier-1.1.8.jar%2376!/:?] {}     at com.mojang.brigadier.CommandDispatcher.parse(CommandDispatcher.java:317) ~[brigadier-1.1.8.jar%2376!/:?] {}     at net.minecraft.commands.Commands.m_230957_(Commands.java:237) ~[server-1.20.1-20230612.114412-srg.jar%23217!/:?] {re:classloading}     at net.mcreator.boh.procedures.TeleportbenProcedure.lambda$execute$2(TeleportbenProcedure.java:65) ~[boh-0.0.6.1-forge-1.20.1_2.jar%23165!/:?] {re:classloading}     at net.mcreator.boh.BohMod.lambda$tick$2(BohMod.java:96) ~[boh-0.0.6.1-forge-1.20.1_2.jar%23165!/:?] {re:classloading}     at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?] {re:mixin}     at net.mcreator.boh.BohMod.tick(BohMod.java:96) ~[boh-0.0.6.1-forge-1.20.1_2.jar%23165!/:?] {re:classloading}     at net.mcreator.boh.__BohMod_tick_ServerTickEvent.invoke(.dynamic) ~[boh-0.0.6.1-forge-1.20.1_2.jar%23165!/:?] {re:classloading,pl:eventbus:B}     at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73) ~[eventbus-6.0.5.jar%2352!/:?] {}     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:315) ~[eventbus-6.0.5.jar%2352!/:?] {}     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:296) ~[eventbus-6.0.5.jar%2352!/:?] {}     at net.minecraftforge.event.ForgeEventFactory.onPostServerTick(ForgeEventFactory.java:950) ~[forge-1.20.1-47.3.10-universal.jar%23222!/:?] {re:classloading}     at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:835) ~[server-1.20.1-20230612.114412-srg.jar%23217!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:xaerominimap:xaero_minecraftserver,re:classloading,pl:accesstransformer:B,xf:fml:xaerominimap:xaero_minecraftserver,pl:mixin:A}     at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:661) ~[server-1.20.1-20230612.114412-srg.jar%23217!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:xaerominimap:xaero_minecraftserver,re:classloading,pl:accesstransformer:B,xf:fml:xaerominimap:xaero_minecraftserver,pl:mixin:A}     at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:251) ~[server-1.20.1-20230612.114412-srg.jar%23217!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:xaerominimap:xaero_minecraftserver,re:classloading,pl:accesstransformer:B,xf:fml:xaerominimap:xaero_minecraftserver,pl:mixin:A}     at java.lang.Thread.run(Thread.java:840) ~[?:?] {}
    • Hello there! I am trying to make custom dimensions for a modpack I am making in an older minecraft version, 1.16.5. I like that version and it has a few other mods that have not been updated that I would still like to use. Anyway, I am having a terrible time with getting my dimension to work and have tried using code from other peoples projects to at least figure out what I'm supposed to be doing but it has not been as helpful as I would have liked. If anyone could help that would be greatly appreciated! Here is my github with all the code as I am using it: https://github.com/BladeColdsteel/InvigoratedDimensionsMod I have also included the last log, https://pastebin.com/zX9vsDSq, I had when I tried to load up a world, let me know if there is anything else I should send though, thank you!
    • Whether you are a fan of Hypixel Bedwars, SkyWars and PvP gamemodes like that, well you would enjoy this server! We have a very fun and unique style of PvP that a lot of our players really enjoy and we want to bring this server to more players like you! Yes you reading this post haha. Introducing, the Minezone Network, home of SUPER CRAFT BLOCKS. We've been working on this server for over 4 years now. Here is what we have to offer: SUPER CRAFT BLOCKS: This has 3 different gamemodes you can play, Classic, Duels and Frenzy. Each mode offers over 60 kits to choose from, along with a total of over 60 maps, allowing for various different playstyles on each map. There are also random powerups that spawn on the map which can include Health Pots, Bazookas, Nukes, Extra Lives and way way more! There is also double jump in this gamemode as well, which makes PvP a lot more fun & unique. You only need a minimum of 2 players to start any mode! Classic: Choose a kit, 5 lives for each player, fight it out and claim the #1 spot! Look out for lightning as they can spawn powerups to really give you an advantage in the game! Duels: Fight against another random player or one of your friends and see who is the best! Frenzy: Your kit is randomly selected for you, each life you will have a different kit. You can fight with up to 100 players in this mode and lets see who will be the best out of that 100! All the other stuff from Classic/Duels apply to this mode as well like powerups. We have 2 ranks on this server too, VIP and CAPTAIN which has a bunch of different perks for SCB and other things like Cosmetics and more.   SERVER IP: If this server has caught your interest in any way, please consider joining and you will NOT regret it! Bring some of your friends online for an even better experience and join in on the fun at: IP: minezone.club Hope to see you online!   SERVER TRAILER: https://www.youtube.com/watch?v=0phpMgu1mH0
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.