
thomassu
Members-
Posts
41 -
Joined
-
Last visited
Everything posted by thomassu
-
ok, there is no error anymore, but i still can't find my mob, but i can't find squids as well. so i'm not sure if it works or not..
-
there is an error, when i use the line EntitySpawnPlacementRegistry.setPlacementType(EntitySeaturtle.class, EntityLiving.SpawnPlacementType.IN_WATER); eclipse says: the method SetPlacementType is undefined for the type EntitySpawnPlacementRegistry. there is no "setPlacementType" in the class EntitySpawnPlacementRegistry ):
-
hey, i've been making a mod, everything works great but watercreatures aren't spawning in the world. this is the code i'm using: EntityRegistry.addSpawn(EntitySeaturtle.class, 30, 2, 3, EnumCreatureType.WATER_CREATURE, new BiomeGenBase[] {BiomeGenBase.beach, BiomeGenBase.ocean, BiomeGenBase.deepOcean}); this doesn't work, but when i make a creature that spawns on land, it does work: EntityRegistry.addSpawn(EntityCrab.class, 100, 4, 5, EnumCreatureType.CREATURE, new BiomeGenBase[] {BiomeGenBase.beach}); does anyone know a solution? thx for reading
-
World generation in specific biome [Forge 1.8] [SOLVED]
thomassu replied to thomassu's topic in Modder Support
Thanks, that works! -
World generation in specific biome [Forge 1.8] [SOLVED]
thomassu replied to thomassu's topic in Modder Support
there is an error, getBiomeGenAt is changed, in 1.7.10 it was getBiomeGenAt(int x, int z), but in 1.8 it is: getBiomeGenAt(BiomeGenBase[] listToReuse, int x, int z, int width, int length, boolean cacheFlag) -
Hello modders, i had a question about world generation in a specific biome, in 1.7 i used this: BiomeGenBase biomegenbase = world.getWorldChunkManager().getBiomeGenAt(chunkX, chunkZ); if (biomegenbase == BiomeGenBase.desert) { for(int x = 0; x < 10; x++) { int i = chunkX + rand.nextInt(16); int j = rand.nextInt(128); int k = chunkZ + rand.nextInt(16); pyramid.generate(world, rand, i, j, k); } } but this doesn't work anymore in 1.8, thx for reading
-
yay ik fixed it, i had to put this: RenderingRegistry.registerEntityRenderingHandler(EntityOrch.class, new RenderOrch(Minecraft.getMinecraft().getRenderManager(), new ModelOrch(), 1.0F)); in the main class, not in clientproxy thanks
-
i only know there is something wrong with this: RenderingRegistry.registerEntityRenderingHandler(EntityOrch.class, new RenderOrch(Minecraft.getMinecraft().getRenderManager(), new ModelOrch(), 1.0F)); in Clientproxy, maybe its not in the right file? idk
-
Hmm great
-
Main class: package com.sorch.sorchmod; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.entity.RenderItem; import net.minecraft.client.resources.model.ModelBakery; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.EntityList; import net.minecraft.entity.EnumCreatureType; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.ItemSword; import net.minecraft.world.biome.BiomeGenBase; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.FMLCommonHandler; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.registry.EntityRegistry; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.fml.common.registry.LanguageRegistry; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; @Mod(modid = Sorch.MODID, version = Sorch.VERSION) public class Sorch { @SidedProxy(clientSide = "com.sorch.sorchmod.ClientProxy", serverSide = "com.sorch.sorchmod.ServerProxy") public static ServerProxy proxy; public static final String MODID = "sorch"; public static final String VERSION = "0.1"; // Items // public static Item woodBlade; public static Item stoneBlade; public static Item longBow; public static Item stoneArrow; @EventHandler public void preLoad(FMLPreInitializationEvent event) { proxy.registerRenderThings(); longBow = new ItemLongBow().setUnlocalizedName("longBow"); GameRegistry.registerItem(longBow, "longBow"); } @EventHandler public void load(FMLInitializationEvent event) { woodBlade = new ItemSword(Item.ToolMaterial.WOOD).setUnlocalizedName("woodBlade"); stoneBlade = new ItemSword(Item.ToolMaterial.STONE).setUnlocalizedName("stoneBlade"); stoneArrow = new Item().setUnlocalizedName("stoneArrow").setCreativeTab(CreativeTabs.tabCombat); GameRegistry.registerItem(woodBlade, "woodBlade"); GameRegistry.registerItem(stoneBlade, "stoneBlade"); GameRegistry.registerItem(stoneArrow, "stoneArrow"); // Mobs // EntityRegisterSorch.registerMobs(); EntityRegisterSorch.addSpawns(); if(event.getSide() == Side.CLIENT) { RenderItem renderItem = Minecraft.getMinecraft().getRenderItem(); renderItem.getItemModelMesher().register(woodBlade, 0, new ModelResourceLocation(Sorch.MODID + ":" + "woodBlade", "inventory")); renderItem.getItemModelMesher().register(stoneBlade, 0, new ModelResourceLocation(Sorch.MODID + ":" + "stoneBlade", "inventory")); renderItem.getItemModelMesher().register(longBow, 0, new ModelResourceLocation(Sorch.MODID + ":" + "longBow", "inventory")); renderItem.getItemModelMesher().register(stoneArrow, 0, new ModelResourceLocation(Sorch.MODID + ":" + "stoneArrow", "inventory")); ModelBakery.addVariantName(longBow, new String[] {MODID + ":longBow", MODID + ":longBow_pull", MODID + ":longBow_pull_double"}); registerItem(longBow, 0, MODID + ":longBow"); registerItem(longBow, 1, MODID + ":longBow_pull"); registerItem(longBow, 2, MODID + ":longBow_pull_double"); } } @SideOnly(Side.CLIENT) public static void registerItem(Item item, int metadata, String itemName) { } @EventHandler public void postInit(FMLPostInitializationEvent event) { GameRegistry.addRecipe(new ItemStack(Sorch.stoneArrow, 10), new Object[]{ " A", " B ", "B ", 'A', Blocks.cobblestone, 'B', Blocks.planks}); } } EntityRegisterSorch: package com.sorch.sorchmod; import net.minecraft.entity.EnumCreatureType; import net.minecraft.world.biome.BiomeGenBase; import net.minecraftforge.fml.common.registry.EntityRegistry; public class EntityRegisterSorch { public static void registerMobs() { // http://www.colorpicker.com/ http://www.mathsisfun.com/hexadecimal-decimal-colors.html EntityRegisterSorch.registerEntity(EntityOrch.class, "SMOrch", 150, 4534038, 14071595); } public static void registerEntity(Class entityClass, String name, int id, int primaryColor, int secondaryColor) { EntityRegistry.registerGlobalEntityID(entityClass, name, id, primaryColor, secondaryColor); EntityRegistry.registerModEntity(entityClass, name, id, Sorch.MODID, 80, 3, false); } public static void addSpawns() { EntityRegistry.addSpawn(EntityOrch.class, 100, 0, 0, EnumCreatureType.CREATURE, new BiomeGenBase[] { BiomeGenBase.beach}); } }
-
---- Minecraft Crash Report ---- // Oops. Time: 26-1-15 19:41 Description: Rendering entity in world java.lang.NullPointerException: Rendering entity in world at net.minecraft.client.renderer.entity.RendererLivingEntity.canRenderName(RendererLivingEntity.java:563) at net.minecraft.client.renderer.entity.RenderLiving.canRenderName(RenderLiving.java:28) at net.minecraft.client.renderer.entity.RenderLiving.canRenderName(RenderLiving.java:157) at net.minecraft.client.renderer.entity.RendererLivingEntity.passSpecialRender(RendererLivingEntity.java:481) at net.minecraft.client.renderer.entity.RendererLivingEntity.renderName(RendererLivingEntity.java:578) at net.minecraft.client.renderer.entity.Render.doRender(Render.java:46) at net.minecraft.client.renderer.entity.RendererLivingEntity.doRender(RendererLivingEntity.java:198) at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:50) at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:172) at net.minecraft.client.renderer.entity.RenderManager.doRenderEntity(RenderManager.java:370) at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:327) at net.minecraft.client.renderer.entity.RenderManager.renderEntitySimple(RenderManager.java:294) at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:631) at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1294) at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1207) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1032) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1048) at net.minecraft.client.Minecraft.run(Minecraft.java:345) at net.minecraft.client.main.Main.main(Main.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) at GradleStart.main(GradleStart.java:45) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.minecraft.client.renderer.entity.RendererLivingEntity.canRenderName(RendererLivingEntity.java:563) at net.minecraft.client.renderer.entity.RenderLiving.canRenderName(RenderLiving.java:28) at net.minecraft.client.renderer.entity.RenderLiving.canRenderName(RenderLiving.java:157) at net.minecraft.client.renderer.entity.RendererLivingEntity.passSpecialRender(RendererLivingEntity.java:481) at net.minecraft.client.renderer.entity.RendererLivingEntity.renderName(RendererLivingEntity.java:578) at net.minecraft.client.renderer.entity.Render.doRender(Render.java:46) at net.minecraft.client.renderer.entity.RendererLivingEntity.doRender(RendererLivingEntity.java:198) at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:50) at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:172) -- Entity being rendered -- Details: Entity Type: SMOrch (com.sorch.sorchmod.EntityOrch) Entity ID: 4440 Entity Name: Orch Entity's Exact location: -222,50, 64,00, 94,50 Entity's Block location: -223,00,64,00,94,00 - World: (-223,64,94), Chunk: (at 1,4,14 in -14,5; contains blocks -224,0,80 to -209,255,95), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) Entity's Momentum: 0,00, 0,00, 0,00 Entity's Rider: ~~ERROR~~ NullPointerException: null Entity's Vehicle: ~~ERROR~~ NullPointerException: null -- Renderer details -- Details: Assigned renderer: com.sorch.sorchmod.RenderOrch@b80cea Location: 0,00,0,00,4,00 - World: (0,0,4), Chunk: (at 0,0,4 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Rotation: -74.66608 Delta: 0.9481406 Stacktrace: at net.minecraft.client.renderer.entity.RenderManager.doRenderEntity(RenderManager.java:370) at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:327) at net.minecraft.client.renderer.entity.RenderManager.renderEntitySimple(RenderManager.java:294) at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:631) at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1294) at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1207) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityPlayerSP['Player126'/234, l='MpServer', x=-222,50, y=64,00, z=90,50]] Chunk stats: MultiplayerChunkCache: 289, 289 Level seed: 0 Level generator: ID 00 - default, ver 1. Features enabled: false Level generator options: Level spawn location: -216,00,64,00,100,00 - World: (-216,64,100), Chunk: (at 8,4,4 in -14,6; contains blocks -224,0,96 to -209,255,111), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) Level time: 168 game time, 168 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false Forced entities: 156 total; [EntityZombie['Zombie'/1024, l='MpServer', x=-256,50, y=58,00, z=22,50], EntityZombie['Zombie'/1026, l='MpServer', x=-242,50, y=28,00, z=90,50], EntityFallingBlock['Falling Block'/4162, l='MpServer', x=-281,50, y=19,35, z=9,50], EntityFallingBlock['Falling Block'/4163, l='MpServer', x=-281,50, y=19,35, z=10,50], EntityFallingBlock['Falling Block'/4164, l='MpServer', x=-280,50, y=19,35, z=9,50], EntityFallingBlock['Falling Block'/4165, l='MpServer', x=-280,50, y=19,35, z=10,50], EntityFallingBlock['Falling Block'/4166, l='MpServer', x=-282,50, y=19,35, z=8,50], EntityFallingBlock['Falling Block'/4167, l='MpServer', x=-282,50, y=19,35, z=9,50], EntityFallingBlock['Falling Block'/4168, l='MpServer', x=-282,50, y=19,35, z=10,50], EntityFallingBlock['Falling Block'/4170, l='MpServer', x=-283,50, y=19,35, z=8,50], EntityFallingBlock['Falling Block'/4171, l='MpServer', x=-283,50, y=19,35, z=9,50], EntityPig['Pig'/77, l='MpServer', x=-262,81, y=64,00, z=76,78], EntityFallingBlock['Falling Block'/4173, l='MpServer', x=-283,50, y=19,35, z=7,50], EntityPig['Pig'/78, l='MpServer', x=-262,50, y=64,00, z=80,50], EntityFallingBlock['Falling Block'/4174, l='MpServer', x=-284,50, y=19,35, z=7,50], EntityPig['Pig'/79, l='MpServer', x=-259,50, y=65,00, z=76,50], EntityFallingBlock['Falling Block'/4175, l='MpServer', x=-284,50, y=19,35, z=8,50], EntityPig['Pig'/80, l='MpServer', x=-261,19, y=64,00, z=75,16], EntityPig['Pig'/83, l='MpServer', x=-211,00, y=66,00, z=73,22], EntityPig['Pig'/84, l='MpServer', x=-224,22, y=65,00, z=69,50], EntityPig['Pig'/85, l='MpServer', x=-221,00, y=65,00, z=70,34], EntityPig['Pig'/86, l='MpServer', x=-223,06, y=65,00, z=69,69], EntityBat['Bat'/1132, l='MpServer', x=-152,50, y=17,56, z=127,65], EntityCreeper['Creeper'/1163, l='MpServer', x=-262,50, y=20,00, z=58,50], EntityCreeper['Creeper'/1202, l='MpServer', x=-305,07, y=38,00, z=65,28], EntityCreeper['Creeper'/1203, l='MpServer', x=-294,34, y=38,01, z=63,00], EntityCreeper['Creeper'/1204, l='MpServer', x=-297,50, y=37,00, z=67,50], EntityCreeper['Creeper'/1205, l='MpServer', x=-298,50, y=37,00, z=66,50], EntityFallingBlock['Falling Block'/4290, l='MpServer', x=-139,50, y=26,21, z=7,50], EntityFallingBlock['Falling Block'/4291, l='MpServer', x=-140,50, y=26,21, z=7,50], EntityFallingBlock['Falling Block'/4293, l='MpServer', x=-141,50, y=26,21, z=7,50], EntityFallingBlock['Falling Block'/4294, l='MpServer', x=-117,50, y=35,21, z=142,50], EntityZombie['Zombie'/1225, l='MpServer', x=-164,31, y=20,00, z=140,28], EntityFallingBlock['Falling Block'/4299, l='MpServer', x=-95,50, y=37,21, z=-39,50], EntityFallingBlock['Falling Block'/4300, l='MpServer', x=-94,50, y=37,21, z=-39,50], EntityFallingBlock['Falling Block'/4301, l='MpServer', x=-97,50, y=37,21, z=-40,50], EntityFallingBlock['Falling Block'/4302, l='MpServer', x=-96,50, y=37,21, z=-40,50], EntityFallingBlock['Falling Block'/4303, l='MpServer', x=-103,50, y=37,21, z=-34,50], EntityFallingBlock['Falling Block'/4304, l='MpServer', x=-102,50, y=37,21, z=-34,50], EntityFallingBlock['Falling Block'/4305, l='MpServer', x=-104,50, y=37,21, z=-35,50], EntityFallingBlock['Falling Block'/4306, l='MpServer', x=-103,50, y=37,21, z=-35,50], EntitySkeleton['Skeleton'/1235, l='MpServer', x=-238,50, y=27,00, z=90,50], EntityFallingBlock['Falling Block'/4307, l='MpServer', x=-105,50, y=37,21, z=-35,50], EntitySkeleton['Skeleton'/240, l='MpServer', x=-146,50, y=19,00, z=145,50], EntityZombie['Zombie'/1269, l='MpServer', x=-252,50, y=26,00, z=76,50], EntitySpider['Spider'/1297, l='MpServer', x=-189,31, y=15,09, z=44,28], EntityBat['Bat'/281, l='MpServer', x=-170,89, y=19,76, z=58,71], EntityPlayerSP['Player126'/234, l='MpServer', x=-222,50, y=64,00, z=90,50], EntityFallingBlock['Falling Block'/4397, l='MpServer', x=-103,50, y=39,05, z=-34,50], EntityFallingBlock['Falling Block'/4398, l='MpServer', x=-103,50, y=39,05, z=-35,50], EntitySkeleton['Skeleton'/314, l='MpServer', x=-235,53, y=19,00, z=46,88], EntityFallingBlock['Falling Block'/3391, l='MpServer', x=-144,50, y=29,62, z=153,50], EntityFallingBlock['Falling Block'/3392, l='MpServer', x=-143,50, y=29,62, z=153,50], EntityFallingBlock['Falling Block'/3393, l='MpServer', x=-145,50, y=29,62, z=153,50], EntityFallingBlock['Falling Block'/3394, l='MpServer', x=-146,50, y=29,62, z=153,50], EntityFallingBlock['Falling Block'/3395, l='MpServer', x=-147,50, y=29,62, z=153,50], EntitySkeleton['Skeleton'/1348, l='MpServer', x=-192,50, y=32,00, z=149,50], EntitySkeleton['Skeleton'/1349, l='MpServer', x=-189,50, y=32,00, z=149,50], EntityFallingBlock['Falling Block'/3400, l='MpServer', x=-131,50, y=32,62, z=147,50], EntitySpider['Spider'/1354, l='MpServer', x=-163,50, y=18,00, z=145,50], EntityEnderman['Enderman'/1355, l='MpServer', x=-165,06, y=20,00, z=141,00], EntityFallingBlock['Falling Block'/3404, l='MpServer', x=-121,50, y=34,62, z=186,50], EntityFallingBlock['Falling Block'/3405, l='MpServer', x=-121,50, y=34,62, z=187,50], EntityBat['Bat'/339, l='MpServer', x=-243,53, y=28,00, z=81,41], EntityFallingBlock['Falling Block'/3416, l='MpServer', x=-117,50, y=30,62, z=143,50], EntityOrch['Orch'/4440, l='MpServer', x=-222,50, y=64,00, z=94,50], EntityFallingBlock['Falling Block'/3417, l='MpServer', x=-117,50, y=29,62, z=142,50], EntityFallingBlock['Falling Block'/3418, l='MpServer', x=-116,50, y=30,62, z=143,50], EntitySquid['Squid'/355, l='MpServer', x=-201,00, y=62,28, z=120,16], EntitySquid['Squid'/356, l='MpServer', x=-194,03, y=62,28, z=120,06], EntitySquid['Squid'/357, l='MpServer', x=-195,84, y=60,78, z=120,72], EntitySquid['Squid'/358, l='MpServer', x=-202,72, y=62,16, z=121,03], EntitySquid['Squid'/363, l='MpServer', x=-285,63, y=62,00, z=135,56], EntitySquid['Squid'/364, l='MpServer', x=-286,53, y=61,09, z=133,50], EntitySquid['Squid'/365, l='MpServer', x=-284,84, y=60,09, z=128,72], EntitySquid['Squid'/366, l='MpServer', x=-232,03, y=60,56, z=132,69], EntitySquid['Squid'/367, l='MpServer', x=-230,22, y=59,84, z=127,75], EntitySquid['Squid'/368, l='MpServer', x=-228,28, y=62,22, z=135,94], EntitySquid['Squid'/369, l='MpServer', x=-226,34, y=59,50, z=130,91], EntitySquid['Squid'/374, l='MpServer', x=-247,00, y=62,44, z=145,03], EntitySquid['Squid'/375, l='MpServer', x=-234,66, y=60,53, z=143,16], EntitySquid['Squid'/376, l='MpServer', x=-239,16, y=59,97, z=141,41], EntitySquid['Squid'/377, l='MpServer', x=-235,47, y=60,72, z=133,38], EntityFallingBlock['Falling Block'/3483, l='MpServer', x=-95,50, y=31,62, z=-39,50], EntityFallingBlock['Falling Block'/3484, l='MpServer', x=-94,50, y=31,62, z=-39,50], EntityFallingBlock['Falling Block'/3485, l='MpServer', x=-97,50, y=31,62, z=-40,50], EntityFallingBlock['Falling Block'/3486, l='MpServer', x=-96,50, y=31,62, z=-40,50], EntityBat['Bat'/458, l='MpServer', x=-279,67, y=16,02, z=13,75], EntityCreeper['Creeper'/1500, l='MpServer', x=-175,50, y=55,00, z=71,50], EntityCreeper['Creeper'/490, l='MpServer', x=-166,50, y=18,00, z=82,50], EntityZombie['Zombie'/494, l='MpServer', x=-192,50, y=36,00, z=96,50], EntityCreeper['Creeper'/1518, l='MpServer', x=-255,51, y=39,45, z=42,42], EntitySkeleton['Skeleton'/495, l='MpServer', x=-201,00, y=39,00, z=94,00], EntityCreeper['Creeper'/1519, l='MpServer', x=-257,31, y=40,00, z=43,47], EntityCreeper['Creeper'/1521, l='MpServer', x=-257,25, y=40,00, z=42,10], EntityCreeper['Creeper'/1522, l='MpServer', x=-183,07, y=40,00, z=102,66], EntityCreeper['Creeper'/1541, l='MpServer', x=-198,47, y=28,00, z=126,53], EntitySkeleton['Skeleton'/1542, l='MpServer', x=-200,50, y=28,00, z=129,50], EntitySkeleton['Skeleton'/1543, l='MpServer', x=-196,00, y=29,00, z=125,56], EntityBat['Bat'/531, l='MpServer', x=-256,44, y=37,16, z=68,03], EntityZombie['Zombie'/1555, l='MpServer', x=-240,50, y=42,00, z=58,50], EntityBat['Bat'/532, l='MpServer', x=-252,81, y=38,88, z=69,63], EntitySpider['Spider'/1577, l='MpServer', x=-257,50, y=26,00, z=60,50], EntityBat['Bat'/641, l='MpServer', x=-178,15, y=12,10, z=56,44], EntityFallingBlock['Falling Block'/3723, l='MpServer', x=-281,50, y=16,55, z=9,50], EntityFallingBlock['Falling Block'/3724, l='MpServer', x=-281,50, y=16,55, z=10,50], EntityFallingBlock['Falling Block'/3725, l='MpServer', x=-280,50, y=16,55, z=9,50], EntityFallingBlock['Falling Block'/3726, l='MpServer', x=-280,50, y=16,55, z=10,50], EntityFallingBlock['Falling Block'/3727, l='MpServer', x=-282,50, y=16,55, z=8,50], EntityFallingBlock['Falling Block'/3728, l='MpServer', x=-282,50, y=16,55, z=9,50], EntityFallingBlock['Falling Block'/3729, l='MpServer', x=-282,50, y=16,55, z=10,50], EntityFallingBlock['Falling Block'/3731, l='MpServer', x=-283,50, y=16,55, z=8,50], EntityFallingBlock['Falling Block'/3732, l='MpServer', x=-283,50, y=16,55, z=9,50], EntityFallingBlock['Falling Block'/3734, l='MpServer', x=-283,50, y=16,55, z=7,50], EntityFallingBlock['Falling Block'/3735, l='MpServer', x=-284,50, y=16,55, z=7,50], EntityFallingBlock['Falling Block'/3736, l='MpServer', x=-284,50, y=16,55, z=8,50], EntityFallingBlock['Falling Block'/3737, l='MpServer', x=-285,50, y=17,55, z=6,50], EntityBat['Bat'/702, l='MpServer', x=-243,33, y=16,13, z=122,52], EntitySkeleton['Skeleton'/1743, l='MpServer', x=-150,50, y=20,00, z=144,50], EntityWitch['Witch'/1760, l='MpServer', x=-176,50, y=14,00, z=58,50], EntitySkeleton['Skeleton'/1761, l='MpServer', x=-173,50, y=14,00, z=56,50], EntityFallingBlock['Falling Block'/3954, l='MpServer', x=-138,50, y=23,46, z=7,50], EntityFallingBlock['Falling Block'/3955, l='MpServer', x=-139,50, y=23,46, z=7,50], EntityFallingBlock['Falling Block'/3956, l='MpServer', x=-140,50, y=24,00, z=7,50], EntityFallingBlock['Falling Block'/3958, l='MpServer', x=-139,50, y=24,00, z=6,50], EntityFallingBlock['Falling Block'/3959, l='MpServer', x=-138,50, y=23,46, z=8,50], EntityFallingBlock['Falling Block'/3960, l='MpServer', x=-141,50, y=24,00, z=7,50], EntityFallingBlock['Falling Block'/3961, l='MpServer', x=-140,50, y=24,00, z=6,50], EntityFallingBlock['Falling Block'/3962, l='MpServer', x=-141,50, y=24,00, z=6,50], EntityFallingBlock['Falling Block'/3963, l='MpServer', x=-142,50, y=24,00, z=6,50], EntityFallingBlock['Falling Block'/3964, l='MpServer', x=-142,50, y=24,00, z=7,50], EntityFallingBlock['Falling Block'/3965, l='MpServer', x=-143,50, y=23,46, z=7,50], EntityFallingBlock['Falling Block'/3966, l='MpServer', x=-144,50, y=32,46, z=153,50], EntityFallingBlock['Falling Block'/3967, l='MpServer', x=-145,50, y=32,46, z=153,50], EntityFallingBlock['Falling Block'/3968, l='MpServer', x=-146,50, y=32,46, z=153,50], EntityFallingBlock['Falling Block'/3971, l='MpServer', x=-121,50, y=37,46, z=186,50], EntityFallingBlock['Falling Block'/2952, l='MpServer', x=-281,50, y=11,70, z=9,50], EntityFallingBlock['Falling Block'/2953, l='MpServer', x=-281,50, y=11,70, z=10,50], EntityFallingBlock['Falling Block'/2954, l='MpServer', x=-280,50, y=11,70, z=9,50], EntityFallingBlock['Falling Block'/3978, l='MpServer', x=-117,50, y=32,46, z=142,50], EntityBat['Bat'/907, l='MpServer', x=-173,16, y=52,13, z=54,20], EntityFallingBlock['Falling Block'/2955, l='MpServer', x=-280,50, y=11,70, z=10,50], EntityFallingBlock['Falling Block'/2956, l='MpServer', x=-282,50, y=11,70, z=8,50], EntityFallingBlock['Falling Block'/2957, l='MpServer', x=-282,50, y=11,70, z=9,50], EntityFallingBlock['Falling Block'/2958, l='MpServer', x=-282,50, y=11,70, z=10,50], EntityFallingBlock['Falling Block'/2960, l='MpServer', x=-283,50, y=11,70, z=8,50], EntityFallingBlock['Falling Block'/2961, l='MpServer', x=-283,50, y=11,70, z=9,50], EntityFallingBlock['Falling Block'/2963, l='MpServer', x=-283,50, y=11,70, z=7,50], EntityFallingBlock['Falling Block'/3987, l='MpServer', x=-95,50, y=34,46, z=-39,50], EntityFallingBlock['Falling Block'/2964, l='MpServer', x=-284,50, y=11,70, z=7,50], EntityFallingBlock['Falling Block'/3988, l='MpServer', x=-94,50, y=34,46, z=-39,50], EntityFallingBlock['Falling Block'/2965, l='MpServer', x=-284,50, y=11,70, z=8,50], EntityFallingBlock['Falling Block'/3989, l='MpServer', x=-97,50, y=34,46, z=-40,50], EntityFallingBlock['Falling Block'/2966, l='MpServer', x=-285,50, y=12,70, z=6,50], EntityFallingBlock['Falling Block'/3990, l='MpServer', x=-96,50, y=34,46, z=-40,50], EntityFallingBlock['Falling Block'/2968, l='MpServer', x=-285,50, y=12,70, z=7,50]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:350) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2488) at net.minecraft.client.Minecraft.run(Minecraft.java:367) at net.minecraft.client.main.Main.main(Main.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) at GradleStart.main(GradleStart.java:45) -- System Details -- Details: Minecraft Version: 1.8 Operating System: Windows 8.1 (x86) version 6.3 Java Version: 1.8.0_31, Oracle Corporation Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation Memory: 714163208 bytes (681 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95 FML: MCP v9.10 FML v8.0.20.1290 Minecraft Forge 11.14.0.1290 4 mods loaded, 4 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{8.0.20.1290} [Forge Mod Loader] (forgeSrc-1.8-11.14.0.1290-1.8.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{11.14.0.1290} [Minecraft Forge] (forgeSrc-1.8-11.14.0.1290-1.8.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available sorch{0.1} [sorch] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Launched Version: 1.8 LWJGL: 2.9.1 OpenGL: AMD Radeon R7 200 Series GL version 4.3.12618 Compatibility Profile Context 13.251.9001.1001, ATI Technologies Inc. GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported. Using VBOs: No Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: English (US) Profiler Position: N/A (disabled)
-
i started modding again in 1.8 but the render keeps crashing package com.sorch.sorchmod; import net.minecraft.client.Minecraft; import net.minecraft.client.model.ModelCow; import net.minecraft.client.renderer.entity.RenderCow; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraftforge.fml.client.registry.RenderingRegistry; public class ClientProxy extends ServerProxy { public void registerRenderThings() { RenderingRegistry.registerEntityRenderingHandler(EntityOrch.class, new RenderOrch(Minecraft.getMinecraft().getRenderManager(), new ModelOrch(), 0.5F)); } } Render file: package com.sorch.sorchmod; import net.minecraft.client.Minecraft; import net.minecraft.client.model.ModelBase; import net.minecraft.client.renderer.EntityRenderer; import net.minecraft.client.renderer.entity.RenderLiving; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.entity.Entity; import net.minecraft.util.ResourceLocation; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class RenderOrch extends RenderLiving { private static final ResourceLocation OrchTextures = new ResourceLocation("sorch:textures/entity/orch.png"); private static final String __OBFID = "CL_00000984"; public RenderOrch(RenderManager entityRenderer, ModelBase p_i46187_2_, float p_i46187_3_) { super(entityRenderer, p_i46187_2_, p_i46187_3_); } protected ResourceLocation func_180572_a(EntityOrch p_180572_1_) { return OrchTextures; } protected ResourceLocation getEntityTexture(Entity entity) { return this.func_180572_a((EntityOrch)entity); } }
-
i already fixed it guys! i had to add: this.setRenderPassModel(new ModelAnglerFish());
-
oh, yes but it doesnt make sense when i change it, and the texture of the anglerfish itself is working
-
delpi is right i just want the anglerfish is glowing their eyes, just like spider eyes and enderman eyes anyway, thanks for helping
-
oh im sorry, the mob works perfectly but the light doesnt!
-
hello, i am making an Anglerfish, i want him to give light, i copied the code from RenderSpider, but it is not working. what am i doing wrong: package com.Angler.common; import net.minecraft.client.renderer.OpenGlHelper; import net.minecraft.client.renderer.entity.RenderLiving; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.util.ResourceLocation; import cpw.mods.fml.common.registry.EntityRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import org.lwjgl.opengl.GL11; @SideOnly(Side.CLIENT) public class RenderAnglerFish extends RenderLiving { private static final ResourceLocation AnglerFishTexture = new ResourceLocation("angler:textures/entity//AnglerFish/AnglerFish.png"); private static final ResourceLocation AnglerFishGlowTexture = new ResourceLocation("angler:textures/entity/AnglerFish/AnglerFishGlow.png"); protected ModelAnglerFish model; private float scale; public RenderAnglerFish(ModelAnglerFish par1ModelBase, float par2, float par3) { super(par1ModelBase, par2 * par3); model = (ModelAnglerFish)mainModel; this.scale = par3; } protected ResourceLocation getAnglerFishTextures(EntityAnglerFish entityAnglerFish) { return AnglerFishTexture; } protected void preRenderCallback(EntityLivingBase par1EntityLivingBase, float par2) { this.preRenderScale((EntityAnglerFish)par1EntityLivingBase, par2); } protected void preRenderScale(EntityAnglerFish par1EntityAnglerFish, float par2) { GL11.glScalef(this.scale, this.scale, this.scale); } protected int shouldRenderPass(EntityAnglerFish par1EntityAnglerFish, int par2, float par3) { if (par2 != 0) { return -1; } else { this.bindTexture(AnglerFishGlowTexture); float f1 = 1.0F; GL11.glEnable(GL11.GL_BLEND); GL11.glDisable(GL11.GL_ALPHA_TEST); GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE); GL11.glDisable(GL11.GL_LIGHTING); if (par1EntityAnglerFish.isInvisible()) { GL11.glDepthMask(false); } else { GL11.glDepthMask(true); } char c0 = 61680; int j = c0 % 65536; int k = c0 / 65536; OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float)j / 1.0F, (float)k / 1.0F); GL11.glEnable(GL11.GL_LIGHTING); GL11.glColor4f(1.0F, 1.0F, 1.0F, f1); return 1; } } @Override protected ResourceLocation getEntityTexture(Entity entity) { return this.getAnglerFishTextures((EntityAnglerFish)entity); } } do i need something in the Entity file?, pleas help me! Thanks!
-
whatever guys it is working the last thing i did wrong was that i put the config in the wrong initilazation event but now it is working. thanks!!
-
Ok, i've put this: public static int PeanutHelmetC; public static int PeanutBodyC; public static int PeanutPantsC; public static int PeanutBootsC; public static ArmorMaterial PEANUT = EnumHelper.addArmorMaterial("PEANUT", 10, new int[] { PeanutlHelmetC, PeanutBodyC, PeanutPantsC, PeanutBootsC }, 12); at the bottom of the main class but it still doesnt work );
-
the config itself is working very good, it also has it default numbers, but it doesnt work
-
hello, i am working on a configuration file and i want to know if it is possible to make a config for armor material: i tried this: in main class: public static int PeanutHelmetC; public static int PeanutBodyC; public static int PeanutPantsC; public static int PeanutBootsC; public static ArmorMaterial PEANUT = EnumHelper.addArmorMaterial("PEANUT", 10, new int[] { PeanutlHelmetC, PeanutBodyC, PeanutPantsC, PeanutBootsC }, 12); in Configuration class: public class PeanutConfigHandler { public static void init(File configFile) { Configuration config = new Configuration(configFile); config.load(); Peanut.PeanutHelmetC = config.get("armor health", "Peanuthelmet", 2).getInt(); Peanut.PeanutBodyC = config.get("armor health", "Peanutbody", 6).getInt(); Peanut.PeanutPantsC = config.get("armor health", "Peanutpants", 4).getInt(); Peanut.PeanutBootsC = config.get("armor health", "Peanutboots", 1).getInt(); config.save(); } } but this doesnt work... ): anyone knows what i have to do?
-
ah thank you very much
-
hello i was trying to create a config file in forge 1.7.2 but the config himself works but it ignores the ids Entity Register in Main Class: EntityRegistry.registerModEntity(EntityPeanut.class, "EntityPeanut", thisPeanutId, this, 80, 3, true); EntityRegistry.addSpawn(EntityPeanut.class, 100, 3, 6, EnumCreatureType.creature, new BiomeGenBase[] { BiomeGenBase.mushroomIsland}); EntityList.addMapping(EntityPeanut.class, "EntityPeanut", this.PeanutId, 4534038, 14071595); Config Register in Main Class: ConfigHandler.init(event.getSuggestedConfigurationFile()); int in Main Class: public static int PeanutId; Configuration class: package com.Peanut.common; import java.io.File; import net.minecraftforge.common.config.Configuration; public class ConfigHandler { public static void init(File configFile) { Configuration config = new Configuration(configFile); config.load(); Peanut.PeanutId = config.get("Mobs", "Peanut Id", 30).getInt(); config.save(); } } Generated Config File: # Configuration file #################### # mobs #################### mobs { I:"Peanut Id"=30 } but when im ingame the entity has id: 0 what am i doing wrong
-
[1.7.2] how to disable mob water jumping? [Solved]
thomassu replied to thomassu's topic in Modder Support
whatever people i fixed it public boolean isInWater() { return this.worldObj.handleMaterialAcceleration(this.boundingBox.expand(0.0D, -0.6D, 0.0D), Material.water, this); } ive found this in EntitySquid and changed it to public boolean isInWater() { return this.worldObj.handleMaterialAcceleration(this.boundingBox.expand(0.0D, -0.6D, 0.0D), Material.water, this) && (this.isJumping = false); } it works perfectly, thanks for help -
[1.7.2] how to disable mob water jumping? [Solved]
thomassu replied to thomassu's topic in Modder Support
hmm... ok, i tried this: protected void updateEntityActionState() { if(this.isInWater() && this.isJumping) { this.isJumping = false; } } so when is it in the water and when it is jumping, set jumping to false but it doenst work ):