Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Duendilandia

Members
  • Content Count

    11
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Duendilandia

  • Rank
    Tree Puncher
  1. https://github.com/Duendilandia/TestMod
  2. I have change the register class: import net.minecraft.client.Minecraft; import net.minecraft.particles.BasicParticleType; import net.minecraft.particles.ParticleType; import net.minecraftforge.client.event.ParticleFactoryRegisterEvent; import net.minecraftforge.eventbus.api.EventPriority; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.RegistryObject; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventBusSubscriber; import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus; import net.minecraftforge.registries
  3. but is this necesary to solve my problem? Thanks, I will change it
  4. Here it is: https://github.com/Duendilandia/MyMod/tree/main/src/main
  5. I tried like this: Main class: public Main() { FMLJavaModLoadingContext.get().getModEventBus().addListener(this::registerFactories); } @SubscribeEvent public void registerFactories(ParticleFactoryRegisterEvent evt) { Minecraft.getInstance().particleEngine.register(ParticlesRegister.FLY_PARTICLE.get(), FlyParticle.Factory::new); } ParticlesRegister class: public class ParticlesRegister { public static final DeferredRegister<ParticleType<?>> PARTICLE_TYPES = DeferredRegister.create(ForgeRegistries.PARTICLE_TYPES, Main.MODID); public static final RegistryObject&
  6. I don´t undertand what you mean. I think I can delete this line: @EventBusSubscriber(modid = Main.MODID, bus = Bus.FORGE, value = {Dist.CLIENT}) if I add this one on the Main class: MinecraftForge.EVENT_BUS.register(new ParticlesRegister());
  7. @SubscribeEvent public static void registerFactories(ParticleFactoryRegisterEvent evt) { Minecraft.getInstance().particleEngine.register(ParticlesRegister.FLY_PARTICLE.get(), FlyParticle.Factory::new); } But I get the same error
  8. I have create some particles, but when I run the game I always get the same error: Reported exception thrown! net.minecraft.crash.ReportedException: Rendering overlay at net.minecraft.client.renderer.GameRenderer.render(GameRenderer.java:488) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.runTick(Minecraft.java:976) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.run(M
  9. Also the alpha is really transparent. I want the same alpha as water. In this photo my alpha is 192 and the RenderType is translucentNoCrumbling(). How can I get the same alpha?
  10. I have create a quad with TER, it has the texture of water_still from vanilla Minecraft. The problem is that the texture is grey and I want to add it some color. I know how to do it, but when I add some color (red for example, whis is rgb(255, 0, 0)) it looks really strange. I think the problem is with the alpha. This is the quad code: private void addVertex(Matrix4f matrix, Matrix3f matrixNormal, IVertexBuilder vertexBuilder, float red, float green, float blue, float alpha, int combinedOverlay, int combinedLight) { vertexBuilder.vertex(matrix, 0.8125F, 0.9375F, 0.1875F).color
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.