Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Kore

Forge Modder
  • Joined

  • Last visited

Everything posted by Kore

  1. get a random update and have it fall down a block if it has nothing under it
  2. Kore replied to DjTamo's topic in Modder Support
    for the pixels you could do a world.getTopSolidOrLiquidBlock(x, z)... and just have it display in a hud(search for a tutorial)
  3. worst case you can just make an animation that rotates it.
  4. it should... he said its a machine
  5. I cannot find a way to open my gui inside of my item
  6. well in the block you could do onBlockActivated and then do a switch with this.metadata
  7. I know you probably did this but did you register a gui handler?
  8. can you post the error
  9. make a new mcp folder and put in the mcp, then put in your jars(minecraft, mc server, bin, resources) then run decompile then run install.bat inside the forge that you put in
  10. in the tile entity instead of writing to a list just do nbt.setString("UsernameNBT", this.username) and also use this.username=nbt.getString("UsernameNBT")
  11. Alright so I have a pick that breaks a 5x5 cube and I want it to drop the items in block they were at. how would this be possible. P.S. I have the coords and id stored in a variable
  12. I have and ItemStack[26][] saying that 0-24 is the inputs and 25 is the output.
  13. well if you want, you dont need a newWorldGenMinable, you could create a new class that does the exact same but make a parameter for metadata Hope this helps!
  14. In the tutorials, you can create a block with a container/gui, just edit that code to fit the vanilla crafting table
  15. Alright, I have found that the error is at .getBlockTileEntity, Please Help!
  16. private void generateNether(World world, Random random, int Xcoord, int Zcoord); where is the y in the genNether?
  17. ITickHandler and the check slots 0-8 of the player(Hotbar)and see if they have it
  18. I am trying to make a new electricity system and when I try to find the tile entities around my block to determine the length of the wire it gives me an error, heres my code/error TileEntity var1 = worldObj.getBlockTileEntity(xCoord+1, yCoord, zCoord); TileEntity var2 = worldObj.getBlockTileEntity(xCoord-1, yCoord, zCoord); TileEntity var3 = worldObj.getBlockTileEntity(xCoord, yCoord+1, zCoord); TileEntity var4 = worldObj.getBlockTileEntity(xCoord, yCoord-1, zCoord); TileEntity var5 = worldObj.getBlockTileEntity(xCoord, yCoord, zCoord+1); TileEntity var6 = worldObj.getBlockTileEntity(xCoord, yCoord, zCoord-1); 2013-01-06 20:06:30 [iNFO] [sTDERR] java.lang.NullPointerException 2013-01-06 20:06:30 [iNFO] [sTDERR] at kore.mods.korecraft.TileEntityWire.findDistance(TileEntityWire.java:68) 2013-01-06 20:06:30 [iNFO] [sTDERR] at kore.mods.korecraft.TileEntityWire.<init>(TileEntityWire.java:12) 2013-01-06 20:06:30 [iNFO] [sTDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 2013-01-06 20:06:30 [iNFO] [sTDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) 2013-01-06 20:06:30 [iNFO] [sTDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) 2013-01-06 20:06:30 [iNFO] [sTDERR] at java.lang.reflect.Constructor.newInstance(Unknown Source) 2013-01-06 20:06:30 [iNFO] [sTDERR] at java.lang.Class.newInstance0(Unknown Source) 2013-01-06 20:06:30 [iNFO] [sTDERR] at java.lang.Class.newInstance(Unknown Source) 2013-01-06 20:06:30 [iNFO] [sTDERR] at net.minecraft.tileentity.TileEntity.createAndLoadEntity(TileEntity.java:138) 2013-01-06 20:06:30 [iNFO] [sTDERR] at net.minecraft.world.chunk.storage.AnvilChunkLoader.readChunkFromNBT(AnvilChunkLoader.java:418) 2013-01-06 20:06:30 [iNFO] [sTDERR] at net.minecraft.world.chunk.storage.AnvilChunkLoader.checkedReadChunkFromNBT(AnvilChunkLoader.java:103) 2013-01-06 20:06:30 [iNFO] [sTDERR] at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadChunk(AnvilChunkLoader.java:83) 2013-01-06 20:06:30 [iNFO] [sTDERR] at net.minecraft.world.gen.ChunkProviderServer.safeLoadChunk(ChunkProviderServer.java:182) 2013-01-06 20:06:30 [iNFO] [sTDERR] at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:118) 2013-01-06 20:06:30 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:310) 2013-01-06 20:06:30 [iNFO] [sTDERR] at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:84) 2013-01-06 20:06:30 [iNFO] [sTDERR] at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:100) 2013-01-06 20:06:30 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:458) 2013-01-06 20:06:30 [iNFO] [sTDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) 2013-01-06 20:06:30 [iNFO] [sTDOUT] Skipping TileEntity with id tileEntityWire
  19. well... if you look in some of the files, you should get a array of itemstacks(Inventory) and you could check if this with this amount are in slot a then set slot a to -= amount and set slot b to the created thing
  20. net.minecraft.block.BlockMobSpawner
  21. check to make sure that you do not set all the data to 0 when you add block to world and if so do a if(i!=null)return 0 else return i Update your mod... many of the things become easier with new forge
  22. just redownload everything and make sure you are using the newest mcp/forge/minecraft/JDK/JRE and make sure you delete your mcp folder and make a new one(Save and reobf work first obviously)
  23. Kore replied to jack_1197's topic in Modder Support
    1. probably a localhost thing unless you edited base classes somewhere 2. you could try to add a system.out in it to make sure it is actually sending and debug from that
  24. just go in your block file and type this. and look through everything... that gives inspiration. also it is onBlock something so type this.onBlock and then go to your super class and find that method and copy it and Whalaa you are done
  25. make it a normal block that extends blockContainer and have a tileentity for it to say what record it contains and then onBlockActivated() if(TileEntityBlaBla.hasRecord){ parXWorld.spawnEntity }else{ if(parXEntityPlayer.getCurrentItemInHand==record.id){//Something like this TileEntityBlaBla.setRecord record.id; } }

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.