
ClarmonkGaming
Members-
Posts
44 -
Joined
-
Last visited
Everything posted by ClarmonkGaming
-
this is my crash report ====================================================================================== ---- Minecraft Crash Report ---- // Shall we play a game? Time: 12/7/13 2:20 PM Description: Rendering screen java.lang.NullPointerException at net.minecraft.item.ItemStack.getIconIndex(ItemStack.java:142) at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:346) at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:467) at net.minecraft.client.gui.inventory.GuiContainer.drawSlotInventory(GuiContainer.java:421) at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:132) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1036) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:946) at net.minecraft.client.Minecraft.run(Minecraft.java:838) at net.minecraft.client.main.Main.main(Main.java:93) 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:131) at net.minecraft.launchwrapper.Launch.main(Launch.java:27) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.minecraft.item.ItemStack.getIconIndex(ItemStack.java:142) at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:346) at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:467) at net.minecraft.client.gui.inventory.GuiContainer.drawSlotInventory(GuiContainer.java:421) at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:132) -- Screen render details -- Details: Screen name: net.minecraft.client.gui.inventory.GuiCrafting Mouse location: Scaled: (203, 94). Absolute: (407, 290) Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2 -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Player265'/287, l='MpServer', x=-145.19, y=70.62, z=251.70]] Chunk stats: MultiplayerChunkCache: 441 Level seed: 0 Level generator: ID 00 - default, ver 1. Features enabled: false Level generator options: Level spawn location: World: (-124,64,256), Chunk: (at 4,4,0 in -8,16; contains blocks -128,0,256 to -113,255,271), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) Level time: 5336 game time, 5336 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: 79 total; [EntityZombie['Zombie'/141, l='MpServer', x=-117.50, y=39.00, z=216.06], EntityBat['Bat'/140, l='MpServer', x=-125.25, y=30.10, z=193.25], EntityCow['Cow'/143, l='MpServer', x=-118.84, y=71.00, z=238.50], EntityCreeper['Creeper'/142, l='MpServer', x=-114.25, y=59.00, z=228.66], EntityZombie['Zombie'/128, l='MpServer', x=-140.78, y=26.43, z=285.69], EntityCreeper['Creeper'/152, l='MpServer', x=-107.50, y=25.00, z=205.50], EntityZombie['Zombie'/153, l='MpServer', x=-101.50, y=23.00, z=198.50], EntityBat['Bat'/154, l='MpServer', x=-94.38, y=64.00, z=206.75], EntitySkeleton['Skeleton'/155, l='MpServer', x=-102.69, y=66.00, z=223.16], EntityCreeper['Creeper'/156, l='MpServer', x=-108.41, y=66.00, z=218.66], EntityCow['Cow'/157, l='MpServer', x=-109.50, y=72.00, z=236.50], EntityCow['Cow'/158, l='MpServer', x=-111.41, y=74.00, z=228.38], EntityCreeper['Creeper'/159, l='MpServer', x=-99.84, y=66.00, z=229.88], EntityZombie['Zombie'/147, l='MpServer', x=-102.56, y=14.00, z=179.50], EntitySkeleton['Skeleton'/148, l='MpServer', x=-104.56, y=24.00, z=194.31], EntityZombie['Zombie'/149, l='MpServer', x=-104.50, y=25.00, z=201.50], EntitySkeleton['Skeleton'/150, l='MpServer', x=-102.53, y=23.00, z=193.91], EntityCreeper['Creeper'/151, l='MpServer', x=-103.50, y=27.33, z=207.02], EntityBat['Bat'/169, l='MpServer', x=-71.56, y=53.32, z=306.50], EntitySkeleton['Skeleton'/168, l='MpServer', x=-85.50, y=57.00, z=288.88], EntitySkeleton['Skeleton'/38, l='MpServer', x=-224.88, y=21.00, z=224.59], EntityBat['Bat'/175, l='MpServer', x=-69.47, y=21.79, z=180.38], EntityZombie['Zombie'/174, l='MpServer', x=-70.50, y=20.00, z=178.50], EntityCreeper['Creeper'/162, l='MpServer', x=-102.31, y=63.00, z=290.88], EntityCow['Cow'/161, l='MpServer', x=-98.56, y=73.00, z=254.84], EntityCreeper['Creeper'/160, l='MpServer', x=-101.50, y=66.00, z=226.88], EntityCreeper['Creeper'/167, l='MpServer', x=-84.28, y=55.00, z=290.72], EntitySkeleton['Skeleton'/47, l='MpServer', x=-218.59, y=26.00, z=173.66], EntityCreeper['Creeper'/166, l='MpServer', x=-81.50, y=56.00, z=289.66], EntityZombie['Zombie'/44, l='MpServer', x=-225.63, y=11.00, z=255.84], EntityBat['Bat'/165, l='MpServer', x=-90.09, y=21.20, z=197.88], EntityZombie['Zombie'/186, l='MpServer', x=-69.50, y=16.00, z=306.91], EntityClientPlayerMP['Player265'/287, l='MpServer', x=-145.19, y=70.62, z=251.70], EntityCow['Cow'/184, l='MpServer', x=-81.53, y=66.33, z=298.53], EntityEnderman['Enderman'/185, l='MpServer', x=-67.25, y=16.00, z=307.75], EntityCow['Cow'/190, l='MpServer', x=-77.13, y=66.00, z=310.09], EntityCreeper['Creeper'/55, l='MpServer', x=-209.30, y=30.00, z=228.30], EntityCow['Cow'/191, l='MpServer', x=-73.22, y=65.00, z=303.56], EntityCreeper['Creeper'/188, l='MpServer', x=-80.34, y=53.00, z=302.94], EntityBat['Bat'/189, l='MpServer', x=-66.56, y=48.85, z=301.28], EntitySkeleton['Skeleton'/178, l='MpServer', x=-70.09, y=31.00, z=244.50], EntitySquid['Squid'/59, l='MpServer', x=-210.75, y=55.31, z=242.16], EntitySkeleton['Skeleton'/177, l='MpServer', x=-69.09, y=40.00, z=199.50], EntityCreeper['Creeper'/56, l='MpServer', x=-208.06, y=31.00, z=228.34], EntitySheep['Sheep'/63, l='MpServer', x=-214.53, y=64.00, z=330.69], EntityZombie['Zombie'/182, l='MpServer', x=-72.03, y=39.00, z=299.53], EntityZombie['Zombie'/183, l='MpServer', x=-68.69, y=39.00, z=303.50], EntityZombie['Zombie'/180, l='MpServer', x=-66.63, y=37.00, z=290.34], EntityZombie['Zombie'/181, l='MpServer', x=-65.87, y=40.00, z=295.53], EntityZombie['Zombie'/60, l='MpServer', x=-210.56, y=35.00, z=319.56], EntitySquid['Squid'/68, l='MpServer', x=-202.94, y=46.31, z=207.94], EntitySquid['Squid'/69, l='MpServer', x=-205.31, y=45.00, z=200.16], EntityBat['Bat'/70, l='MpServer', x=-198.41, y=25.10, z=212.31], EntityEnderman['Enderman'/71, l='MpServer', x=-202.41, y=23.62, z=219.58], EntityCreeper['Creeper'/76, l='MpServer', x=-207.54, y=4.52, z=253.06], EntitySquid['Squid'/77, l='MpServer', x=-203.06, y=56.34, z=243.50], EntityBat['Bat'/78, l='MpServer', x=-187.75, y=22.42, z=206.38], EntitySquid['Squid'/79, l='MpServer', x=-192.50, y=46.00, z=198.53], EntityZombie['Zombie'/193, l='MpServer', x=-77.41, y=26.00, z=324.00], EntitySquid['Squid'/72, l='MpServer', x=-207.50, y=45.00, z=210.97], EntityCow['Cow'/192, l='MpServer', x=-78.31, y=65.00, z=305.22], EntitySquid['Squid'/73, l='MpServer', x=-197.28, y=46.34, z=210.16], EntityEnderman['Enderman'/74, l='MpServer', x=-204.28, y=24.00, z=224.70], EntitySkeleton['Skeleton'/194, l='MpServer', x=-78.53, y=58.00, z=329.91], EntitySquid['Squid'/75, l='MpServer', x=-202.41, y=55.00, z=225.63], EntitySquid['Squid'/84, l='MpServer', x=-181.50, y=50.00, z=211.50], EntitySquid['Squid'/81, l='MpServer', x=-187.56, y=48.34, z=211.53], EntitySquid['Squid'/80, l='MpServer', x=-186.94, y=49.13, z=201.75], EntitySquid['Squid'/83, l='MpServer', x=-182.72, y=52.38, z=213.50], EntitySquid['Squid'/82, l='MpServer', x=-178.47, y=50.66, z=209.56], EntityCow['Cow'/92, l='MpServer', x=-180.88, y=69.00, z=322.34], EntitySquid['Squid'/102, l='MpServer', x=-153.91, y=50.34, z=223.56], EntitySquid['Squid'/103, l='MpServer', x=-141.22, y=53.38, z=220.50], EntityZombie['Zombie'/108, l='MpServer', x=-146.50, y=6.00, z=264.50], EntityZombie['Zombie'/109, l='MpServer', x=-145.63, y=6.00, z=262.28], EntitySkeleton['Skeleton'/106, l='MpServer', x=-146.56, y=6.00, z=261.44], EntityZombie['Zombie'/107, l='MpServer', x=-141.63, y=6.00, z=262.01], EntitySquid['Squid'/104, l='MpServer', x=-144.72, y=51.34, z=220.50], EntitySquid['Squid'/105, l='MpServer', x=-158.29, y=47.93, z=235.25]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:440) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2312) at net.minecraft.client.Minecraft.run(Minecraft.java:856) at net.minecraft.client.main.Main.main(Main.java:93) 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:131) at net.minecraft.launchwrapper.Launch.main(Launch.java:27) -- System Details -- Details: Minecraft Version: 1.6.4 Operating System: Windows 8 (amd64) version 6.2 Java Version: 1.7.0_45, Oracle Corporation Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 813258752 bytes (775 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 18166 (1017296 bytes; 0 MB) allocated, 1256 (70336 bytes; 0 MB) used Suspicious classes: FML and Forge are installed IntCache: cache: 0, tcache: 0, allocated: 3, tallocated: 63 FML: MCP v8.11 FML v6.4.45.953 Minecraft Forge 9.11.1.953 4 mods loaded, 4 mods active mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{6.4.45.953} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{9.11.1.953} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available mod_SomeCraft{1.0} [someCraft] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Launched Version: 1.6 LWJGL: 2.9.0 OpenGL: GeForce GTX 560M/PCIe/SSE2 GL version 4.3.0, NVIDIA Corporation Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Pack: Default Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: 15146 (848176 bytes; 0 MB) allocated, 1525 (85400 bytes; 0 MB) used ========================================================================================== this is my main files code ========================================================================================== package SomeCraft.common; import SomeCraft.block.BlockChlorisideBlock; import SomeCraft.block.BlockEnrichedSomoniomBlock; import SomeCraft.block.BlockSomoniomBlock; import SomeCraft.item.ItemChlorisideIngot; import SomeCraft.item.ItemEnrichedSomoniomIngot; import SomeCraft.item.ItemSomoniomIngot; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.item.EnumArmorMaterial; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.common.EnumHelper; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid = SomeCraft.modid, name = "SomeCraft", version = "1.0") @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class SomeCraft { public static final String modid = "mod_SomeCraft"; @EventHandler public void load(FMLInitializationEvent event) { } // Registrations public static EnumArmorMaterial armourSomoniom = EnumHelper.addArmorMaterial("SomoniomIngot", 66, new int[]{6, 9, 9, 6}, 30); //public static Item SomoniomHelmet = new SomoniomArmour(2000, armourSomoniom, 0, 0).setUnlocalizedName("SomoniomHelmet"); //public static Item SomoniomChestplate = new SomoniomArmour(2001, armourSomoniom, 0, 1).setUnlocalizedName("SomoniomChestplate"); //public static Item SomoniomLeggings = new SomoniomArmour(2002, armourSomoniom, 0, 2).setUnlocaizedName("SomoniomLeggings"); //public static Item SomoniomBoots = new SomoniomArmour(2003, armourSomoniom, 0, 3).setUnlocaizedName("SomoniomBoots"); public static Block SomoniomBlock = new BlockSomoniomBlock(2004, Material.iron).setUnlocalizedName("Somoniom Block"); public static Item SomoniomIngot = new ItemSomoniomIngot(2005).setUnlocalizedName("Somoniom Ingot"); public static Item ChlorisideIngot = new ItemChlorisideIngot(2006).setUnlocalizedName("Chloriside Ingot"); public static Block ChlorisideBlock = new BlockChlorisideBlock(2007, Material.iron).setUnlocalizedName("Chloriside Block"); public static Item EnrichedSomoniomIngot = new ItemEnrichedSomoniomIngot(2007).setUnlocalizedName("Enriched Somoniom Ingot"); public static Block EnrichedSomoniomBlock = new BlockEnrichedSomoniomBlock(2008, Material.iron).setUnlocalizedName("Enriched Somoniom Block"); public SomeCraft() { // Registrations GameRegistry.registerBlock(SomoniomBlock, "Somoniom Block"); LanguageRegistry.addName(SomoniomBlock, "Somoniom Block"); LanguageRegistry.addName(SomoniomIngot, "Somoniom Ingot"); LanguageRegistry.addName(ChlorisideIngot, "Chloriside Ingot"); LanguageRegistry.addName(ChlorisideBlock, "Chloriside Block"); LanguageRegistry.addName(EnrichedSomoniomIngot, "Enriched Somoniom Ingot"); LanguageRegistry.addName(EnrichedSomoniomBlock, "Enriched Somoniom Block"); // Registrations GameRegistry.addRecipe(new ItemStack(SomoniomBlock, 1), new Object [] { "xxx", "xxx", "xxx", 'x', SomoniomIngot }); GameRegistry.addRecipe(new ItemStack(EnrichedSomoniomIngot, 1), new Object [] { "xy", 'x', ChlorisideIngot, 'y', SomoniomIngot }); GameRegistry.addRecipe(new ItemStack(ChlorisideBlock, 1), new Object [] { "xxx", "xxx", "xxx", 'x', ChlorisideIngot }); GameRegistry.addRecipe(new ItemStack(EnrichedSomoniomBlock, 1), new Object [] { "xxx", "xxx", "xxx", 'x', EnrichedSomoniomIngot }); } } ============================================================================================== i was crafting one of blocks that i made and i crashed also i cannot see the block in the materiel blocks even though i set it to taht creative tab in my block file here ============================================================================================== package SomeCraft.block; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; public class BlockChlorisideBlock extends Block { public BlockChlorisideBlock(int par1, Material par2Material) { super(par1, Material.iron); this.setCreativeTab(CreativeTabs.tabBlock); } public void registerIcons(IconRegister iconRegister) { blockIcon = iconRegister.registerIcon("somecraft:ChlorisideBlock"); } } ============================================================================================= i do not know what went wrong my other block works fine the Somoniom block not the Enriched Somoniom Block that does not work either thank you fro helping me Sincerely ClarmonkGaming
-
texture will not load please help
ClarmonkGaming replied to ClarmonkGaming's topic in Modder Support
is there any other way that i can assign a texture to an item not using this line of code this.itemIcon = par1IconRegister.registerIcon(SomeCraft.modid + ":" +(this.getUnlocalizedName().substring(5))); if there is please tell me thank you fro helping me Sincerely, ClarmonkGaming -
texture will not load please help
ClarmonkGaming replied to ClarmonkGaming's topic in Modder Support
still not working when i was logging in to the world i created it said id mismatch 5056 but my id for my ingot is 5000 -
code is package SomeCraft; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; public class SomoniomIngot extends Item { public SomoniomIngot(int id) { super(id); this.setCreativeTab(CreativeTabs.tabMaterials); } public void registerIcon(IconRegister par1IconRegister) { this.itemIcon = par1IconRegister.registerIcon(SomeCraft.modid + ":" +(this.getUnlocalizedName().substring(5))); } } this is the structure i am loading from C:\Users\cole c\Documents\Folders\Modding\forge-1.6.4-9.11.1.953-src\forge\mcp\src\minecraft\assets\somecraft\textures\items and the name of the png file is SomoniomIngot
-
my code is package SomeCraft; import net.minecraft.item.EnumArmorMaterial; import net.minecraft.item.Item; import net.minecraftforge.common.EnumHelper; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid = SomeCraft.modid, name = "SomeCraft", version = "1.0") @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class SomeCraft { public static final String modid = "mod_SomeCraft"; public static Item SomoniomIngot; @EventHandler public void load(FMLInitializationEvent event) { // Registrations public static EnumArmorMaterial armourSomoniom = EnumHelper.addArmorMaterial("SomoniomIngot", 66, new int[]{6, 9, 9, 6}, 30); public static Item SomoniomHelmet = new SomoniomArmour(2000, armourSomoniom, 0, 0).setUnlocalizedName("SomoniomHelmet"); public static Item SomoniomChestplate = new SomoniomArmour(2001, armourSomoniom, 0, 1).setUnlocalizedName("SomoniomChestplate"); public static Item SomoniomLeggings = new SomoniomArmour(2002, armourSomoniom, 0, 2).setUnlocaizedName("SomoniomLeggings"); public static Item SomoniomBoots = new SomoniomArmour(2003, armourSomoniom, 0, 3).setUnlocaizedName("SomoniomBoots"); SomoniomIngot = new SomoniomIngot (5000).setUnlocalizedName("SomoniomIngot"); LanguageRegistry.addName(SomoniomIngot, "SomoniomIngot"); i get my error here public static EnumArmorMaterial armourSomoniom = EnumHelper.addArmorMaterial("SomoniomIngot", 66, new int[]{6, 9, 9, 6}, 30); it says Illegal modifier for parameter armourSomoniom; only final is permitted can someone please tell em what this means and tell me how to fix it thank you Sincerely, ClarmonkGaming
-
please help EnumHelper is not working
ClarmonkGaming replied to ClarmonkGaming's topic in Modder Support
what is wrong with enum helper though -
eclipse keplar forge 1.6.4 code is package SomeCraft; import net.minecraft.item.EnumArmorMaterial; import net.minecraft.item.Item; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; @Mod(modid = SomeCraft.modid, name = "SomeCraft", version = "1.0") @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class SomeCraft { public static final String modid = "mod_SomeCraft"; @EventHandler public void load(FMLInitializationEvent event) { // Registrations public static EnumArmorMaterial armourSomoniom = EnumHelper.addArmourMaterial("SOMONIOM", 66, new int[]{6, 9, 9, 6}, 30); public static Item SomoniomHelmet = new SomoniomArmour(2000, armourSomoniom, 0, 0).setUnlocalizedName("SomoniomHelmet"); public static Item SomoniomChestplate = new SomoniomArmour(2001, armourSomoniom, 0, 1).setUnlocalizedName("SomoniomChestplate"); public static Item SomoniomLeggings = new SomoniomArmour(2002, armourSomoniom, 0, 2).setUnlocaizedName("SomoniomLeggings"); public static Item SomoniomBoots = new SomoniomArmour(2003, armourSomoniom, 0, 3).setUnlocaizedName("SomoniomBoots"); public static EnumArmorMaterial armourSomoniom = EnumHelper.addArmourMaterial("SOMONIOM", 66, new int[]{6, 9, 9, 6}, 30); is where i get my errors the error over enumhelper says EnumHelper cannot be resolved and the error over armourSomoniom says Illegal modifier for parameter armourSomoniom; only final is permitted
-
so i would do onItemRightClick() this.worldObj.playAuxSFXAtEntity((EntityPlayer)null, 1008, (int)this.posX, (int)this.posY, (int)this.posZ, 0); EntityLargeFireball entitylargefireball = new EntityLargeFireball(this.worldObj, this, d5, d6, d7); entitylargefireball.field_92057_e = this.explosionStrength; double d8 = 4.0D; Vec3 vec3 = this.getLook(1.0F); entitylargefireball.posX = this.posX + vec3.xCoord * d8; entitylargefireball.posY = this.posY + (double)(this.height / 2.0F) + 0.5D; entitylargefireball.posZ = this.posZ + vec3.zCoord * d8; this.worldObj.spawnEntityInWorld(entitylargefireball); this.attackCounter = -40;
-
this is the only part of the code i found with a reference to fireball public boolean attackEntityFrom(DamageSource par1DamageSource, float par2) { if (this.isEntityInvulnerable()) { return false; } else if ("fireball".equals(par1DamageSource.getDamageType()) && par1DamageSource.getEntity() instanceof EntityPlayer) { super.attackEntityFrom(par1DamageSource, 1000.0F); ((EntityPlayer)par1DamageSource.getEntity()).triggerAchievement(AchievementList.ghast); return true; } else { return super.attackEntityFrom(par1DamageSource, par2); } } but how would i make the fireball shoot out of the sword thanks you for helping me Sincerley ClarmonkGaming
-
Mob not registering in mainclass plz help :)
ClarmonkGaming replied to ClarmonkGaming's topic in Modder Support
i am so sorry you see i am just learning java however thanks for helping me out so that whole statement was unnecessary hwo to my mob going to get an id then -
Mob not registering in mainclass plz help :)
ClarmonkGaming replied to ClarmonkGaming's topic in Modder Support
new problem ================================================================================================ startEntityId++; } while(EntityList.getStringFromID(startEntityId) != null); return startEntityId++; } } } ============================================================================================== i get my errors here startEntityId++; the error on this line says startEntityId cannot be resolved to a variable } the error on this line says Syntax error on token "}", { expected thank you for helping me -
Mob not registering in mainclass plz help :)
ClarmonkGaming replied to ClarmonkGaming's topic in Modder Support
you would like me to remove this part ] public static int startEntityId = 300; public static int getUniqueEntityId() { -
I am using forge 1.6.4 and eclipse keplar @Mod(modid = "HedgeHogs", name = "HedgeHogs", version = "0.1 Alpha") public class HedgeHogs { = = When class starts and when class ends this is my class ============================================================================================== public HedgeHogs() { EntityRegistry.registerGlobalEntityID(EntityHedgeHogPassive.class, "HedegHog", 1); EntityRegistry.addSpawn(EntityHedgeHogPassive.class, 15, 3, 20, EnumCreatureType.monster); EntityRegistry.findGlobalUniqueEntityId(); registerEntityEgg(EntityHedgeHogPassive.class, 0xfffffff, 0x0033FF); public static int startEntityId = 300; public static int getUniqueEntityId() { do { startEntityId++; } while(EntityList.getStringFromID(startEntityId) != null); return startEntityId++; } } } ============================================================================================== My first error that I get is on this line public static int startEntityId = 300; the error says Illegal modifier for parameter startEntityId; only final is permitted my second error I get is on the line public static int getUniqueEntityId() { the error says Multiple markers at this line - Syntax error, insert "enum Identifier" to complete EnumHeaderName - Syntax error, insert "EnumBody" to complete BlockStatement - Syntax error on token "int", @ expected Please help me with my problem Sincerely, ClarmonkGaming