Jump to content

Vogner

Members
  • Posts

    73
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Location
    USA
  • Personal Text
    I Am Tooth

Vogner's Achievements

Stone Miner

Stone Miner (3/8)

5

Reputation

  1. Oh, I get it, they use extras of each sound effect and choose which to play at random. For some reason I thought they used a single sound byte and randomized it in pitch and volume. It makes sense, the approach they chose is better for resource pack authors. Anyway, thanks again.
  2. That did it; I had a few obfuscated method names I had pulled from MCP src. Also wasn't explicitly overriding for some reason. You saved me some overhead and some time, thanks. Now I just have to figure out how to randomize the pitch. Edit: o/t, but do you work with caracals or something? My mother was a handler back in the day, mostly servals, Asian leopards and maus. Fascinating animals.
  3. I had created my own SoundType. I tried what you suggested, but the only change is that it says "Unable to play unknown soundEvent: minecraft:squish" rather than dig.squish. Also, most of the time the methods in Block.SoundType are called rather than the methods in the SoundType you specify. In fact it only seems to call those methods from the SoundType directly when you place the block. Walking on or breaking the block appear to call Block.SoundType's methods explicitly. It's funny, the few shreds of information I've found about custom step/dig sounds for specific blocks say something along the lines of: "Not recommended. Just use one of the pre-packaged sounds instead."
  4. Omitted the version, my mistake. It's been a while.
  5. I'm looking for a way to add custom step/break sounds to blocks. Been searching around for a bit, and I will continue searching and trying things. How would I go about this? Progress:
  6. Thanks anyways. I'm going to try a few things and log them here. Might be of use to somebody Deleted the whole forge folder and starting afresh Did not work, identical crash Tried using build 1000 Did not work, identical crash Tried using 995, the build used at random in Lex's tut. WORKED. Game playable. Hope this helps someone.
  7. Alright, unfortunately I'm getting an identical crash. This time I'll post the entire console from boot to crash, here it is. Setting up, I followed the video Lex put out. I used "gradlew setupDevWorkspace eclipse" to force it to downgrade to 1001 after editing build.gradle. And it does say I'm using 1001 at the menu. Which build are you personally using? It goes haywire after line 748, at "Register FML from SERVER".
  8. I'm using build 10.12.0.1002 in Eclipse, running as Client. Here's the log I'm getting crashes when i try to make a new world. But when I boot it up again, the world I made is in the world list. When I attempt to load the world, it goes back to the main menu as if nothing happened. Any idea what's going wrong here? I'm aware that Forge is unstable atm and it may just be the build. If that's the case, simply point me toward a usable build.
  9. Can't get textures to work. Here's the code for my simplest block: package fleshwerxx; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.client.renderer.texture.IconRegister; public class BlockOpenEarth extends Block { public BlockOpenEarth(int id) { super(id, Material.ground); this.setCreativeTab(Fleshwerxx.tabFW); } public void registerIcons(IconRegister par1IconRegister) { this.blockIcon = par1IconRegister.registerIcon("fleshwerxx:openearth"); } } But I can't figure out where to put the textures. I don't use Eclipse btw. I understand why all these resource changes have occurred, but I'm getting rreeeal sick of textures being problematic every time I update my damn mod...
  10. mods.gamersmods.fuelresourceful.tileentity.ContainerBlockBreaker.transferStackInSlot(ContainerBlockBreaker.java:57) Line 57 of ContainerBlockBreaker is causing an index out of bounds exception.
  11. Use an EntityInteractEvent handler. Verify that the mob you just interacted with is the desired mob, then trigger the GUI. You can do so with FMLClientHandler.getClient().openGui(...), or whatever it's actually called.
  12. I actually tried something like that using the FMLClientHandler.getClient().getPlayer() (or whatever its called), and the resultant player reference was null. My sanity checks were even client side/server side sensitive. I haven't yet tried that specific line of code, though - I'll try it and report back when I can. Since yesterday I've moved from buttons listing all level-able gear as text to custom buttons displaying the item's Icon, including any animation. I've also managed some GUIInventory-style tooltips that describe which specific item you're about to affect. There are still plenty of visual bugs, but I'm very happy with it, since it's my first.
  13. Well there's no gap or overlap between the tiles, so I'm not sure that's the issue. I'll keep comparing my code to vanilla code and see if I snafu'd something somewhere. In terms of progress, however, I've arrived at the point that when opened, a cleanly formatted GUI is displayed that lists every relevant piece of equipment in the player's inventory (including equipped items) as a button. Basically, you'll click on the gear you want to enhance, go to a second, item-specific GUI and expend some experience to purchase abilities or perks that you've unlocked. It should be really fun when I'm done. That issue aside, I haven't been able to trigger any of this with a keybinding, because there's no way that I know of to get a player reference that isn't null, and therefor I can't access its inventory, either... Quite a few mods have done it, though, so there's got to be a way.
×
×
  • Create New...

Important Information

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