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.

leonardude

Members
  • Joined

  • Last visited

Everything posted by leonardude

  1. Hey all! I have no idea how to create a custom cactus, but I to create a custom cactus that damages you like a normal cactus, but only spawns on a block from my mod. This is the code for my cactus class: package com.leonardude.zether.blocks; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import com.leonardude.zether.main.Zether; public class BlockRedCactus extends Block { public BlockRedCactus(int id, Material material) { super(id, material); this.setCreativeTab(Zether.zetherTab); this.setHardness(12.0F); this.setResistance(2000.0F); this.setLightOpacity(255); } } Thanks in advance! Leonardude
  2. Hey all! I was wondering how do I generate/ungenerate things in my biome. More specifically, I'm looking to disable stone if possible (I know you need your own ChunkProvider to do that but I don't know how to get that to work, it's okay if I can't disable stone), disable the generation of anything (besides stone if it isn't possible to turn off stone generation) vanilla minecraft, including ores, flowers, cacti, trees, etc.. Also, I would want to enable my own flowers, enable my own cactus, enable my own tees etc. This is the code for my biome: package com.leonardude.zether.biomes; import com.leonardude.zether.main.Zether; import net.minecraft.world.biome.BiomeGenBase; public class BiomeGenCorruptDesert extends BiomeGenBase { public BiomeGenCorruptDesert(int id) { super(id); //Biome Settings this.setMinMaxHeight(-1.0F, 1.0F); this.setDisableRain(); this.setTemperatureRainfall(2.0F, 0.0F); //Customize Biome this.topBlock = (byte) Zether.corrosiveSand.blockID; this.fillerBlock = (byte) Zether.zetherStone.blockID; //Disable Blocks //Disable Mobs this.spawnableCaveCreatureList.clear(); this.spawnableCreatureList.clear(); this.spawnableMonsterList.clear(); this.spawnableWaterCreatureList.clear(); //Enable Mobs } } PS this biome will be in a custom dimension Thanks in advance! Leonardude
  3. Hey all! I was watching a tutorial and they said that in a biome that you couldn't get rid of the stone, and I know that to get rid of the stone you need your own dimension, or at least your own ChunkProvider. I want my biome to be completely customizable. Can anyone point me to a tutorial/some tutorials on how to make a completely customizable biome and the ChunkProvider that goes along with it. By the way if you are not sure what I mean by "completely customizable", I mean that I can take out any block that I want, and that I can add in any block that I want. Thanks in advance for your help! Leonardude
  4. What would I do to reference it and what would I reference it for?
  5. Do you use the variable instance for anything or is the only thing that you put: @Instance(modid) public static ModClass instance;
  6. Hey all! I was watching a tutorial and I saw this thing that was like: @Instance(modid) public static ModClass instance; And I don't know what Instance is used for! Please help and thanks in advance! Leonardude
  7. Then how come there is no stone in the Nether? I want this biome in my own dimension if that helps
  8. Hey everyone! I was watching a tutorial on how to create a custom biome, and it said that you couldn't remove the stone. I don't understand why you are not able to do that, but I think that it has to do with the biome generator being a vanilla biome generator. How do I create a biome that doesn't have stone in it, or in other words, how do I create a custom biome generator so that my biomes can be completely customizable?
  9. So how do I fix that Chibill? Thanks for responding!
  10. NullPointerException usually means that there is something wrong with your item ids. It would make sense that you aren't getting NullPointerException immediately because it is a loop. Go back to your item ids and make sure that none of them conflict and that all of them point to something. I hope that this helped you!
  11. I totally forgot to paste the crash logs! This is the what the console said: 2013-11-03 15:06:58 [iNFO] [sTDERR] net.minecraft.util.ReportedException: Colliding entity with tile 2013-11-03 15:06:58 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:674) 2013-11-03 15:06:58 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587) 2013-11-03 15:06:58 [iNFO] [sTDERR] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129) 2013-11-03 15:06:58 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484) 2013-11-03 15:06:58 [iNFO] [sTDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) 2013-11-03 15:06:58 [iNFO] [sTDERR] Caused by: java.lang.ClassCastException: net.minecraft.entity.item.EntityItem cannot be cast to net.minecraft.entity.EntityLiving 2013-11-03 15:06:58 [iNFO] [sTDERR] at com.leonardude.zether.liquids.BlockCorrosiveAcid.onEntityCollidedWithBlock(BlockCorrosiveAcid.java:38) 2013-11-03 15:06:58 [iNFO] [sTDERR] at net.minecraft.entity.Entity.doBlockCollisions(Entity.java:1018) 2013-11-03 15:06:58 [iNFO] [sTDERR] at net.minecraft.entity.Entity.moveEntity(Entity.java:951) 2013-11-03 15:06:58 [iNFO] [sTDERR] at net.minecraft.entity.item.EntityItem.onUpdate(EntityItem.java:113) 2013-11-03 15:06:58 [iNFO] [sTDERR] at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2350) 2013-11-03 15:06:58 [iNFO] [sTDERR] at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:719) 2013-11-03 15:06:58 [iNFO] [sTDERR] at net.minecraft.world.World.updateEntity(World.java:2311) 2013-11-03 15:06:58 [iNFO] [sTDERR] at net.minecraft.world.World.updateEntities(World.java:2157) 2013-11-03 15:06:58 [iNFO] [sTDERR] at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:550) 2013-11-03 15:06:58 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:668) 2013-11-03 15:06:58 [iNFO] [sTDERR] ... 4 more 2013-11-03 15:06:58 [sEVERE] [Minecraft-Server] Encountered an unexpected exception ReportedException net.minecraft.util.ReportedException: Colliding entity with tile at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:674) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) Caused by: java.lang.ClassCastException: net.minecraft.entity.item.EntityItem cannot be cast to net.minecraft.entity.EntityLiving at com.leonardude.zether.liquids.BlockCorrosiveAcid.onEntityCollidedWithBlock(BlockCorrosiveAcid.java:38) at net.minecraft.entity.Entity.doBlockCollisions(Entity.java:1018) at net.minecraft.entity.Entity.moveEntity(Entity.java:951) at net.minecraft.entity.item.EntityItem.onUpdate(EntityItem.java:113) at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2350) at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:719) at net.minecraft.world.World.updateEntity(World.java:2311) at net.minecraft.world.World.updateEntities(World.java:2157) at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:550) at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:668) ... 4 more 2013-11-03 15:06:58 [sEVERE] [Minecraft-Server] This crash report has been saved to: /Users/Shared/Videos_Captured/LeoCoding/Minecraft Modding/forge/mcp/jars/./crash-reports/crash-2013-11-03_15.06.58-server.txt 2013-11-03 15:06:58 [iNFO] [Minecraft-Server] Stopping server 2013-11-03 15:06:58 [iNFO] [Minecraft-Server] Saving players 2013-11-03 15:06:58 [iNFO] [Minecraft-Server] Player182 left the game 2013-11-03 15:06:58 [iNFO] [Minecraft-Server] Saving worlds 2013-11-03 15:06:58 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld 2013-11-03 15:06:58 [iNFO] [sTDOUT] ---- Minecraft Crash Report ---- 2013-11-03 15:06:59 [iNFO] [sTDOUT] // I'm sorry, Dave. 2013-11-03 15:06:59 [iNFO] [sTDOUT] 2013-11-03 15:06:59 [iNFO] [sTDOUT] Time: 11/3/13 3:06 PM 2013-11-03 15:06:59 [iNFO] [sTDOUT] Description: Colliding entity with tile 2013-11-03 15:06:59 [iNFO] [sTDOUT] 2013-11-03 15:06:59 [iNFO] [sTDOUT] java.lang.ClassCastException: net.minecraft.entity.item.EntityItem cannot be cast to net.minecraft.entity.EntityLiving 2013-11-03 15:06:59 [iNFO] [sTDOUT] at com.leonardude.zether.liquids.BlockCorrosiveAcid.onEntityCollidedWithBlock(BlockCorrosiveAcid.java:38) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.entity.Entity.doBlockCollisions(Entity.java:1018) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.entity.Entity.moveEntity(Entity.java:951) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.entity.item.EntityItem.onUpdate(EntityItem.java:113) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2350) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:719) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.world.World.updateEntity(World.java:2311) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.world.World.updateEntities(World.java:2157) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:550) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:668) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) 2013-11-03 15:06:59 [iNFO] [sTDOUT] 2013-11-03 15:06:59 [iNFO] [sTDOUT] 2013-11-03 15:06:59 [iNFO] [sTDOUT] A detailed walkthrough of the error, its code path and all known details is as follows: 2013-11-03 15:06:59 [iNFO] [sTDOUT] --------------------------------------------------------------------------------------- 2013-11-03 15:06:59 [iNFO] [sTDOUT] 2013-11-03 15:06:59 [iNFO] [sTDOUT] -- Head -- 2013-11-03 15:06:59 [iNFO] [sTDOUT] Stacktrace: 2013-11-03 15:06:59 [iNFO] [sTDOUT] at com.leonardude.zether.liquids.BlockCorrosiveAcid.onEntityCollidedWithBlock(BlockCorrosiveAcid.java:38) 2013-11-03 15:06:59 [iNFO] [sTDOUT] 2013-11-03 15:06:59 [iNFO] [sTDOUT] -- Tile being collided with -- 2013-11-03 15:06:59 [iNFO] [sTDOUT] Details: 2013-11-03 15:06:59 [iNFO] [sTDOUT] Block type: ID #3200 (tile.null // com.leonardude.zether.liquids.BlockCorrosiveAcid) 2013-11-03 15:06:59 [iNFO] [sTDOUT] Block data value: 0 / 0x0 / 0b0000 2013-11-03 15:06:59 [iNFO] [sTDOUT] Block location: World: (-259,65,250), Chunk: (at 13,4,10 in -17,15; contains blocks -272,0,240 to -257,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) 2013-11-03 15:06:59 [iNFO] [sTDOUT] Stacktrace: 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.entity.Entity.doBlockCollisions(Entity.java:1018) 2013-11-03 15:06:59 [iNFO] [sTDOUT] 2013-11-03 15:06:59 [iNFO] [sTDOUT] -- Entity being checked for collision -- 2013-11-03 15:06:59 [iNFO] [sTDOUT] Details: 2013-11-03 15:06:59 [iNFO] [sTDOUT] Entity Type: Item (net.minecraft.entity.item.EntityItem) 2013-11-03 15:06:59 [iNFO] [sTDOUT] Entity ID: 8885 2013-11-03 15:06:59 [iNFO] [sTDOUT] Entity Name: item.item.seeds 2013-11-03 15:06:59 [iNFO] [sTDOUT] Entity's Exact location: -258.00, 65.13, 251.06 2013-11-03 15:06:59 [iNFO] [sTDOUT] Entity's Block location: World: (-259,65,251), Chunk: (at 13,4,11 in -17,15; contains blocks -272,0,240 to -257,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) 2013-11-03 15:06:59 [iNFO] [sTDOUT] Entity's Momentum: -0.00, 0.00, 0.00 2013-11-03 15:06:59 [iNFO] [sTDOUT] Stacktrace: 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.entity.Entity.moveEntity(Entity.java:951) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.entity.item.EntityItem.onUpdate(EntityItem.java:113) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2350) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:719) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.world.World.updateEntity(World.java:2311) 2013-11-03 15:06:59 [iNFO] [sTDOUT] 2013-11-03 15:06:59 [iNFO] [sTDOUT] -- Entity being ticked -- 2013-11-03 15:06:59 [iNFO] [sTDOUT] Details: 2013-11-03 15:06:59 [iNFO] [sTDOUT] Entity Type: Item (net.minecraft.entity.item.EntityItem) 2013-11-03 15:06:59 [iNFO] [sTDOUT] Entity ID: 8885 2013-11-03 15:06:59 [iNFO] [sTDOUT] Entity Name: item.item.seeds 2013-11-03 15:06:59 [iNFO] [sTDOUT] Entity's Exact location: -258.00, 65.13, 251.06 2013-11-03 15:06:59 [iNFO] [sTDOUT] Entity's Block location: World: (-259,65,251), Chunk: (at 13,4,11 in -17,15; contains blocks -272,0,240 to -257,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) 2013-11-03 15:06:59 [iNFO] [sTDOUT] Entity's Momentum: -0.00, 0.00, 0.00 2013-11-03 15:06:59 [iNFO] [sTDOUT] Stacktrace: 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.world.World.updateEntities(World.java:2157) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:550) 2013-11-03 15:06:59 [iNFO] [sTDOUT] 2013-11-03 15:06:59 [iNFO] [sTDOUT] -- Affected level -- 2013-11-03 15:06:59 [iNFO] [sTDOUT] Details: 2013-11-03 15:06:59 [iNFO] [sTDOUT] Level name: New World 2013-11-03 15:06:59 [iNFO] [sTDOUT] All players: 1 total; [EntityPlayerMP['Player182'/214, l='New World', x=-260.10, y=65.00, z=249.63]] 2013-11-03 15:06:59 [iNFO] [sTDOUT] Chunk stats: ServerChunkCache: 625 Drop: 0 2013-11-03 15:06:59 [iNFO] [sTDOUT] Level seed: -332537413799752399 2013-11-03 15:06:59 [iNFO] [sTDOUT] Level generator: ID 00 - default, ver 1. Features enabled: true 2013-11-03 15:06:59 [iNFO] [sTDOUT] Level generator options: 2013-11-03 15:06:59 [iNFO] [sTDOUT] Level spawn location: World: (-268,64,244), Chunk: (at 4,4,4 in -17,15; contains blocks -272,0,240 to -257,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) 2013-11-03 15:06:59 [iNFO] [sTDOUT] Level time: 404 game time, 404 day time 2013-11-03 15:06:59 [iNFO] [sTDOUT] Level dimension: 0 2013-11-03 15:06:59 [iNFO] [sTDOUT] Level storage version: 0x04ABD - Anvil 2013-11-03 15:06:59 [iNFO] [sTDOUT] Level weather: Rain time: 57505 (now: false), thunder time: 73378 (now: false) 2013-11-03 15:06:59 [iNFO] [sTDOUT] Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true 2013-11-03 15:06:59 [iNFO] [sTDOUT] Stacktrace: 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:668) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484) 2013-11-03 15:06:59 [iNFO] [sTDOUT] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) 2013-11-03 15:06:59 [iNFO] [sTDOUT] 2013-11-03 15:06:59 [iNFO] [sTDOUT] -- System Details -- 2013-11-03 15:06:59 [iNFO] [sTDOUT] Details: 2013-11-03 15:06:59 [iNFO] [sTDOUT] Minecraft Version: 1.6.4 2013-11-03 15:06:59 [iNFO] [sTDOUT] Operating System: Mac OS X (x86_64) version 10.7.5 2013-11-03 15:06:59 [iNFO] [sTDOUT] Java Version: 1.6.0_65, Apple Inc. 2013-11-03 15:06:59 [iNFO] [sTDOUT] Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc. 2013-11-03 15:06:59 [iNFO] [sTDOUT] Memory: 869286192 bytes (829 MB) / 1065025536 bytes (1015 MB) up to 1065025536 bytes (1015 MB) 2013-11-03 15:06:59 [iNFO] [sTDOUT] JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M 2013-11-03 15:06:59 [iNFO] [sTDOUT] AABB Pool Size: 14372 (804832 bytes; 0 MB) allocated, 4237 (237272 bytes; 0 MB) used 2013-11-03 15:06:59 [iNFO] [sTDOUT] Suspicious classes: FML and Forge are installed 2013-11-03 15:06:59 [iNFO] [sTDOUT] IntCache: cache: 2, tcache: 0, allocated: 1, tallocated: 63 2013-11-03 15:06:59 [iNFO] [sTDOUT] FML: MCP v8.11 FML v6.4.20.916 Minecraft Forge 9.11.1.916 4 mods loaded, 4 mods active 2013-11-03 15:06:59 [iNFO] [sTDOUT] mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available 2013-11-03 15:06:59 [iNFO] [sTDOUT] FML{6.4.20.916} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available 2013-11-03 15:06:59 [iNFO] [sTDOUT] Forge{9.11.1.916} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available 2013-11-03 15:06:59 [iNFO] [sTDOUT] leonardude_zether{1.0} [Zether] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available 2013-11-03 15:06:59 [iNFO] [sTDOUT] Profiler Position: N/A (disabled) 2013-11-03 15:06:59 [iNFO] [sTDOUT] Vec3 Pool Size: 2363 (132328 bytes; 0 MB) allocated, 2253 (126168 bytes; 0 MB) used 2013-11-03 15:06:59 [iNFO] [sTDOUT] Player Count: 1 / 8; [EntityPlayerMP['Player182'/214, l='New World', x=-260.10, y=65.00, z=249.63]] 2013-11-03 15:06:59 [iNFO] [sTDOUT] Type: Integrated Server (map_client.txt) 2013-11-03 15:06:59 [iNFO] [sTDOUT] Is Modded: Definitely; Client brand changed to 'fml,forge' 2013-11-03 15:06:59 [iNFO] [sTDOUT] #@!@# Game crashed! Crash report saved to: #@!@# ./crash-reports/crash-2013-11-03_15.06.58-server.txt 2013-11-03 15:06:59 [iNFO] [Minecraft-Server] Stopping server 2013-11-03 15:06:59 [iNFO] [Minecraft-Server] Saving players 2013-11-03 15:06:59 [iNFO] [Minecraft-Server] Saving worlds 2013-11-03 15:06:59 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld AL lib: (EE) alc_cleanup: 1 device not closed And this is what was in the crash log: ---- Minecraft Crash Report ---- // Quite honestly, I wouldn't worry myself about that. Time: 11/3/13 3:06 PM Description: Colliding entity with tile java.lang.ClassCastException: net.minecraft.entity.item.EntityItem cannot be cast to net.minecraft.entity.EntityLiving at com.leonardude.zether.liquids.BlockCorrosiveAcid.onEntityCollidedWithBlock(BlockCorrosiveAcid.java:38) at net.minecraft.entity.Entity.doBlockCollisions(Entity.java:1018) at net.minecraft.entity.Entity.moveEntity(Entity.java:951) at net.minecraft.entity.item.EntityItem.onUpdate(EntityItem.java:113) at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2350) at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:719) at net.minecraft.world.World.updateEntity(World.java:2311) at net.minecraft.world.World.updateEntities(World.java:2157) at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:550) at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:668) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at com.leonardude.zether.liquids.BlockCorrosiveAcid.onEntityCollidedWithBlock(BlockCorrosiveAcid.java:38) -- Tile being collided with -- Details: Block type: ID #3200 (tile.null // com.leonardude.zether.liquids.BlockCorrosiveAcid) Block data value: 0 / 0x0 / 0b0000 Block location: World: (-259,65,250), Chunk: (at 13,4,10 in -17,15; contains blocks -272,0,240 to -257,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) Stacktrace: at net.minecraft.entity.Entity.doBlockCollisions(Entity.java:1018) -- Entity being checked for collision -- Details: Entity Type: Item (net.minecraft.entity.item.EntityItem) Entity ID: 8885 Entity Name: item.item.seeds Entity's Exact location: -258.00, 65.13, 251.06 Entity's Block location: World: (-259,65,251), Chunk: (at 13,4,11 in -17,15; contains blocks -272,0,240 to -257,255,255), 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 Stacktrace: at net.minecraft.entity.Entity.moveEntity(Entity.java:951) at net.minecraft.entity.item.EntityItem.onUpdate(EntityItem.java:113) at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2350) at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:719) at net.minecraft.world.World.updateEntity(World.java:2311) -- Entity being ticked -- Details: Entity Type: Item (net.minecraft.entity.item.EntityItem) Entity ID: 8885 Entity Name: item.item.seeds Entity's Exact location: -258.00, 65.13, 251.06 Entity's Block location: World: (-259,65,251), Chunk: (at 13,4,11 in -17,15; contains blocks -272,0,240 to -257,255,255), 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 Stacktrace: at net.minecraft.world.World.updateEntities(World.java:2157) at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:550) -- Affected level -- Details: Level name: New World All players: 1 total; [EntityPlayerMP['Player182'/214, l='New World', x=-260.10, y=65.00, z=249.63]] Chunk stats: ServerChunkCache: 625 Drop: 0 Level seed: -332537413799752399 Level generator: ID 00 - default, ver 1. Features enabled: true Level generator options: Level spawn location: World: (-268,64,244), Chunk: (at 4,4,4 in -17,15; contains blocks -272,0,240 to -257,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) Level time: 404 game time, 404 day time Level dimension: 0 Level storage version: 0x04ABD - Anvil Level weather: Rain time: 57505 (now: false), thunder time: 73378 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true Stacktrace: at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:668) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) -- System Details -- Details: Minecraft Version: 1.6.4 Operating System: Mac OS X (x86_64) version 10.7.5 Java Version: 1.6.0_65, Apple Inc. Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc. Memory: 869286192 bytes (829 MB) / 1065025536 bytes (1015 MB) up to 1065025536 bytes (1015 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 14372 (804832 bytes; 0 MB) allocated, 4237 (237272 bytes; 0 MB) used Suspicious classes: FML and Forge are installed IntCache: cache: 2, tcache: 0, allocated: 1, tallocated: 63 FML: MCP v8.11 FML v6.4.20.916 Minecraft Forge 9.11.1.916 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.20.916} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{9.11.1.916} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available leonardude_zether{1.0} [Zether] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Profiler Position: N/A (disabled) Vec3 Pool Size: 2363 (132328 bytes; 0 MB) allocated, 2253 (126168 bytes; 0 MB) used Player Count: 1 / 8; [EntityPlayerMP['Player182'/214, l='New World', x=-260.10, y=65.00, z=249.63]] Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'fml,forge' Thanks!
  12. Hi everyone! I've been having issues with having potion effects on my liquid, and I thought that I finally solved them, because I took some code from Minefactory Reloaded. I ran the game and everything seemed fine. I created a new world, place down my liquid, and then the game crashed, saying that it was some sort of server issue. I don't know what to do now, so I am posting here. This is the only relevant code, the code for the BlockCorrosiveAcid class: package com.leonardude.zether.liquids; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.util.Icon; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.fluids.BlockFluidClassic; import com.leonardude.zether.main.Zether; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class BlockCorrosiveAcid extends BlockFluidClassic { public BlockCorrosiveAcid(int id) { super(id, Zether.fluidCorrosiveAcid, Material.water); this.setCreativeTab(CreativeTabs.tabBlock); Zether.fluidCorrosiveAcid.setBlockID(id); } @Override public void onEntityCollidedWithBlock( World world, int x, int y, int z, Entity entity ) { if (world.isRemote) { return; } if(entity instanceof EntityPlayer || entity instanceof EntityMob && !((EntityLiving)entity).isEntityUndead()) { ((EntityLiving)entity).addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 200, 1)); } super.onEntityCollidedWithBlock(world, x, y, z, entity); } @Override @SideOnly(Side.CLIENT) public Icon getIcon(int side, int meta) { return Block.waterMoving.getIcon(side, meta); } @Override public int colorMultiplier(IBlockAccess iblockaccess, int x, int y, int z) { return 0x66FF00; } } Thanks for putting up with the longish post and thanks in advance for answering! ;D ;D Leonardude
  13. Hello everyone! I'm trying to use onEntityCollidedWithBlock to add a potion effect to an entity while the entity is swimming in the liquid but it isn't working. I have no idea why it isn't working as I have followed multiple tutorials. My liquid is instantiated right so I don't think that that is the problem. This is the code for the fluid of my liquid in the class FluidCorrosiveAcid: package com.leonardude.zether.liquids; import net.minecraftforge.fluids.Fluid; import net.minecraftforge.fluids.FluidRegistry; public class FluidCorrosiveAcid extends Fluid { public FluidCorrosiveAcid() { super("fluidCorrosiveAcid"); this.setDensity(10); this.setViscosity(1000); FluidRegistry.registerFluid(this); } } And this is the code for the block of my liquid in the class BlockCorrosiveAcid: package com.leonardude.zether.liquids; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLiving; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.util.Icon; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.fluids.BlockFluidClassic; import com.leonardude.zether.main.Zether; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class BlockCorrosiveAcid extends BlockFluidClassic { public BlockCorrosiveAcid(int id) { super(id, Zether.fluidCorrosiveAcid, Material.water); this.setCreativeTab(CreativeTabs.tabBlock); Zether.fluidCorrosiveAcid.setBlockID(id); } @Override public void onEntityCollidedWithBlock( World world, int x, int y, int z, Entity entity ) { if (entity instanceof EntityLiving) { ((EntityLiving)entity).addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 200, 1)); } } @Override @SideOnly(Side.CLIENT) public Icon getIcon(int side, int meta) { return Block.waterMoving.getIcon(side, meta); } @Override public int colorMultiplier(IBlockAccess iblockaccess, int x, int y, int z) { return 0x66FF00; } } Please help as I have no idea what I am doing wrong! Thanks in advance! ;D ;D Leonardude
  14. I have written the code that you said into my liquid block file and it didn't work. This is the code for my that has to do with the liquid in my mod's main class: //Define Fluids public static Fluid fluidCorrosiveAcid; public static Block blockCorrosiveAcid; //Initialize Fluids fluidCorrosiveAcid = new FluidCorrosiveAcid(); blockCorrosiveAcid = new BlockCorrosiveAcid(3200); //Register Fluids To The Game GameRegistry.registerBlock(blockCorrosiveAcid); //Register Names Of Fluids LanguageRegistry.addName(blockCorrosiveAcid, "Corrosive Acid"); This is the code that has to do with the potion in my mod's main class: //Define Potions public static Potion corrosiveAcid; @PreInit public void preInit(FMLPreInitializationEvent event) { Potion[] potionTypes = null; for (Field f : Potion.class.getDeclaredFields()) { f.setAccessible(true); try { if (f.getName().equals("potionTypes") || f.getName().equals("field_76425_a")) { Field modfield = Field.class.getDeclaredField("modifiers"); modfield.setAccessible(true); modfield.setInt(f, f.getModifiers() & ~Modifier.FINAL); potionTypes = (Potion[])f.get(null); final Potion[] newPotionTypes = new Potion[256]; System.arraycopy(potionTypes, 0, newPotionTypes, 0, potionTypes.length); f.set(null, newPotionTypes); } } catch (Exception e) { System.err.println("Severe error, please report this to the mod author:"); System.err.println(e); } } MinecraftForge.EVENT_BUS.register(new ZetherEventHooks()); } //Initialize Potions corrosiveAcid = new PotionCorrosiveAcid(32, false, 0).setPotionName("corrosiveAcid"); This is the code for my FluidCorrosiveAcid: package com.leonardude.zether.blocks; import net.minecraftforge.fluids.Fluid; import net.minecraftforge.fluids.FluidRegistry; public class FluidCorrosiveAcid extends Fluid { public FluidCorrosiveAcid() { super("fluidCorrosiveAcid"); this.setDensity(10); this.setViscosity(1000); FluidRegistry.registerFluid(this); } } This is the code for my BlockCorrosiveAcid: package com.leonardude.zether.blocks; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLiving; import net.minecraft.potion.PotionEffect; import net.minecraft.util.Icon; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.fluids.BlockFluidClassic; import com.leonardude.zether.main.Zether; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class BlockCorrosiveAcid extends BlockFluidClassic { public BlockCorrosiveAcid(int id) { super(id, Zether.fluidCorrosiveAcid, Material.water); this.setCreativeTab(CreativeTabs.tabBlock); Zether.fluidCorrosiveAcid.setBlockID(id); } @Override public void onEntityCollidedWithBlock( World world, int x, int y, int z, Entity entity ) { if (entity instanceof EntityLiving) { ((EntityLiving)entity).addPotionEffect(new PotionEffect(Zether.corrosiveAcid.id, 200, 0)); } } @Override @SideOnly(Side.CLIENT) public Icon getIcon(int side, int meta) { return Block.waterMoving.getIcon(side, meta); } @Override public int colorMultiplier(IBlockAccess iblockaccess, int x, int y, int z) { return 0x66FF00; } } This is the code for my PotionCorrosiveAcid: package com.leonardude.zether.potions; import net.minecraft.potion.Potion; public class PotionCorrosiveAcid extends Potion { public PotionCorrosiveAcid(int id, boolean par2, int par3) { super(id, par2, par3); } } And this is the code for the event hook that has to do with the potion: package com.leonardude.zether.event; import net.minecraft.util.DamageSource; import net.minecraftforge.event.ForgeSubscribe; import net.minecraftforge.event.entity.living.LivingEvent.LivingUpdateEvent; import com.leonardude.zether.main.Zether; public class ZetherEventHooks { @ForgeSubscribe public void onEntityUpdate(LivingUpdateEvent event) { if (event.entityLiving.isPotionActive(Zether.corrosiveAcid)) { if (event.entityLiving.worldObj.rand.nextInt(20) == 0) { event.entityLiving.attackEntityFrom(DamageSource.lava, 2); if (event.entityLiving.getActivePotionEffect(Zether.corrosiveAcid).getDuration()==0) { event.entityLiving.removePotionEffect(Zether.corrosiveAcid.id); return; } } } } } Do I have to register the potion to the game? If so how do I do that? Please help me, as I have no idea what I am doing wrong!!! Thanks, in advance!
  15. There is no such thing as entity.addPotionEffect I still don't know what to do. I made a potion effect and a liquid, but I still don't know how to add the potion effect to the liquid.
  16. My Liquid Isn't Being Added To The Game Even Though There Are No Errors Hello everyone! I tried to add a custom liquid to the game, but when I loaded up the game there were no errors, but my liquid didn't get added. I don't know how to fix this so I came here for help! This is the code is my mod's main class that has to do with the liquid: //Define Fluids public static Fluid fluidCorrosiveAcid; public static Block blockCorrosiveAcid; //Initialize Fluids fluidCorrosiveAcid = new FluidCorrosiveAcid(); blockCorrosiveAcid = new BlockCorrosiveAcid(3201); //Register Fluids To The Game GameRegistry.registerBlock(blockCorrosiveAcid); This is the code for the FluidCorrosiveAcid class: package com.leonardude.zether.blocks; import net.minecraftforge.fluids.Fluid; import net.minecraftforge.fluids.FluidRegistry; public class FluidCorrosiveAcid extends Fluid { public FluidCorrosiveAcid() { super("fluidCorrosiveAcid"); this.setDensity(10); this.setViscosity(1000); FluidRegistry.registerFluid(this); } } And this is the code for the BlockCorrosiveAcid class: package com.leonardude.zether.blocks; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.util.Icon; import net.minecraft.world.IBlockAccess; import net.minecraftforge.fluids.BlockFluidClassic; import com.leonardude.zether.main.Zether; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class BlockCorrosiveAcid extends BlockFluidClassic { public BlockCorrosiveAcid(int id) { super(id, Zether.fluidCorrosiveAcid, Material.water); Zether.fluidCorrosiveAcid.setBlockID(id); } @Override @SideOnly(Side.CLIENT) public Icon getIcon(int side, int meta) { return Block.waterMoving.getIcon(side, meta); } @Override public int colorMultiplier(IBlockAccess iblockaccess, int x, int y, int z) { return 0x66FF00; } } Please help me as I have no idea what to do! Thanks in advance! ;D ;D Leonardude
  17. How would I use onEntityCollidedWithBlock to release the potion effect on the entity? I don't really know how to use that method.
  18. Hello everyone! I'm leonardude, and I've been searching around and I can't figure out how to make a custom liquid that has potion effects. Thanks in advance for helping me! ;D ;D Leonardude
  19. How do I make stairs using metadata that are modeled from my mod's blocks and use metadata Hello everyone, I'm leonardude! I'm trying to implement stairs that are based off of one of the blocks that my mod adds and that uses metadata, meaning that, like normal stairs, changes how the stair is placed based on what direction the player is looking while placing the stair. I have researched for hours, and I couldn't find anything that could help me with modeling the stair off of one of my mod's blocks, and that uses metadata. That's why I came here! Hopefully you can help me, because I'd really appreciate it! Thanks in advance! ;D ;D Leonardude

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.