Didn't you make a post about this before? It's mostly the same as before but with different registration, plus entity tracking. Though your code works(didn't test), it's more than that. I would go with Forge anyways since each entity Id is unique for each mod, but I remember you saying no Forge.
--- BEGIN ERROR REPORT 888ad383 --------
Full report at:
C:\Users\Jason\Desktop\Minecraft Modding\JASON\Myth Mod\jars\.\crash-reports\crash-2013-01-07_10.54.25-client.txt
Please show that file to Mojang, NOT just this screen!
Generated 7/01/13 10:54 AM
-- Head --
Stacktrace:
at net.minecraft.src.RenderItem.func_77020_a(RenderItem.java:252)
at net.minecraft.src.RenderItem.doRenderItem(RenderItem.java:184)
at net.minecraft.src.RenderItem.doRender(RenderItem.java:571)
-- Entity being rendered --
Details:
Entity Type: Item (net.minecraft.src.EntityItem)
Entity ID: 6396
Name: item.item.Aqua Potion
Exact location: 358.31, 5.31, -599.66
Block location: World: (358,5,-600), Chunk: (at 6,0,8 in 22,-38; contains blocks 352,0,-608 to 367,255,-593), Region: (0,-2; contains chunks 0,-64 to 31,-33, blocks 0,0,-1024 to 511,255,-513)
Momentum: -0.25, -0.01, 0.08
-- Renderer details --
Details:
Assigned renderer: [email protected]
Location: -0.01,-0.31,-0.00 - World: (-1,-1,-1), Chunk: (at 15,-1,15 in -1,-1; contains blocks -16,0,-16 to -1,255,-1), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
Rotation: 52.014706
Delta: 0.18043041
Stacktrace:
at net.minecraft.src.RenderManager.renderEntityWithPosYaw(RenderManager.java:219)
at net.minecraft.src.RenderManager.renderEntity(RenderManager.java:188)
at net.minecraft.src.RenderGlobal.renderEntities(RenderGlobal.java:438)
at net.minecraft.src.EntityRenderer.renderWorld(EntityRenderer.java:1100)
at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:943)
-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['Player234'/76, l='MpServer', x=358.32, y=5.62, z=-599.66]]
Chunk stats: MultiplayerChunkCache: 441
Level seed: 0
Level generator: ID 01 - flat, ver 0. Features enabled: false
Level generator options:
Level spawn location: World: (449,4,-666), Chunk: (at 1,0,6 in 28,-42; contains blocks 448,0,-672 to 463,255,-657), Region: (0,-2; contains chunks 0,-64 to 31,-33, blocks 0,0,-1024 to 511,255,-513)
Level time: 21533 game time, 8743 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: 17 total; [EntityBlueWizard['entity.BlueWizard.name'/34, l='MpServer', x=370.74, y=4.00, z=-599.19], EntityRedWizard['entity.RedWizard.name'/35, l='MpServer', x=375.38, y=4.00, z=-605.00], EntityImp['entity.IMP.name'/32, l='MpServer', x=367.45, y=4.00, z=-604.47], EntityItem['item.item.Aqua Potion'/6396, l='MpServer', x=358.31, y=5.31, z=-599.66], EntityImp['entity.IMP.name'/33, l='MpServer', x=368.38, y=4.00, z=-604.96], EntitySaberTooth['entity.SaberTooth.name'/38, l='MpServer', x=368.50, y=4.00, z=-597.97], EntityImp['entity.IMP.name'/39, l='MpServer', x=368.50, y=4.00, z=-605.97], EntityYellowWizard['entity.YellowWizard.name'/36, l='MpServer', x=376.50, y=4.00, z=-606.00], EntityUnicorn['entity.Unicorn.name'/37, l='MpServer', x=375.72, y=4.00, z=-595.85], EntitySlime['Slime'/40, l='MpServer', x=425.65, y=4.61, z=-637.84], EntityClientPlayerMP['Player234'/76, l='MpServer', x=358.32, y=5.62, z=-599.66], EntitySlime['Slime'/13, l='MpServer', x=290.41, y=4.00, z=-588.44], EntityPig['Pig'/44, l='MpServer', x=439.13, y=4.00, z=-522.13], EntityVillager['Villager'/19, l='MpServer', x=281.59, y=4.00, z=-533.78], EntityVillager['Villager'/20, l='MpServer', x=284.25, y=4.00, z=-542.75], EntityVillager['Villager'/26, l='MpServer', x=287.59, y=4.00, z=-530.44], EntitySaberTooth['entity.SaberTooth.name'/31, l='MpServer', x=368.56, y=4.00, z=-596.97]]
Retry entities: 0 total; []
Stacktrace:
at net.minecraft.src.WorldClient.addWorldInfoToCrashReport(WorldClient.java:406)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2434)
at net.minecraft.client.Minecraft.run(Minecraft.java:784)
at java.lang.Thread.run(Unknown Source)
-- System Details --
Details:
Minecraft Version: 1.4.6
Operating System: Windows 8 (x86) version 6.2
Java Version: 1.7.0_10, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 875445880 bytes (834 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 9255 (518280 bytes; 0 MB) allocated, 260 (14560 bytes; 0 MB) used
Suspicious classes: Start[net.minecraft.src.IPlayerUsage, MinecraftError, ReportedException, ...]
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
ModLoader: Mods loaded: 2
ModLoader 1.4.6
mod_Mythical v0.1
LWJGL: 2.4.2
OpenGL: AMD Radeon HD 6450 GL version 4.2.11931 Compatibility Profile Context, ATI Technologies Inc.
Is Modded: Very likely; Jar signature invalidated
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: 208 (11648 bytes; 0 MB) allocated, 137 (7672 bytes; 0 MB) used
java.lang.ArrayIndexOutOfBoundsException: 22363
at net.minecraft.src.RenderItem.func_77020_a(RenderItem.java:252)
at net.minecraft.src.RenderItem.doRenderItem(RenderItem.java:184)
at net.minecraft.src.RenderItem.doRender(RenderItem.java:571)
at net.minecraft.src.RenderManager.renderEntityWithPosYaw(RenderManager.java:219)
at net.minecraft.src.RenderManager.renderEntity(RenderManager.java:188)
at net.minecraft.src.RenderGlobal.renderEntities(RenderGlobal.java:438)
at net.minecraft.src.EntityRenderer.renderWorld(EntityRenderer.java:1100)
at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:943)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:20)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:878)
at net.minecraft.client.Minecraft.run(Minecraft.java:768)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 90030bc9 ----------
Are you using 22363 as an item ID?
Rollback Post to RevisionRollBack
When life gives you a potato, wonder why the heck life just gave you a potato. Why not something else? Like money? Or a combustable lemon? No, you get a potato. Nothing else.
The numbers are the spawn rate. So in this case, rare. I think it was like this
First = How many on each chunk.
Second = Minimum in a group.
Third = Maxinum in a group
EnumCreatureType.monster
This is if it going to be friendly or hostile. Type creature instead of monster to make it friendly.
ModLoader.addLocalization("entity.NPC Test Man.name", "NPC Test Man");
This is so the right name appear on the spawner egg. You have to add the right name as you did on EntityNameHere.class, "NPC Test Man". So in this case "NPC Test Man". Type the right name instead of NPC Test Man on entity.NPC Test Man.name. After that you put the right name so you can have whatever you want! Like Mr Bean.
var1.put(EntityNameHere.class, new RenderBiped(new ModelBiped(), 0.5F));
This is where you connect the mob to the model. If you change ModelBiped to a cow for example, you have to change RenderBiped to RenderCow. If it doesn't exist, take RenderLiving instead
Hope you like it!
The only reason it works is that you are registering the entity to an actual id instead of using ModLoader and getting a unique one. As LocknLoad said, Forge is still recommended as it is much, much better.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I know that Forge is better but I have no idea how to make a mob in Forge. But I decided to share my NPC code because I haven't see your NPC tutorial updated sience 1.2.5.
I haven't updated it because using a static id is horrible for compatibility, which is one of the things I was making an effort to stamp out with these tutorials.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Are you planning to finish the dimension tutorial? NO RUSH! just wondering.
//C0rpal
Quote from TechGuy543 »
This section is under work. I will try not to let it die like the gui tutorial did. By the time this tutorial is fully done, it will probably be my most comprehensive tutorial by far.
Rollback Post to RevisionRollBack
When life gives you a potato, wonder why the heck life just gave you a potato. Why not something else? Like money? Or a combustable lemon? No, you get a potato. Nothing else.
Are you planning to finish the dimension tutorial? NO RUSH! just wondering.
//C0rpal
The tutorial has died until I finish the mod I'm working on and have resolved the issues I'm having with it.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I'm try to generate 2 ores and my code seems like it is right but when i test it, it gets stuck on the "loading world building terrain" screen
public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
Random randomGenerator = random;
for (int i = 0; i < 10; i++)
{
int randPosX = chunkX + randomGenerator.nextInt(40);
int randPosY = random.nextInt(20);
int randPosZ = chunkZ + randomGenerator.nextInt(40);
(new WorldGenMinable(rubyoreBlock.blockID, 4)).generate(world, random, randPosX, randPosY, randPosZ);
}
for (int i = 0; i < 10; i++)
{
int randPosX = chunkX + randomGenerator.nextInt(40);
int randPosY = random.nextInt(20);
int randPosZ = chunkZ + randomGenerator.nextInt(40);
(new WorldGenMinable(sapphireoreBlock.blockID, 4)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
im sure there is something i have overlooked any help would be appreciated.
I'm try to generate 2 ores and my code seems like it is right but when i test it, it gets stuck on the "loading world building terrain" screen
public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
Random randomGenerator = random;
for (int i = 0; i < 10; i++)
{
int randPosX = chunkX + randomGenerator.nextInt(40);
int randPosY = random.nextInt(20);
int randPosZ = chunkZ + randomGenerator.nextInt(40);
(new WorldGenMinable(rubyoreBlock.blockID, 4)).generate(world, random, randPosX, randPosY, randPosZ);
}
for (int i = 0; i < 10; i++)
{
int randPosX = chunkX + randomGenerator.nextInt(40);
int randPosY = random.nextInt(20);
int randPosZ = chunkZ + randomGenerator.nextInt(40);
(new WorldGenMinable(sapphireoreBlock.blockID, 4)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
im sure there is something i have overlooked any help would be appreciated.
Leave the argument in the chunkX and chunkZ rand.nextInt's at 16 as that is the chunk size.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I don't mean with buckets. I'm just giving that as an example. Like crafting scissors and paper to get cut paper, you don't consume the scissors.
I'm assuming you don't know Java, or else you'd realize that that's the method you use to determine which Item is placed in the CraftingMatrix when the item is used, and you'd merely change Item.bucketEmpty to any of the other Items in the game.
I'm assuming you don't know Java, or else you'd realize that that's the method you use to determine which Item is placed in the CraftingMatrix when the item is used, and you'd merely change Item.bucketEmpty to any of the other Items in the game.
That's true, I'm quite new with java. Is this with modloader? I never heard of CraftingMatrix, just addRecipe code.
That's true, I'm quite new with java. Is this with modloader? I never heard of CraftingMatrix, just addRecipe code.
CraftingMatrix is part of the system that the crafting bench works on. ModLoader doesn't need the ability of teaching people about the actual systems of Minecraft because people believe they can use it to make a fantastic mod. Which they can, but the best mods really take advantage of the things that Minecraft and Forge have on offer.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I'm assuming you don't know Java, or else you'd realize that that's the method you use to determine which Item is placed in the CraftingMatrix when the item is used, and you'd merely change Item.bucketEmpty to any of the other Items in the game.
i actually came here to ask the same question, now my question is where do you place the method at :@
update your code to fit the new mod loader things, which I'm assuming haven't changed much. the biggest concern would probably be changing the ID numbers you gave to your new block/items because they could've been taken by newer Minecraft items.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Sorry bad english
A Huge Castle Download: (Coming Soon!)
I think the better question is, will he continue making Forge tutorials.
Didn't you make a post about this before? It's mostly the same as before but with different registration, plus entity tracking. Though your code works(didn't test), it's more than that. I would go with Forge anyways since each entity Id is unique for each mod, but I remember you saying no Forge.
-
View User Profile
-
View Posts
-
Send Message
Retired StaffI believe he said he will keep those up to date as well.
Are you using 22363 as an item ID?
The only reason it works is that you are registering the entity to an actual id instead of using ModLoader and getting a unique one. As LocknLoad said, Forge is still recommended as it is much, much better.
together they are powerful beyond imagination."
I haven't updated it because using a static id is horrible for compatibility, which is one of the things I was making an effort to stamp out with these tutorials.
together they are powerful beyond imagination."
-
View User Profile
-
View Posts
-
Send Message
Retired StaffThe tutorial has died until I finish the mod I'm working on and have resolved the issues I'm having with it.
together they are powerful beyond imagination."
public void generateSurface(World world, Random random, int chunkX, int chunkZ) { Random randomGenerator = random; for (int i = 0; i < 10; i++) { int randPosX = chunkX + randomGenerator.nextInt(40); int randPosY = random.nextInt(20); int randPosZ = chunkZ + randomGenerator.nextInt(40); (new WorldGenMinable(rubyoreBlock.blockID, 4)).generate(world, random, randPosX, randPosY, randPosZ); } for (int i = 0; i < 10; i++) { int randPosX = chunkX + randomGenerator.nextInt(40); int randPosY = random.nextInt(20); int randPosZ = chunkZ + randomGenerator.nextInt(40); (new WorldGenMinable(sapphireoreBlock.blockID, 4)).generate(world, random, randPosX, randPosY, randPosZ); } }im sure there is something i have overlooked any help would be appreciated.
Leave the argument in the chunkX and chunkZ rand.nextInt's at 16 as that is the chunk size.
together they are powerful beyond imagination."
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI don't mean with buckets. I'm just giving that as an example. Like crafting scissors and paper to get cut paper, you don't consume the scissors.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI'm assuming you don't know Java, or else you'd realize that that's the method you use to determine which Item is placed in the CraftingMatrix when the item is used, and you'd merely change Item.bucketEmpty to any of the other Items in the game.
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumexample: if i hold this item and i press the button 2 on the numpad, it goes backward
That's true, I'm quite new with java. Is this with modloader? I never heard of CraftingMatrix, just addRecipe code.
CraftingMatrix is part of the system that the crafting bench works on. ModLoader doesn't need the ability of teaching people about the actual systems of Minecraft because people believe they can use it to make a fantastic mod. Which they can, but the best mods really take advantage of the things that Minecraft and Forge have on offer.
together they are powerful beyond imagination."
i actually came here to ask the same question, now my question is where do you place the method at :@
update your code to fit the new mod loader things, which I'm assuming haven't changed much. the biggest concern would probably be changing the ID numbers you gave to your new block/items because they could've been taken by newer Minecraft items.