Jump to content

andrenoel

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by andrenoel

  1. "entityPlayerMP.theItemInWorldManager.isCreative()" I like that to detect if they are in creative mode. Thats a good thing. This WorldSettings.GameType gameType = playerMP.theItemInWorldManager.getGameType(); seems to be my solution! Thanks. Your suggestion led me to this. Thank you thank you.
  2. I found how to set the game mode for a player but I need to know how to detect the gamemode before I change it so that I know what to put it back to. I would appreciate even knowing where to look. Ive been scouring minecraft code and the net. I am hoping for a short sweet simple answer. At this point I am thinking if reading the info from an nbt. Not sure how to go about knowing the tag name the gamemode if there is any. Help! thanks. -Andre
  3. SOLUTION FOUND! Ok, so, lol. I found the problem. It was so small and so simple that I feel stupid. In my defence: I did multiple checks of my code and studied Minecraft and Forge code for hours. I learned a bit. The problem with the bug was totally mine and was NOT a bug in forge or minecraft at all. When I upgraded my code to mc1.8 I changed 1 tiny little thing from a set of coordinates to a BlockPosition and it was wrong. LOL. oops! This will be released in a new version of SpawnCommands Teleport mod soon. I actually learned a bit from studying the Minecraft and Forge source code. It was long and fun. Im adjusting to other minor things as well. This may take a few days to get the update out for my mod as life does interfere with the coding fun. My apologies and appreciation to those that make Mineraft and MinecraftForge!
  4. I have been studying the source code such as EntityPlayer. Its seems right. I did find a spot the needed a "return;" but doesnt hurt anything if its not there. If you use setSpawnChunk(...) with a good playerPos in dimension 0 it should do a "return;" right after setting the spawnChunk and spawnForced variables. BUT it drops past that and adds an entry in the hash map for other dimension bed spawns for dimension 0 but that shouldnt really bother anything. When the player wakes it can call the setSpawnPoint(..) function. This seems normal. So my next thought is that when I respawn from death why does it send me to the bed location that is wrong? So where is the code for when "You died" screen shows up and you then hit the button "respawn" ? Its not picking the right respawn location in every circumstance. So I can set the bed spawn with setSpawnPoint or setSpawnChunk but that is NOT where the "respawn" button sends me. Where is that code? I need help.
  5. I went there and read the rules 3 points down in first sections it says: "This is a support forum for players, not for modders needing help with code. Modders go to the Modder Support forum." This here seems to be the modder's support forum unless im confused. Maybe there is a bug reporting thing somewhere.
  6. I would love to report it properly in the right place. Im new to this forum and am trying. I will look around more. If anyone knows where to report this properly I would appreciate knowing. Please tell me. Thanks.
  7. I have a similar problem right now. I am unable to set the bed spawn point except in 2 special circumstances. I have tried using player.setSpawnChunk(bedPos, true, playerDimension); and player.setSpawnPoint(bedPos, true); The only times I can sucessfully set a bed spawn point is when 1. A new map where no bed point has been set. or 2. A player death where an actual bed was slept in then destroyed or removed before the death. This resets its ability to set a bed location with either function above. Both functions seem to set a set of variables or a set of HashMap in EntityPlayer. But these do not seem to be updating what Minecraft seems to be actually using to determine where to spawn players. This looks like a BUG either in Forge or Minecraft 1.8. (ATTENTION FORGE DEV TEAM?) I also tested for this problem in Minecraft 1.7.10 and that version works well. I need this fixed now as well for one of my mods I am trying to sucessfully code for Minecraft 1.8. http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2131444
  8. A brief tutorial on how to get started with this twitch api would be a good thing. I would also benefit from this.
×
×
  • Create New...

Important Information

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