Jump to content

daafganggdg

Members
  • Posts

    141
  • Joined

  • Last visited

Everything posted by daafganggdg

  1. Hey, Is it possible to use the NBT for saving cutom values? So for example when I close minecraft it saves a String to the NBT and then I can read it to a variable next time I open Minecraft? (I'm not too sure if that's the actual usage of NBT) If the NBT is completly wrong for that how else can I save a String?
  2. Hello guys, It's actually more of a Java question. How can i get the Clipboard content? So, when I for example copy my own text here, how can I get it into a String in my mod? I'v already tried that: String myString = Toolkit.getDefaultToolkit().getSystemClipboard ().toString() but my string only becomes to "[email protected]@736aca24" instead of the copied text
  3. I found mouseClicked(int par1, int par2, int par3) in GuiScreen I can override (wooooops, should probably try find things by myself, sorryyyyy :
  4. Hey guys, I'm trying to make a TileEntity that detects if a button in its GUI was clicked, so is there a method from minecraft i can use? (just need the pixel of my GUI that's beeing clicked) Else, how am I going to do this?
  5. ! ... just put this in the if statement: if (!(entityInstance instanceof EntityGrunt))
  6. The error is just changing from Unable to play unknown soundEvent: mymod:wait to Unable to play unknown soundEvent: mymod:wait.ogg And the vanilla Record isn't returning the Resource location with extension too
  7. public ResourceLocation getRecordResource(String name) { return new ResourceLocation("MyMod:wait"); } K, i changed it to that, so the folder should now be assets/mymod/wait.ogg but it's still not working
  8. eclipse/assets/records/wait eclipse/assets/sounds/records/wait And in the Roaming folder it's: Roaming\.minecraft\assets\virthttp://minecraftforge.net/forum/Smileys/default/shocked.gifual\legacy\records I thought I have to make a package in src/main/resources... Is that right? So, how do I call it then? assets/mymod/records/wait assets/mymod/sounds/records/wait I might seem to be dumb, but I can't get it working :'(
  9. hey guys, I'm trying to make an own record, so I made a new class, extended it from ItemRecord and overrode the getRecordResource() with public ResourceLocation getRecordResource(String name) { return new ResourceLocation("MyMod:" + name); } but now im stuck with where i actually have to put the wait.ogg (which I'm using for testing) tried it with assets.mymod.records and 2000 other pathes but nothing is working. The error I get is: Unable to play unknown soundEvent: mymod:records.wait So, can anyone tell me where i have to put the .ogg file? or is it actually the .ogg file, I read a lot wierd stuff about these .json files, dunno what they actually do.. I asked the same question on another thread but it seems nobody was really watching it anymore.. so sorry for posting it again, but these pathes are really confusing..
  10. Hey, I'm pretty new to Java and modding, but I think you can't make a block with changing Textures, (I tried that and its changing the textures for EVREY block, not only the one you clicked (but I'm probably just doing sth. wrong ^^)) so, however, I think it's a lot smarter to just make diffrent Blocks for every colour, wool and the furnace do the same thing too, then just check in the onBlockActivated() method, what the block was clicked with (I'm not too sure how you do that) and set a new Block with the right colour to the old position... hope that wasn't confusing and i could help
  11. so where exactly do I have to make the package for my sound file now?
  12. hey, I know the problem seems to be already solved, however, I thought you have to override public ResourceLocation getRecordResource(String name) { return new ResourceLocation(name); } so it leads minecraft to your own folder, i tried to override it in my own class @Override public ResourceLocation getRecordResource(String name) { return new ResourceLocation("MyModName:" + name); } I'v put the wait.ogg in assets.mymodname.sounds.records and open the class in my modfile with public static Item record = new Record("wait"); soooooooooooooooooo, unfortunatly I get an error: [14:38:24] [Client thread/WARN]: Unable to play unknown soundEvent: mymodname:records.wait What am I doing wrong? (I'm pretty new to Java and mc modding so don't cry if i made any horrible mistakes )
×
×
  • Create New...

Important Information

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