Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SorenCabral

Members
  • Joined

  • Last visited

  1. 1- The ores blocks that drop items are actually giving no experience points after mined; 2- The "shears" don't play the sound of cut when used in a sheep; 3- After be died for the Ender Dragon, the game stay freeze in the (Respawn/Return to Menu) screen. Forge ver. 1.14.4 - 28.0.11
  2. After build my mod with (gradlew build) and try to execute in the game, it not work. build.gradle: MANIFEST.MF sorenmymdl_at.cfg
  3. Im trying again, but I dont know how create my new renderer correctly. I try follow one 1.12.2 tutorial to learn how register, but is different in this part (Renderer Creation) causing error in this code above, prohibiting me to continue:
  4. (For while is one copy, that render the same model. After fix all erros, I will try apply the changes). How Im are new in modding, am learning per steps.
  5. Like this? package soren.mymdl; // imports // @Mod("sorenmod") public class SorenMod { public static IProxy proxy = DistExecutor.runForDist(() -> () -> new ClientProxy(), () -> () -> new ServerProxy()); private static final Logger LOGGER = LogManager.getLogger(); public static NewRenderer test = new NewRenderer(Minecraft.getInstance().getRenderManager()); public SorenMod() { FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup); MinecraftForge.EVENT_BUS.register(new PlayerManage()); } private void setup(final FMLCommonSetupEvent event) { proxy.getClientWorld(); } @SubscribeEvent public void onServerStarting(FMLServerStartingEvent event) { } @Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD) public static class RegistryEvents { } } package soren.mymdl; // imports // public class PlayerManage { @SubscribeEvent public void renderPlayerPre(RenderPlayerEvent.Pre event) { event.setCanceled(true); SorenMod.test.doRender((AbstractClientPlayerEntity) event.getEntity(), 1, 1, 1, 0.625F, 0.625F); } } No more errors, but the player have not rendered.
  6. [20:02:01.217] [modloading-worker-2/INFO] [ne.mi.co.ForgeMod/FORGEMOD]: Forge mod loading, version 27.0.25, for MC 1.14.3 with MCP 20190624.152911 [20:02:01.217] [modloading-worker-2/INFO] [ne.mi.co.MinecraftForge/FORGE]: MinecraftForge v27.0.25 Initialized FATAL ERROR in native method: Thread[modloading-worker-1,5,main]: No context is current or a function that is not available in the current context was called. The JVM will abort execution. at org.lwjgl.opengl.GL11C.nglGenTextures(Native Method) at org.lwjgl.opengl.GL11C.glGenTextures(GL11C.java:664) at org.lwjgl.opengl.GL11.glGenTextures(GL11.java:2492) at com.mojang.blaze3d.platform.GlStateManager.genTexture(GlStateManager.java:419) at com.mojang.blaze3d.platform.TextureUtil.generateTextureId(TextureUtil.java:27) at net.minecraft.client.renderer.texture.Texture.getGlTextureId(Texture.java:45) at net.minecraft.client.renderer.texture.DynamicTexture.<init>(DynamicTexture.java:22) at net.minecraft.client.renderer.entity.LivingRenderer.<clinit>(LivingRenderer.java:31) at soren.mymdl.PlayerManage.<init>(PlayerManage.java:11) at soren.mymdl.SorenMod.<init>(SorenMod.java:33) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:131) at net.minecraftforge.fml.javafmlmod.FMLModContainer$$Lambda$1957/1324518852.accept(Unknown Source) at java.util.function.Consumer.lambda$andThen$0(Unknown Source) at java.util.function.Consumer$$Lambda$1956/1300011842.accept(Unknown Source) at java.util.function.Consumer.lambda$andThen$0(Unknown Source) at java.util.function.Consumer$$Lambda$1956/1300011842.accept(Unknown Source) at net.minecraftforge.fml.ModContainer.transitionState(ModContainer.java:112) at net.minecraftforge.fml.ModList.lambda$null$9(ModList.java:119) at net.minecraftforge.fml.ModList$$Lambda$2011/1533322181.accept(Unknown Source) at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source) at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) at java.util.stream.AbstractPipeline.copyInto(Unknown Source) at java.util.stream.ForEachOps$ForEachTask.compute(Unknown Source) at java.util.concurrent.CountedCompleter.exec(Unknown Source) at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) at java.util.concurrent.ForkJoinTask.doInvoke(Unknown Source) at java.util.concurrent.ForkJoinTask.invoke(Unknown Source) at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(Unknown Source) at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(Unknown Source) at java.util.stream.AbstractPipeline.evaluate(Unknown Source) at java.util.stream.ReferencePipeline.forEach(Unknown Source) at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source) at net.minecraftforge.fml.ModList.lambda$dispatchParallelEvent$10(ModList.java:119) at net.minecraftforge.fml.ModList$$Lambda$2009/1340737883.run(Unknown Source) at java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(Unknown Source) at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) And the Code: https://github.com/avphonix0/Minecraft-1.14.3/tree/master/src/main
  7. Why I receive this error in my new player renderer? FATAL ERROR in native method: Thread[modloading-worker-1,5,main]: No context is current or a function that is not available in the current context was called. The JVM will abort execution. My Handler: package soren.mymdl; import net.minecraft.client.Minecraft; import net.minecraft.client.entity.player.AbstractClientPlayerEntity; import net.minecraftforge.client.event.RenderPlayerEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; public class PlayerManage { private final NewRenderer test = new NewRenderer(Minecraft.getInstance().getRenderManager()); @SubscribeEvent public void renderPlayerPre(RenderPlayerEvent.Pre event) { event.setCanceled(true); test.doRender((AbstractClientPlayerEntity) event.getEntity(), 1, 1, 1, 0.625F, 0.625F); } }
  8. I'm are new in modding, so is being hard to know what I need to reach to my custom render. Supposing that I start the mod now in the 1.14.3 (Forge 27025), and already canceled the player render. Main Mod Class: public SorenMod() { FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup); MinecraftForge.EVENT_BUS.register(new PlayerManage()); } public class PlayerManage { @SubscribeEvent public void renderPlayerPre(RenderPlayerEvent.Pre event) { event.setCanceled(true); System.out.println("-- Cancel Model! --"); } } What classes I need to extend to customize and where and how I say to mod execute/fire that?
  9. I solved that. Have how I override one method from the class LayerBipedArmor? I what so much to include some fields inside the setModelVIsible switch(), 2 in case LEGS and 2 in case FEET: In the case, I only want to turn LEGS pants invisible. Have one simple way to make to the pants not appear when equipped? Thanks!
  10. Was only for share my doubts But now I have advanced a lot, think that now it go! Thanks to who helped me.
  11. After have build all, I are receiving these two errors in this RenderPlayer copy: If I comment this part and run the game, this crash when I try 3º person vision
  12. I found this example in web, would be like this with me too? public class RenderCustomPlayerEvent { RenderHoverClaws render = new RenderHoverClaws(Minecraft.getMinecraft().getRenderManager(), new ModelHoverClaws(), 1F); @Subscribe public void renderCustomPlayer(RenderPlayerEvent.Pre pre) { pre.setCanceled(true); render.doRender((EntityLiving) pre.getEntityLiving(), 0D, -1.625, 0D, 0F, 0.0625F); } }
  13. I'm now lost how do one new player rendering, how do to initialize one new with my changes? I want all equal to normal player, changing only he legs for an correct armor generation
  14. I'm passing for problems during the new model creation, with the extends and others... I made one copy of the ModelPlayer, ModelBiped and RenderPlayer to edit how i want, but I can't make this work. When I change the class names, appear some issue... Doing this looks be so hard.. : (

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.