Jump to content

jordan30001

Members
  • Posts

    157
  • Joined

  • Last visited

Everything posted by jordan30001

  1. You DO NOT need to BUMP a thread that you have made that is already on the top of the board just edit the OP.
  2. I think he just derped and posted in the wrong thread.
  3. your drop one item on the server (single player runs on a server) and your running it client side so item a) is a real item item b) is a fake item only shown on the client side not at home right now so I am not sure about how to stop the block from being droped
  4. You probably only have JRE/SDK 1.7 installed your two options are use the 1.7 JRE/SDK or find the latest 1.6 JRE/SDK on java.com
  5. This is a meta data sensitive onBlockDestroyedByPlayer() If your block does not use meta data use the one below this This is the non meta data sensitive version (if your block has no subblocks) Is this what you want? Note: this code isn't tested, I am not at my pc at the moment so I can't test it.
  6. Please stop posting help topics until you at least learn basic Java maybe even intermediate Java A good video tutorial series for Java can be found on http://www.youtube.com/user/thenewboston Even though you are making a mod because you don't understand what it is your code is doing even minimally you're not going to learn anything at all. If you take the time to learn basic-intermediate Java then you will find it much much easier to understand tutorials and understand how to implement code solutions as such.
  7. As far as I can tell your running from eclipse Minecraft is probably trying to log into minecraft.net to verify that playerXXX has paid for minecraft and because playerXXX is not it prints a message to say that. not sure whether or not that statement is wholly true but unless you have edited base classes its probably not something you have done
  8. just as an alternative to above public int idDropped(int par1, Random par2Random, int par3) { int randomlyDropAnItem = rand.nextInt(5 - 1) + 1; switch (randomlyDropAnItem) { case 1: return modpackage.thisblock.blockID; case 2: return Item.ingotGold.itemID; case 3: return Item.ingotIron.itemID; case 4: return Item.emerald.itemID; case 5: return Block.obsidian.blockID; case 6: return Item.coal.itemID; default: return Item.diamond.itemID; } }
  9. Good source on starting to learn Java. http://www.youtube.com/user/thenewboston Please complete his basic Java tutorials and maybe even his intermediate tutorials
  10. if your talking about 1.5 I heard that paintings were bugged
  11. http://sscce.org/ please read this link
  12. I do not understand what the question is. As far as your post is concerned it has no errors so it's fine. If your going to post an code without a error, how are we supposed to help you with an error?
  13. Basically what I wish to know is a) what happens globably in tickstart b) what happens globably in tickend
  14. yes its true that it checks all entities every tick
  15. do you a) mean completely disappear (destroyed from world) and then the block is recreated back at that position in 5 seconds or b) disappears but the block is still there just invisible with no collision box.
  16. http://www.minecraftforum.net/topic/1722368-15-icons-and-block-textures/
  17. if the mod registers the wood using forge ore dictionary you can use the forge ore dictionary. I think you might find this usefull http://www.minecraftforge.net/wiki/Common_Oredict_names and this guy has tutorials on how to use the ore dictionary (note its for 1.4.7 not sure if it works for 1.5 haven't tested but I doubt the ore dict was changed in 1.5) http://www.minecraftforum.net/topic/1452051-147-deverions-forge-modding-tutorials-updated-04-03-2013-23-tutorials/
  18. if you get stuck here is a link to atomicstrykers help on the new 1.5 textures system http://www.minecraftforum.net/topic/1722368-15-icons-and-block-textures/
  19. Thanks this worked absolutely perfectly.
  20. do you a) mean the F3 information showing the F: variable if so this only shows SOUTH WEST NORTH EAST and does not show diagonal directions or do you mean get player.getLook(int par1) which returns float x,y,z which in no way at all helps me.
  21. Minecraft Gui / var24 with the &7 SOUTH/NORTH inbetween south and west/NORTHWEST WEST/NORTHEAST inbetween north and west/EAST you get the idea
  22. I tried changing it to 8.0F but it still returned 0/1/2/3 but they were not the right directions
  23. I found the following in GuiRender int var24 = MathHelper.floor_double((double)(p.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3; and this gives an direction of 0/1/2/3 I was wondering how I could make this give me diagonal facing directions as well 0/1/2/3/4/5/6/7 All I know from this is that p.rotationYaw can be bigger than one rotation of a circle (more than 360) so we get it down to between 0 and 360 but after this function completes it only gives 4 possible values 0/1/2/3 note: I am not good when it comes to floating point math
  24. even with only running it server side it still runs twice on the server rather than running just once on the client and once on the server
  25. A add on to this thread. I got a little bug that I found is strange and I can not explain easily what's happening in words so here is a youtube video showing what is happening http://youtu.be/KUy0TLNDquU my question from the video is, why when the player dies it still spawns the item but at the players spawn location not at the players current position. to drop the item I am using the EntityPlayer.entityDropItem()
×
×
  • Create New...

Important Information

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