Everything posted by Draco18s
-
multi-textured block help
Open up BlockPumpkin and take a look at its registerIcons function.
-
Custom Mob Weird Texture Glitch!
So. You started a new thread. You still have the same problem. And it's already been pointed out to you. Torso.mirror = false; Torso = new ModelRenderer(this, 28, 3); There is something wrong with this picture.
-
multi-textured block help
What do you mean multi textured? Do you mean like wool? Or do you mean like pumpkins?
-
Make vanilla mobs drop items
I'd just like to point out that there is no way in hell you should have thought that your code would work: public void onEntityDrop(ModLivingDropsEvent event) { So this function takes a parameter of...your class. No red flags yet. Weird, but not--technically--incorrect. event.entityLiving Uh. Your class doesn't have that property. It only has public static double rand; Because ModLivingDropsEvent doesn't extend or implement any classes. So either: a) You gave 'event' the wrong type (as the above posters have pointed out, it should be LivingDropsEvent) b) You didn't properly extend a base class (e.g. ModLivingDropsEvent extends LivingDropsEvent, which in this case is unnecessary).
-
Eclipse has spoiled me
I've seen evidence of people using it with Unity, just gotta figure out how to set up the workspace...
-
Need help!
^I was about to post the same thing, but I thought I should scroll down to see if someone else did first. Took me a while but I got there eventually! http://www.sxc.hu/pic/m/o/om/omironia/394275_end_key.jpg[/img]
-
Need help!
Well... You're kind of in the wrong place... You need to report this to the mod author... And learn how to use the [ spoiler] tag........
-
Portal Block
I used a tutorial to do this considering i have never added in a dimension before Still, tutorials are rarely perfect. You use them to get a handle on the basics. Use the javadocs and your errors to figure out how to fix things.
-
Render a block as a Techne model in the inventory and on the ground
Look at ItemRedstoneDust, IIRC that's the item that spawns the redstone wire block. (And then look at the BlockRedstoneWire class to see how the drops and blockPick work)
-
Portal Block
Yeah that property totally doesn't exist. Use your javadocs.
-
Portal Block
has par1.editingBlocks changed? Not knowing what type par1 is, I don't know. (Hint: "par1" is a generic name supplied by the decompiler)
-
Portal Block
Yes it has. Instead of setBlock vs. setBlockWithNotify, they're now the same function that takes another parameter on the end. If you mouseover the error it'll tell you what's wrong. Read the javadocs on the new setBlock function for details on how to use it.
-
Render a block as a Techne model in the inventory and on the ground
I think you just need to add the chunk of the Techne java export that has the tessalator in it to the rendering function of the ISimpleblockRenderingHandler class. Or you could do what other items, like the brewing stand, do, and render a 2D item graphic.
-
Sorry for all these threads :( Another help is needed
Pretty sure not. None of it refers to your code and I think I get that error to. That error is deep in the texture stitching code that turns all of our block and item PNGs into a single spritesheet (which doesn't effect mob textures, nor any texture directly referenced like you're doing).
-
Sorry for all these threads :( Another help is needed
Just a hunch: Make a small, meaningless, change to the source code (e.g. add a debug statement, like System.out.println("Hello")) and run it again. When I was messing with GUIs, I noticed that I had to make a change to the code for the program to recompile with the new texture.
-
not a mod file?
My guess is this: @Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERSION) I don't know if you can do that or not. Someone more knowledgeable than I would know. You also don't have an @Instance annotation, which may be at fault too.
-
Eclipse has spoiled me
I tried to mouse-over a class name in Adobe Flash so I could quick-jump to its class so I could look at its public properties. Sigh. I want to set up Eclipse as my IDE for everything now; AS3, Javascript, UnityScript, HTML...
-
Ladder meta data
Thanks, same to you: In other words: I was wrong, you were right. Satisfied? I saw that part, I was pointing out where I had been unambiguous about what I was talking about.
-
Config help
public static void load(Configuration config) { config = configuration; Probably because you have a parameter which is named the same as a variable and trying to set it with a non-existant variable. Yup. Do this instead: public static void load(Configuration config) { this.config = config; It's still better to use different names for both, but that will work.
-
[SOLVED(Finally)][1.4.7]Gui not opening due to 'Not being a Network Mod'
@NetworkMod(clientSideRequired=true) This is insufficient for using GUIs. You need to specify packet handlers for client and server as well, even if they don't do anything (because your mod is just adding chest-like objects). If your GUI uses any kind of buttons or other functionality, you will need to pass data back and forth.
-
Ladder meta data
I'm sorry for your lack of reading comprehension.
-
Saving data to world data file
Ah ha. Thanks. I definitely don't need it per dimension, just per save.
-
Creating a custom signal?
Pretty much this. There's about four functions involved that you'd need to duplicate, but name differently. isProvidingWeakPower canProvidePower isProvidingStrongPower and possibly canConnectRedstone
-
Saving data to world data file
Alright, I'm trying to figure out how to handle data storage for information that needs to be accessible from the world. It's essentially information about a player entity, but needs to be accessible from a tile entity while the player is offline, hence I can't use extended player data, I need to save it to either its own NBT file or to the main world data file. Having trouble implementing this. I found one solution that extends WorldSavedData, but there were a few errors (such as no providing a proper constructor) that I am not sure how to solve. Eg. the constructor used was one that takes no parameters, but WorldSavedData doesn't have a matching constructor, as its only constructor takes a string paramter, but I am not sure what I should be passing. I also am not sure if I should be instancing this class once for my entire mod and storing each player's info in it, or if I should be using one instance per player (and what the differences in construction would be; that is not the read and write NBT parts). Help?
-
How to keep the Client and Server synced using packets.
You need a packet handler that implements IPacketHandler
IPS spam blocked by CleanTalk.