Jump to content

Kore

Forge Modder
  • Posts

    239
  • Joined

  • Last visited

Everything posted by Kore

  1. 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
  2. Block Tile Entity Container Gui
  3. 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.
  4. 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); } }
  5. 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
  6. 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
  7. 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()
  8. yea, a bucket is used to milk a cox so you may have to look in cow aswell.
  9. I have the recompiled ones not decomped
  10. 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
  11. there should be world.getId or something to check if it is end
  12. 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'
  13. 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
  14. also try to do if(!world.isremote)otherwise you are sending it 2 times per tick btw
  15. 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))
  16. 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
  17. minecraft has recently removed the common folder and now only uses src, put your files in there
  18. 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);
  19. an example mod would be the gravisuit mod that shows the percent of charge in it
  20. I believe the problem is in your container class and registering only 9 of the slots because 36+9=your 45 exception
  21. you could look into the gui class and have it not pause game... I am not totally sure though
  22. unregister the old chest and register it as your new chest
  23. can you supply the rest of the error
  24. 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)
  25. check to see if the bounding box gets negated somewhere
×
×
  • Create New...

Important Information

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