Jump to content

shieldbug1

Forge Modder
  • Posts

    404
  • Joined

  • Last visited

Everything posted by shieldbug1

  1. 1) Update to 1.7.10, 1.6.4 isn't supported anymore. As well as that, we can't help without the logs.
  2. Wrap the code in if(!world.isRemote)
  3. Read the EAQ.
  4. You're trying to get the nearest player to the block in a radius of 0. You need to make sure that player is not null before trying to do anything because World#getClosestPlayer(double,double,double,int) can return null.
  5. Look at the addInformation method in the Item class for tooltips. If you don't know how to use it, see how vanilla items with tooltips implement it.
  6. One of your mods is Client only (looks like the ether mod from the crash log).
  7. if(world.getWorldTime() % 1000 == 0) { //Runs every 50 seconds. } Now if Minecraft was multithreaded/thread-safe...
  8. To use ASM you must first Then it's just a matter of figuring out what bytecode you want to change.
  9. I don't know if this will work, but you can subscribe to the PlaceEvent. If it's a lava block, then save the BlockPos somewhere, and then later in a WorldTickEvent if the position is still valid, iterate in a sphere around the position and burn whatever up. I'm not sure if the PlaceEvent works with generated lava however. Maybe subscribe to one of the chunk population events?
  10. Launch.blackboard.get("fml.deobfuscatedEnvironment")
  11. files.minecraftforge.net definitely has a 1.8 branch The branches are listed like this: Branches: New 1.8 Prerelease Mc172
  12. Forge has been out for 1.8 for at least a few weeks. Look at the 1.8 branch on the MinecraftForge GitHub or the 1.8 link in the Files page.
  13. What do you mean by console? This should work fine for the in-game chat gui, but it won't work in the application console (you can only have two colours depending on whether you use System.out or System.err)
  14. GuiOpenEvent
  15. What Minecraft version are you using?
  16. It seems you don't understand the else if statement in Java. What your code does: if(biome == BiomeGenBase.plains) { //Do nothing } else if(biome == BiomesVZ.biomeLivingLand) { //Also do nothing }else if(biome == BiomesVZ.biomeVampireLand) { //Do nothing again }else if(biome == BiomeGenBase.forest) { ... //Generatino Perhaps what you meant was if(biome == BiomeGenBase.plains || biome == BiomesVZ.biomeLivingLand || biome == BiomesVZ.biomesVampireLand || biome == BiomeGenBase.forest) { //Generate here. }
  17. World#setBlockState You don't set blocks anymore, but rather 'state's of blocks that contain the metadata themselves.
  18. Oh alright, thank you!
  19. I have a 'Library' I have also created for use with Forge. I built a deobfuscated jar of it, and referenced it as an external library in eclipse. However, when I tried to build my mod (that depends on my library), Gradle complains about the library classes and packages not existing. I know there must be something I need to add to the build.gradle file to let Gradle find the library, but I'm not sure what it is.
  20. Your IMessage implantation needs to have a no-args constructor.
  21. Big bold link in my signature, or up the top on the blue bar under the search where it says EAQ in white letters. Click one of those and read it.
  22. You need to have a constructor of your tile entity that takes in no arguments.
  23. Just send a packet to any client within the range that does when received creates a client-only chat message.
  24. You need to run setupDecompWorkspace using gradle (or the gradle wrapper).
  25. For the blocks you could create a tile entity that stores the owner's UUID, and then have a custom renderer to make it look like grass if the client's UUID doesn't match the owner UUID. Same thing (kind of) with the entities. It'll be very difficult to only synchronise the Entity or Block to the owner client, but you can give the impression of it not being there.
×
×
  • Create New...

Important Information

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