Everything posted by opssemnik
-
[1.4.7] Multiple Block drops
hey just insert remote check like if(!par1World.isRemote){ //code }
-
[1.5] World.setBlock removed?
OMG guys just search in the minecraft code, setblock is func_94575_c
-
Item spawning in Entities onRightClick
you need to setRotation and angles... take a look how ItemMonsterPlace spawns an entity.
-
On update armor
take a look at item.java there is a method called onArmorTick
-
Gui to Edit Tile Entity Data
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
-
WHO REMOVED MY SIGNATURE
title says all, its was lower than 512 char, my signature didnt had offenses, black words, nracism and these stuff
-
CoreMods
or u can just close that screen, using the void onClose(or something)and open the new gui.
-
Decompile a mod
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)
-
Method that gets called when item is picked from creative inventory?
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
-
How to remove enchantments from items?
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
-
My mod fails to load on a server
post the code
-
Biome Tag System
nice, please sumbit a pr
-
[Solved] Server crash java.lang.NoClassDefFoundError: GUIScreen
u need to send a packet to the server to tell to him, to send another packet witch is the play sound.
-
Server-Client sync package notify
var1World.setBlockWithNotify(x, y, z, mymod.myblockID); to var1World.setBlockId(x, y, z, mymod.myblockID);
-
How to remove enchantments from items?
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.
-
[Unsolved] Biome Specific Ore Generation?
BiomeGenBase biome = world.getChunkManager().getBiomeAt(xCoord ,yCoord); if(biome instanceof BiomeGenOcean){ //do stuff // if worked, say thanks to me }
-
Need help with multiple biomes in a dimension
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
-
My mod fails to load on a server
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)
-
Modify item popup
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).
-
[SOLVED] Server side crash, java.lang.NoClassDefFoundError: mymod/myGui
the right way to open a gui its EntityPlayer.opengui(mod obj, gui id, x,y,z) //u need a entity player obj
-
how to output a message to ingame chat
Also there are the MinecraftServer.getServer().broadcastMessage that sends message to all in the server, also output to console
-
Block detection
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; } }
-
Potion Effect on armor
or he can just update to lastest forge and use public void onArmorTickUpdate(World world, EntityPlayer player, ItemStack itemStack) { } in the armor file
-
Potion Effect on armor
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 )
-
How to change block light level in game?
nope, just set a tile entity to that block
IPS spam blocked by CleanTalk.