Jump to content

Raevox

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Raevox

  1. Hello, I have a dummy vending machine block/tile entity setup with a GUI and all, but things don't seem to work correctly; would be better if I simply showed a video: http://puu.sh/76XCa.ogv Seems quite random, but generally, if I split a stack from say, slot 7, and put the split stack into slot 6, slot 7 will get nullified. At least, that's seems to be the most common occurrence, but it can happen in other, somewhat arbitrary fashions. With not much else to say, I'll simply post the more important parts of my code below. BlockVendingMachine: http://pastebin.com/Vn5F7utB TileEntityVendingMachine: http://pastebin.com/J7BDVvfZ GuiVendingMachine: http://pastebin.com/ySNYxsE0 ContainerVendingMachine: http://pastebin.com/CsBZZ9iZ SlotVendingMachine: http://pastebin.com/RbtRqkRt
  2. Well then, I messed around with EntityThrowable, EntitySnowball, ItemSnowball, and RenderArrow, seemed to not have any errors, but nothing happens upon right-click: EntityMyceliumArrow: That's the Entity file, most of it is reused from EntitySnowball. That part is me trying to use methods from both EntityLiving and ItemThrowable (would that lil' hack be the reason why I'm not able to spawn anything?), I tried to reverse the process in which a mooshroom turns into a cow when sheared, however, for that I needed to extend to EntityLiving. Is there a better way to do this? ItemMyceliumArrow: Just a little Item file with similar onItemRightClick() method as the ItemSnowball. RenderMyceliumArrow: Duplicated (and edited) RenderArrow file. What's in my CommonProxy: Whenever I right-click with the item, I hear the bow noise, but no entity appears. Neither do I hear the sound of something jamming itself in a block either, nor do I hear myself pick the entity up. Any help? Thanks.
  3. Hey there Mannie here, recently got into modding Minecraft, already knew a little bit about Java and C++ (just the basic things, class, functions, loops, variables, etc.), got inspired by a few thoughts and decided to code it out. Everything basic seems to be working fine in mod, the recipes, textures, etc., but I needed a little bit of help with some mod-specific "features(?)." And this is where my questions come in: Questions About Arrows: - I haven't been able to find a good arrow-making tutorial, would anybody be kind enough to point me to one or explain to me how to make a custom arrow? (Don't forget I just got started with Forge + Java o_o) - How would I go about making that arrow interact differently with certain entities? For example, if I shoot a pig with that arrow, it turns into a zombie pigman (without taking any damage), but any other mobs hit by that arrow take some damage and have a poisonous DoT applied to them. - Would it be possible for me to use that arrow with the vanilla bow, or would I also need to learn how to make a custom bow? Questions About Crafting: - I have an item that acts as a "container" for other items (think water and lava buckets); I want it to be so, that when I craft an item with them, the "container" stays in the crafting area, and doesn't disappear. - Lastly, I have a recipe in which I use shears to cut a piece of paper into smaller pieces, however, the shears disappear; I would like to go about keeping the shears in the crafting area (like the question above), BUT, I want to decrease the items durability a little. I believe the "Handsaw" in RedPower's MicroBlocks does what I'm looking for. Yeah, not really a "few" questions really, but it'll be great if somebody can clear some things up or point me in the right direction. Thanks a lot!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.