Jump to content

opssemnik

Members
  • Posts

    269
  • Joined

  • Last visited

Everything posted by opssemnik

  1. hey just insert remote check like if(!par1World.isRemote){ //code }
  2. OMG guys just search in the minecraft code, setblock is func_94575_c
  3. you need to setRotation and angles... take a look how ItemMonsterPlace spawns an entity.
  4. take a look at item.java there is a method called onArmorTick
  5. after u get the new things just use this.updateScreen(); //thats the name for 1.4.7 but i think its the same for 1.2.5
  6. title says all, its was lower than 512 char, my signature didnt had offenses, black words, nracism and these stuff
  7. or u can just close that screen, using the void onClose(or something)and open the new gui.
  8. no change, but u can use a mcp whitch u installed forge(because it edifys some mcp files)and u need to extract the forge libs into the jar then just install forge,the mod and delete meta inf then just click decompile.bat, sucefully made for a mod that a updated(fossils and archeology to a private 1.4.7 server)
  9. or u can create a tickhandler ticktype gui, check to see if gui creative, if yes, close the current screen, and open a new gui creative(u create another, just copy and paste)and do your things in the transferStackInSlot
  10. so get the current itemstack nbttaglist(only enchantaments use this), check to see if is not null and contains the enchantament ids that u want, and then remove. take a look at itemstack and enchantament helper
  11. post the code
  12. nice, please sumbit a pr
  13. u need to send a packet to the server to tell to him, to send another packet witch is the play sound.
  14. var1World.setBlockWithNotify(x, y, z, mymod.myblockID); to var1World.setBlockId(x, y, z, mymod.myblockID);
  15. idk the best way, but u can get the current tool damage and others enchantaments(if u want to remove just one of then) and then u delete, and give the same tool, set the damage to the same before and the other enchantaments.
  16. BiomeGenBase biome = world.getChunkManager().getBiomeAt(xCoord ,yCoord); if(biome instanceof BiomeGenOcean){ //do stuff // if worked, say thanks to me }
  17. so u need to think more, u need world provider, world chunk manager, chunk provider, biome cache, gen layer, gen layer biomes, biomeblablal, etc, etc, take a look at WorldChunkManager
  18. Please post the correct MyCraft java (the one that u sent was mycraft, but the error says MyCraft, also the line 26 on the file that u sent is null, so please post the correct file)
  19. then just create a client handler client side, with ticktype client,gui and player, and check to see if the current screen is instance of gui container or gui inventory, (because inside the gui container u will find drawItemStackToolTip, so u can draw the boxes up,inside,down or etc of the current itemstack).
  20. the right way to open a gui its EntityPlayer.opengui(mod obj, gui id, x,y,z) //u need a entity player obj
  21. Also there are the MinecraftServer.getServer().broadcastMessage that sends message to all in the server, also output to console
  22. omg totaly wrong, getBlockId return id of block, not a block, to get a block nearby u need to public static int getBlockNearby(World w){ for(int i = 0; 0<3, i++){ return Block.blocksList[w.getBlockId(x +i, y+ i, z+ i)].blockID; } }
  23. or he can just update to lastest forge and use public void onArmorTickUpdate(World world, EntityPlayer player, ItemStack itemStack) { } in the armor file
  24. what is the error that server gives???, and poste the code, also he cant use ScheduladedTicks because, they will need to check if the player haves that armor in the slot(and that, will need to be done every tick )
  25. nope, just set a tile entity to that block
×
×
  • Create New...

Important Information

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