Jump to content

Onmar

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Onmar

  1. Ah, okay, thanks a lot for the Explanation. After I have set the Variable everything is now working how I want it.
  2. I have set up Minecraft Forge using the "Gradlew setupDecompWorkspace" command. That worked fine and i have everything running in Eclipse. But it downloaded some files to my Userfolder ("C:/Users/Name/.gradlew") In Total about 340MB. At first I thought these were Cache Files and are not needed after the whole setup has been completed. But if I delete them I get an error inside Eclipse and I can not launch Minecraft. I do not want these Files in my UserFolder. I would like to have them in the same Directory as the Forge Installation. Does somebody know how to do this?
  3. Thanks for your reply. Hooking into the breakBlock and setBlock event is a good idea, but I would also like to fire the event if a Tile Entity changes. I think of it as a "blockChangeEvent" or "ID/Metadata/TileEntity-ChangeEvent". All the data I need is the xyz-coordinate of the block. Also, I want it to always fire, not only if a player does something.
  4. Hello I have looked at your code and I have managed to make your block display a texture. First of all, there are some things you need to remove from your code: the last line ".func_111022..." is no longer required, you can delete that. Now, I have added some other code: Add the @Instance line. I don't know if this is mandatory, but it is cleaner if you add it. You have to uncomment this whole part first. then add the @SideOnly line. Lastly, your textures have to be at: forge/mcp/src/minecraft/assets/%modID%/textures/blocks forge/mcp/src/minecraft/assets/%modID%/textures/items I hope this works for you.
  5. Hello Guys I'm currently developing a mod for forge, and I would like to execute some code whenever a block gets changed in the world (blockBreak, blockPlace, but also TileEntityChange etc.) I have found out that there is a packet sent to the client if there is a blockUpdate. (net.minecraft.network.packet.Packet53BlockChange.java) Can I use/make a hook that executes my code when the packet is sent, or is there a better way to do this? Also, will it execute if a TileEntity changes (e.g. the player takes something out of a chest)? It would also be very nice, if this could be done server-side. (My code won't render anything)
×
×
  • Create New...

Important Information

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