• Recently Browsing

    No registered users viewing this page.

  • Posts

    • I took a deeper look at vanilla minecraft code and noticed, that the addParticle()- function of the class World is empty. However ClientWorld extends World and implements the addParticle function properly. I also looked at the working 1.16 mod 'Rats'. Here he simply calls event.getWorld(), with event being an instance of PlayerInteractEvent.EntityInteract. Calling event.getWorld() should also return a World (not a ClientWorld!), but somehow he can then call .spawnParticle(). I'm kinda confused, why his mod is working. Also I still have no idea, how I should get the right ClientWorld, so I can use its addParticle() function.
    • Hey,  I'm trying to make blocks that are moving smoothly. For that, I want to create an entity that renders the block.  I'm registering the renderer but for some reason, it isn't being rendered.  This is my code of the renderer and the registry package me.cirex.fluidships.entity.renderer; import com.mojang.blaze3d.matrix.MatrixStack; import me.cirex.fluidships.entity.EntityBlock; import me.cirex.fluidships.entity.model.EntityBlockModel; import net.minecraft.client.renderer.IRenderTypeBuffer; import net.minecraft.client.renderer.RenderType; import net.minecraft.client.renderer.entity.EntityRenderer; import net.minecraft.client.renderer.entity.EntityRendererManager; import net.minecraft.util.ResourceLocation; import net.minecraftforge.fml.client.registry.IRenderFactory; public class EntityBlockRenderer extends EntityRenderer<EntityBlock> { protected EntityBlockRenderer(EntityRendererManager renderManager) { super(renderManager); } @Override public void render(EntityBlock entityIn, float entityYaw, float partialTicks, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int packedLightIn) { System.out.println("test"); EntityBlockModel model = new EntityBlockModel(entityIn); for (net.minecraft.client.renderer.RenderType type : net.minecraft.client.renderer.RenderType .getBlockRenderTypes()) { model.render(matrixStackIn, bufferIn.getBuffer(type), packedLightIn, 0, 1, 1, 1, 1); } super.render(entityIn, entityYaw, partialTicks, matrixStackIn, bufferIn, packedLightIn); } @Override public ResourceLocation getEntityTexture(EntityBlock entity) { return null; } public static class RenderFactory implements IRenderFactory<EntityBlock> { @Override public EntityRenderer<? super EntityBlock> createRenderFor(EntityRendererManager manager) { return new EntityBlockRenderer(manager); } } } package me.cirex.fluidships.registry; import me.cirex.fluidships.FluidShips; import me.cirex.fluidships.block.InvisibleBlock; import me.cirex.fluidships.entity.EntityBlock; import me.cirex.fluidships.entity.renderer.EntityBlockRenderer; import net.minecraft.block.Block; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityClassification; import net.minecraft.entity.EntityType; import net.minecraft.util.ResourceLocation; import net.minecraftforge.client.event.ModelRegistryEvent; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.client.registry.RenderingRegistry; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; @Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD) public class ShipRegistry { @SuppressWarnings("unchecked") public static EntityType<EntityBlock> BLOCK_ENTITY = (EntityType<EntityBlock>) EntityType.Builder .create(EntityBlock::new, EntityClassification.MISC).size(1F, 1F) .build(FluidShips.MODID + ":block_entity") .setRegistryName(new ResourceLocation(FluidShips.MODID, "block_entity")); public static Block INVISIBLE_BLOCK = new InvisibleBlock(); @SubscribeEvent public void onBlockRegistry(final RegistryEvent.Register<Block> event) { event.getRegistry().register(INVISIBLE_BLOCK); } @SubscribeEvent public void onEntityTypeRegistry(final RegistryEvent.Register<EntityType<? extends Entity>> event) { event.getRegistry().register(BLOCK_ENTITY); } public void registerRenderer() { RenderingRegistry.registerEntityRenderingHandler(BLOCK_ENTITY, new EntityBlockRenderer.RenderFactory()); } public void onClientSetup(final FMLClientSetupEvent event) { registerRenderer(); } }  
    • My textures have been changed to make sure that nothing is in the 64 x 32 area so I believe that shouldnt get in the way of the default model rendering.   But I still do not understand why the textures on the model are so off. I thought this might be the same problem for me but I do not have any decimals and I tried playing around with scaling the texture up aswell as increasing textureHeight and textureWidth in the model but It does not make it any better.   Thanks for your help so far btw,
    • I'm using Forge 1.12.2 and Pixelmon Reforged version 8.0.2, but my game keeps crashing. This is my error: The game crashed whilst there was a severe problem during mod loading that has caused the game to fail Error: net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Pixelmon (pixelmon) Then, when I click on view crash report, it shows this: ---- Minecraft Crash Report ---- // Shall we play a game? Time: 7/9/20 7:12 PM Description: There was a severe problem during mod loading that has caused the game to fail net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Pixelmon (pixelmon) Caused by: java.lang.NoClassDefFoundError: net/minecraftforge/event/world/BlockEvent$EntityPlaceEvent at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.privateGetPublicMethods(Class.java:2902) at java.lang.Class.getMethods(Class.java:1615) at net.minecraftforge.fml.common.eventhandler.EventBus.register(EventBus.java:82) at com.pixelmonmod.pixelmon.quests.QuestRegistry.registerClasses(QuestRegistry.java:238) at com.pixelmonmod.pixelmon.quests.QuestRegistry.registerQuests(QuestRegistry.java:113) at com.pixelmonmod.pixelmon.CommonProxy.init(CommonProxy.java:115) at com.pixelmonmod.pixelmon.client.ClientProxy.init(ClientProxy.java:166) at com.pixelmonmod.pixelmon.Pixelmon.init(Pixelmon.java:177) 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:497) at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:624) 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:497) at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) at com.google.common.eventbus.EventBus.post(EventBus.java:217) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:218) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:196) 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:497) at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) at com.google.common.eventbus.EventBus.post(EventBus.java:217) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:135) at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:744) at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:336) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:534) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:377) at net.minecraft.client.main.Main.main(SourceFile:123) 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:497) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) Caused by: java.lang.ClassNotFoundException: net.minecraftforge.event.world.BlockEvent$EntityPlaceEvent at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 51 more Caused by: java.lang.NullPointerException A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.12.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 1811327848 bytes (1727 MB) / 2583691264 bytes (2464 MB) up to 6442450944 bytes (6144 MB) JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx6G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.42 Powered by Forge 14.23.5.2768 5 mods loaded, 5 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored | State | ID | Version | Source | Signature | |:----- |:--------- |:------------ |:----------------------------------- |:---------------------------------------- | | UCHI | minecraft | 1.12.2 | minecraft.jar | None | | UCHI | mcp | 9.42 | minecraft.jar | None | | UCHI | FML | 8.0.99.99 | forge-1.12.2-14.23.5.2768.jar | e3c3d50c7c986df74c645c0ac54639741c90a557 | | UCHI | forge | 14.23.5.2768 | forge-1.12.2-14.23.5.2768.jar | e3c3d50c7c986df74c645c0ac54639741c90a557 | | UCHEE | pixelmon | 8.0.2 | Pixelmon-1.12.2-8.0.2-universal.jar | None | Loaded coremods (and transformers): GL info: ' Vendor: 'Intel' Version: '4.4.0 - Build 21.20.16.4550' Renderer: 'Intel(R) HD Graphics 620' I have no clue how to fix it and my friend is having a similar problem. The Pixelmon Reforged mod is in my mods folder.
  • Topics

  • Who's Online (See full list)