Jump to content

DaComputerNerd

Members
  • Posts

    14
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

DaComputerNerd's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Good to know. Finding documentation was difficult. My mod stores the data during runtime anyways, and makes the request when the command is run and the player is not found in the hashmap.
  2. I mean the UUID that is used to keep stuff like inventory when you change your username and track previous names. By offline I mean they are not on the server. Not that they pirated the game or something. I figured it out. Make an HTTP GET request to https://api.mojang.com/users/profiles/minecraft/username?at=time, but replacing the username and time with the actual username and time. the ?at= portion is not required. It returns the UUID and the name they had at the given time, in JSON format. You can go there with your own name to check this.
  3. I am having difficulty with my mod in getting the UUID of an offline player from their name. How can I do this? I am using forge version 1.12.2 - 14.23.1.2555.
  4. OK. I will try removing it and leaving the pack as it would be in a new install If that fails, I will install a different 1.12 pack and use that minecraft.jar
  5. So, I just installed the new Technic version of All The Mods 3 (4.0), and it refuses to start. I looked at the console, and saw this line: [B#353] [08:34:06] [main/FATAL] [FML]: There is a binary discrepancy between the expected input class b$1 (b$1) and the actual class. Checksum on disk is 51416ed6, in patch 52fe6ed7. Things are probably about to go very wrong. Did you put something into the jar file? Does this mean the modpack maker messed up somewhere? Will a reinstall fix it? How can I find (and if possible, fix) the issue? Edit: Reinstall didn't work.
  6. OK big facepalm, I forgot two very important lines for after the loop through the player's inventory... if(count == 0) return false;
  7. It may also be that it is not causing the command to count successes properly. How does one make a command fail or succeed? Thinking about it, this is an alternate possibility. I should log the output of this method.
  8. Sorry, wifi issues made it post twice without actually loading at all on my end.
  9. I am having a hard time with comparing these two objects. What I am trying to do is verify if the Item (from GameRegistry.findItem(modid, name)) matches the ItemStack (from the player's inventory) I am certain that none of the objects used are null, and yet I have had no luck getting it to return true when it does match. I have checked that all of the parameters are correct, and have tried several different condtions, such as these 3: ItemStack.areItemStacksEqual(new ItemStack(item, stack.stackSize), stack) item.getClass().isInstance(stack.getItem()) stack.getItem().getClass().isInstance(item) However, all 3 give the same result of always returning false
  10. How would I do that? Know any good tutorials?
  11. I am attempting to make a modular synthesizer mod and made a custom subclass which instead reads a waveform for the sound data (no file at all) However, I cannot seem to figure out how to play a sound without needing to point it to a resource. If this is possible already, please explain how to do it.
  12. Basically, I was writing a mod which adds modular synthesizers, and I could not figure out a way to actually play the sound. I can make a custom AudioInputStream object to work with the waveform itself, but I do not know how to use said stream to play a sound in minecraft without having a file at all to set ResourceLocation to.
×
×
  • Create New...

Important Information

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