Kore
Forge Modder-
Posts
239 -
Joined
-
Last visited
Everything posted by Kore
-
Block Tile Entity Container Gui
-
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.
-
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
-
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.
Kore replied to SenpaiSubaraki's topic in Modder Support
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() -
yea, a bucket is used to milk a cox so you may have to look in cow aswell.
-
I have the recompiled ones not decomped
-
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
-
there should be world.getId or something to check if it is end
-
[Solved]Is there a way to set loading order of mods?
Kore replied to WH-Reaper's topic in Modder Support
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' -
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
-
also try to do if(!world.isremote)otherwise you are sending it 2 times per tick btw
-
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 ?
Kore replied to chewdri's topic in Modder Support
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 -
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
Kore replied to Kautl's topic in Modder Support
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); -
an example mod would be the gravisuit mod that shows the percent of charge in it
-
I believe the problem is in your container class and registering only 9 of the slots because 36+9=your 45 exception
-
you could look into the gui class and have it not pause game... I am not totally sure though
-
unregister the old chest and register it as your new chest
-
can you supply the rest of the error
-
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)
-
check to see if the bounding box gets negated somewhere