Jump to content

Parizval

Members
  • Posts

    4
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Parizval's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I attached to the gist a 4th file that holds all the output from my console. During the session, I launch the game, create a new creative world, open the inventory to grab a coral Nerco Block, and place it. Here the gist: http://gist.github.com/ajman1101/d02d2bdc755622273af115e44e028237 I only have an error at startup of a Minecraft world, which I attribute to loading in the whole world, the engine getting behind throwing some errors, then catching up with itself. Do you see anything out of the ordinary N247S? Thanks for your help so far as well!
  2. Sorry if my last post sounded like I did not know the code I wrote, I am just sorely confused with the issue I am having and second guessing my work. I realize that I am doing some velocity calculations in my constructor, I also have a randomDisplayTick function in my block I am adding particles to (Lines 123-151 of coralNercoBlock.java). I have been unsure for a while about the amount of ticks between initialization of a particle and adding logic to it in randomDisplayTick. This is something I plan to investigate further on my own, but I first was hoping to solve this issue. So that is my reasoning for having the velocity code also in the constructor. The joys of trying to solve a problem while writing a forum post! You are supremely correct that my resources do not match, on my local copy they are both the "testing:entity/particles" and I am still not getting my chosen texture, just Minecraft's broken one (the black and purple checkerboard). Thinking about it more yesterday, are there any certain requirements on the size of my particles texture? Can it not be transparent? Or is this not a issue?
  3. There are no errors in my console or even warnings about missing textures. Here is a gist to the 3 java classes I believe are relevant to the issue. Please let me know if you would like to look at any other classes. https://gist.github.com/ajman1101/d02d2bdc755622273af115e44e028237 coralNercoBlock.java is the block I am trying to create a custom particle effect for. Line 123 is where work related to the particle effect is done. TestFX.java is where I set the texture for my custom particle effect (or at least where I am trying to!) , move the particle, and update it. I have commented out the renderParticle function, as when trying to debug this issue, I read in TheGreyGhost's comment on his example that it is not necessary to override the function. To which I agree as nothing has changed with my mod since commenting that function out. TextureStitcher.java is where I believe I am adding my custom particle onto Minecraft's particle spritesheet. The only other line missing is inside my preInit function in my main class, shown below: MinecraftForge.EVENT_BUS.register(new TextureStitcher()) Many thanks for the reply and any and all feedback are greatly appreciated!
  4. I have been following TheGreyGhost's tutorial on how to create a custom particle effect and am stumped. See here for his tutorial: http://github.com/TheGreyGhost/MinecraftByExample/tree/master/src/main/java/minecraftbyexample/mbe50_entityfx I have the system almost fully working expect for the texture actually rendering. I have checked to make sure the file is in the right place, spelling, calling all the necessary functions, all that. But still I have a missing texture. The texture I am using has a transparent background, the particle I want to show is 8x8 px and the PNG is 128x128 px. I am posting here to hope that someone has an idea of what I am missing. I am working on a large mod right now and the code is very connected together, so let me know what code you would like to see for this issue. Thanks for reading!
×
×
  • Create New...

Important Information

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