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.

avarog

Members
  • Joined

  • Last visited

  1. Ah, thanks a lot! I know that the correct entity was spawning because the special effect of my entity (explosions ) was showing up. I hadn't known about the Entity ID, I think I was just using suggested parameters for EntityThrowables from a tutorial. Thank you! Out of curiosity, what are those names used for? I would like to keep them, as my entities are intended to entirely replace vanilla snowballs and eggs. If the names don't show up in game, though, I will definitely change them.
  2. Hey, I'm using Forge 11.14.4 with Minecraft 1.8, and I'm making a mod that adds two new EntityThrowables. These are supposed to look exactly like eggs and snowballs with extra effects on impact. I'm using RenderSnowball objects with both of them, passing Items.egg and Items.snowball to the respective constructor calls. Both Entities render in-game as snowballs for some reason. Oddly, when I comment out all code involved in registering the renders for those two entities, they STILL render as snowballs. Here's the original code in my DTEntities classs: package com.avarog.dangerous_things.init; import com.avarog.dangerous_things.entity.EntityDangerousEgg; import com.avarog.dangerous_things.entity.EntityDangerousSnowball; import com.avarog.dangerous_things.entity.EntityDangerousSnowman; import com.avarog.dangerous_things.renderer.RenderDangerousSnowman; import com.avarog.dangerous_things.renderer.RenderEgg; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.entity.RenderSnowball; import net.minecraft.init.Items; import net.minecraftforge.fml.client.registry.RenderingRegistry; import net.minecraftforge.fml.common.registry.EntityRegistry; public class DTEntities { public static void registerRenders() { RenderSnowball renderDangerousEgg = new RenderSnowball(Minecraft.getMinecraft().getRenderManager(), Items.egg, Minecraft.getMinecraft().getRenderItem()); RenderSnowball renderDangerousSnowball = new RenderSnowball(Minecraft.getMinecraft().getRenderManager(), Items.snowball, Minecraft.getMinecraft().getRenderItem()); RenderingRegistry.registerEntityRenderingHandler(EntityDangerousEgg.class, renderDangerousEgg); RenderingRegistry.registerEntityRenderingHandler(EntityDangerousSnowball.class, renderDangerousSnowball); RenderingRegistry.registerEntityRenderingHandler(EntityDangerousSnowman.class, new RenderDangerousSnowman(Minecraft.getMinecraft().getRenderManager())); } public static void register(Object mod) { EntityRegistry.registerModEntity(EntityDangerousSnowball.class, "Snowball", 0, mod, 64, 10, true); EntityRegistry.registerModEntity(EntityDangerousEgg.class, "Egg", 0, mod, 64, 10, true); EntityRegistry.registerModEntity(EntityDangerousSnowman.class, "Snowman", 1, mod, 40, 1, true); } } And here's the commented version: package com.avarog.dangerous_things.init; import com.avarog.dangerous_things.entity.EntityDangerousEgg; import com.avarog.dangerous_things.entity.EntityDangerousSnowball; import com.avarog.dangerous_things.entity.EntityDangerousSnowman; import com.avarog.dangerous_things.renderer.RenderDangerousSnowman; import com.avarog.dangerous_things.renderer.RenderEgg; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.entity.RenderSnowball; import net.minecraft.init.Items; import net.minecraftforge.fml.client.registry.RenderingRegistry; import net.minecraftforge.fml.common.registry.EntityRegistry; public class DTEntities { public static void registerRenders() { //RenderSnowball renderDangerousEgg = new RenderSnowball(Minecraft.getMinecraft().getRenderManager(), Items.egg, Minecraft.getMinecraft().getRenderItem()); //RenderSnowball renderDangerousSnowball = new RenderSnowball(Minecraft.getMinecraft().getRenderManager(), Items.snowball, Minecraft.getMinecraft().getRenderItem()); //RenderingRegistry.registerEntityRenderingHandler(EntityDangerousEgg.class, renderDangerousEgg); //RenderingRegistry.registerEntityRenderingHandler(EntityDangerousSnowball.class, renderDangerousSnowball); RenderingRegistry.registerEntityRenderingHandler(EntityDangerousSnowman.class, new RenderDangerousSnowman(Minecraft.getMinecraft().getRenderManager())); } public static void register(Object mod) { EntityRegistry.registerModEntity(EntityDangerousSnowball.class, "Snowball", 0, mod, 64, 10, true); EntityRegistry.registerModEntity(EntityDangerousEgg.class, "Egg", 0, mod, 64, 10, true); EntityRegistry.registerModEntity(EntityDangerousSnowman.class, "Snowman", 1, mod, 40, 1, true); } } Why can't I get these to render as anything but snowballs? How can I get my egg to render as an egg?

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.