Everything posted by Kore
-
make block change on right click?(with a certain item in player hand)[solved]
you can do it two ways... one is to just on block activated then check the players current item and the other(more laggy unless is meant for more than 1 use) is to have a on right clicked in the item
-
Invisible Items
Block Tile Entity Container Gui
-
Invisible Items
When I put items into my machine that I made, it stays there and is an item that is shown but is not there and when I leave it drops on ground. If you need, I can provide the classes that are neccessary.
-
make block change on right click?(with a certain item in player hand)[solved]
the corect way would be private Block toBlock = new BlockNewBlockHere() public void onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer player) { if(player.inventory.currentItem == 0){ par1World.setBlockId(par2,par3,par4,toBlock.blockID); } }
-
Tile Entities for Metadata > 15?
first:you can make block ids with metadata 15 so blockid a 1-15, blockid b 1-15 second:you can look at the code inside of a tileentitychest or furnace to check this, the only methods you need in your case is the write and read to nbt... then you do onblockplaced check if it is whatever block and then set the damage in the tile entity to your block and display texture based on that. third:items can store a damage value of much over 15 so many mods will use items that on place turn into blocks eg in vanilla they use seeds instead of cropsbase and on right click world.setblockid and remove an item
-
Crafting Manager Output Quantity
this is the standard for most mod makers using forge because of its availability and the simplicity of the code. If you use another form of this, you will most likely be making yourself do more work later to change it when that becomes deprecated
-
Gui, Container and not being able to open them.
the gui may not work because you will need to register your guihandler in you mod.class and the instance is just YourMod instance = new YourMod()
-
Rightclicking an entity with an item?
yea, a bucket is used to milk a cox so you may have to look in cow aswell.
-
How to decompile a recompiled jar?
I have the recompiled ones not decomped
-
How to decompile a recompiled jar?
I got out of modding for a few days due to schoolwork and now I cannot access the src files of my mod, I just have my /kore/mods/kore folder with all the .class files... Is there an easy way to fix this
-
End world ore generation
there should be world.getId or something to check if it is end
-
[Solved]Is there a way to set loading order of mods?
As lithial said, they changed ee3 to zee3 because mods are loaded by the alphabetical order, so if you have the main you put 'A' before it and for a plugin you put 'B' and if you have a plugin of a plugin you put 'C'
-
[HELP] Dropping Item Automatically ?
public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5) { if (!par1World.isRemote) { int var1 = par1World.getBlockId(par2, par3+1, par4); if(var1==Mod.block.BlockID) { this.dropBlockAsItem(par1World, par2, par3+1, par4, var1, 0); par1World.setBlockWithNotify(par2, par3, par4, 0); } super.onNeighborBlockChange(par1World, par2, par3, par4, par5); } } this is checking to see if the block above the block that is updated is a redstonewire/yourblock and then breaking it
-
Continuously damaging item causes unequip
also try to do if(!world.isremote)otherwise you are sending it 2 times per tick btw
-
moving a block, good ways to learn
do you mean the pushing? you can look at sand for the falling animation and just make it directional and then just world.setBlockID(x, y, z-1, world.getBlockID(x, y, z))
-
[help] How to oppen a new Gui when i click on a button ?
are you making a new book or what because you could use a tileentity to make the books writing stored in a variable and on page+ display page+=1
-
I can't open cammon in Eclipse
minecraft has recently removed the common folder and now only uses src, put your files in there
-
[SOLVED]Change in original tools' harvest level doesn't work
WOOD(0, 59, 2.0F, 0, 15), STONE(1, 131, 4.0F, 1, 5), IRON(2, 250, 6.0F, 2, 14), EMERALD(3, 1561, 8.0F, 3, 10), GOLD(0, 32, 12.0F, 0, 22); change to WOOD(0, 59, 2.0F, 0, 15), STONE(1, 131, 4.0F, 1, 5), IRON(2, 250, 6.0F, 2, 14), EMERALD(3, 1561, 8.0F, 3, 10), GOLD(2, 250, 12.0F, 2, 22);
-
HUD Tutorial
an example mod would be the gravisuit mod that shows the percent of charge in it
-
Container/Gui bug(Solved)
I believe the problem is in your container class and registering only 9 of the slots because 36+9=your 45 exception
-
HUD Tutorial
you could look into the gui class and have it not pause game... I am not totally sure though
-
Overwriting default behavior
unregister the old chest and register it as your new chest
-
Container/Gui bug(Solved)
can you supply the rest of the error
-
New TileEntity crash I'm getting
can you please supply these classes 2013-01-09 21:41:54 [sTDERR] at [glow=red,2,300]dragonphly.resources.Prefix[/glow].getPrefix(Prefix.java:31) 2013-01-09 21:41:54 [sTDERR] at [glow=red,2,300]net.minecraft.mod.JalaxiMod[/glow].<init>(JalaxiMod.java:115) 2013-01-09 21:41:54 [sTDERR] at [glow=red,2,300]dragonphly.mods.jalaxi.blocks.refinery.BlockRefinery[/glow].onBlockActivated(BlockRefinery.java:192)
-
Snow-like Block Keeps Floating
check to see if the bounding box gets negated somewhere
IPS spam blocked by CleanTalk.