Everything posted by Draco18s
-
[1.7.10] Make my custom block clickable
Yes, because you're doing it wrong. Eclipse will tell you "hey, that function isn't overriding anything." Which should prompt you go to find the method you're trying to override and make sure you have correctly copied the method signature. Also, you don't call the function yourself.
-
[Solved] Different variable values for each player
You have to store the information in the ItemStack's nbt tag, because the Item class is a singleton. Every field is effectively static.
-
I really need help on compiling and reobfuscating! 1.6.4 mod! HELP
NO CODE AND NO ERROR SUPPLIED, NO HELP POSSIBLE. YOU ARE USING 1.6.4, EVEN FEWER PEOPLE WILL HELP BECAUSE ITS OLD AS FUCK.
-
[1.8] [SOLVED]Updating a horizontally spreading block
A TileEntity is not needed here. This block doesn't need to store any information and isn't even using metadata. It's simply trying to replace a neighboring block with itself. I don't know why it's not working, but I also haven't messed with 1.8
-
[1.7.10] java.lang.NoClassDefFoundError: FMLRenderAccessLibrary. Outside eclipse
Fair enough. I was just curious about it.
-
[1.7.10] java.lang.NoClassDefFoundError: FMLRenderAccessLibrary. Outside eclipse
I know why the message exists, but is it reporting itself, then? I'm just amused that some part of FML is being detected and not ignored.
-
[1.7.10] java.lang.NoClassDefFoundError: FMLRenderAccessLibrary. Outside eclipse
Is that the one that every time I run in dev I get a "package found in net.minecraft.src! This is bad and should be reported!" message?
-
[1.8] Mod crashes when trying to use block from another mod
Are you including the modid the block is registered with? It's kind of important.
-
[1.8] Mod crashes when trying to use block from another mod
a) the block doesn't exist (the mod is not loaded) b) you supplied the wrong name
-
[Solved][1.7.10]How do I ge Regeneration working?
Haven't messed with them.
-
[SOLVED] [1.7.10] I need something to control the spawn of mobs of my mob.
Frankly, your code is a mess and I can't figure out what it's doing. btw, while (spellDone[spell] || spell == prevSpell); if spell == prevSpell, then spellDone[spell] is going to also be true, it's a useless conditional.
-
[1.8] Mod crashes when trying to use block from another mod
Gosh, have you tried printing or testing the values of b and replacement to make sure that they aren't null before you get their unlocalized name?
-
[1.8] [SOLVED]Updating a horizontally spreading block
Pretty sure that if you take a blockpos at (x,y,z) and add (x,y+1,z) to it you'll have (2x,2y+1,2z) not (x,y+1,z).
-
[SOLVED] [1.7.10] I need something to control the spawn of mobs of my mob.
So here's your basic problem: Every entity has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself.
-
[Solved][1.7.10]How do I ge Regeneration working?
Regeneration regenerates 1 (Half Heart) over time every 50 ticks. Which means you need to apply the effect, wait for it to tick away, then re-apply it. Constantly setting the time to 5 ticks isn't going to work (Regen 3 takes 12 ticks). Second, make sure that you apply the effect on the server.
-
Missing texture on block in 1.8?
You are extending BlockReed. BlockReed has a block state property called "Age". Your block now has a block state property called "Age". Your json isn't defining how that property should be handled.
-
Making dependant mods in 1.8?
note: version numbers can be a range, too. E.g. [1.0.0,] meaning "1.0.0 and later" (note the comma) or [1.0.0,2.0.0] meaning "1.0.0 to 2.0.0" (inclusive).
-
[SOLVED] Error in putting PotionEffect on player.
Which will immediately crash a dedicated server.
-
[SOLVED] Error in putting PotionEffect on player.
Please don't use marquee text. It's awful. Ok, so, as far as I can tell, you're trying to reference the singleplayer...player, which you should Never Do. Never ever ever. While this was fine in 1.2.5, you can no longer do that, because "single player" is actually "multiplayer with one connected player, running locally." Second, minecraft.thePlayer, "minecraft" here is not a variable anywhere in your class, you never declare it. You have a EntityPlayer entityplayer and a Minecraft theGame , but no minecraft . Also, you need to get rid of both of those. Treat single player as multiplayer and it'll work out. What's the clostest connected player in a single player world? The only player available: the single player. Third, I can't figure out when f will ever be larger than 16. Or hell, larger than 0. It looks like f is defined as the entity's physical height minus it's position above the void, so unless it's like 16 blocks tall, or more, f will never be greater than 16.
-
[1.7.10]Where is the difference ?
It's good practice to split the declaration and assignment, as with 1.8 (IIRC) you must do it that way. Also, your second codeblock won't compile. public static Item tutorialitem(); //this line won't compile public static Block tutorialblock = new tutorialblock(Material.rock); //you left the = new...() part here, you should have removed it @EventHandler public void preInit(FMLPreInitializationEvent event) { tutorialitem = new tutorialitem(); tutorialblock = new tutorialblock(Material.rock) //missing semicolon; second definition GameRegistry.registerBlock(tutorialblock, "tutorialblock"); GameRegistry.registerItem(tutorialitem, "tutorialitem"); }
-
[SOLVED] Error in putting PotionEffect on player.
Don't cast to EntityLiving, cast to EntityLivingBase. The class hierarchy got altered a while back.
-
What's with the ClassInheritanceMultiMap?
Or close it because it's a mod problem. Like maps not functioning correctly in dimensions above 127.
-
[1.7.10] GUI Problem, can't move blocks around
Cough java.lang.RuntimeException: class com.atimmeh33.timmehutils.blocks.TileEntityCarbonPressurizer is missing a mapping! This is a bug! You didn't register your TE
-
[1.8] Get chunk Coords [SOLVED]
Yes, yes they are, as I discovered one night.
-
[SOLVED][1.7.10] question about preventing entity "despawning"
That's called "view distance culling."
IPS spam blocked by CleanTalk.