Skip 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.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. 1) Get a reference to the player 1) player.getCurrentEquippedItem().stackTagCompound.getTagList("ench")
  2. Nope. mOXkIe.zip |__modname |__assets
  3. Or look at the source for an old version of Minecraft.
  4. Configuration config = new Configuration(some_file_reference);//you'll have to figure this out for yourself config.get(Configuration.CATEGORY_GENERAL, "Enable this mod?", true).set(false);
  5. Except that this is bad practice. IIRC, this will fail on the dedicated server side.
  6. No: TileEntity tileEntity = player.worldObj.getBlockTileEntity((int)player.posX, (int)player.posY, (int)player.posZ); Your tileEntity is null. Because there's no tile entity AT that location. This has been your problem from the beginning. There is not, will not, never has been a tile entity at the player's feet because THERE IS NO ENTITY THERE so stop trying to reference it. You get a crash on that line because null does not have an xCoord value.
  7. Start printing out values and checking them against what the values should be. I can't help you debug your code, I can only tell you what you need to use.
  8. There is a good installer. For Eclipse. You're off using InteliJ which is not actually supported by the Forge team, so you really don't have any grounds to complain.
  9. Unfortunately I am not sure at this point.
  10. The world class can do all of that. world.getEntitiesInAABB() for instance.
  11. ...Really. A new tile entity. No no no no. You have a tile entity somewhere that is involved. Generally when the player right clicks it is when you open a gui for it. That method is inside a tile entity and has reference to itself. Unfortunately with the code you have supplied I'm not sure you even HAVE a tile entity anywhere. So I don't know why you're trying to reference it at all.
  12. Packets are tiny as mouseballs. I have an addon mod for Mystcraft that sends four max-sized packets to the server (and later retrieves them) and the delay is pretty small. I mean, it's large enough to be noticed, but there's also a lot that goes on in order to retrieve the info. Basically I'm saving and retrieving screen renders from the player. The upper right corner is just a black box normally. http://s23.postimg.org/4az5t711n/2013_11_08_22_23_39.png[/img] The retrieval takes about 1 second (even with the client and server on the same machine), so I suspect it's mostly due to disk IO.
  13. Its been a while since I messed around with collission boxes. Play around with it and see what it's doing.
  14. Admittedly I haven't actually tried that, for whatever reason my PC can't handle two clients and a server simultaneously.
  15. Nope. You don't need to manually do anything. I use it for a chest-like object that displays its contents as part of the renderer. There are some that generate as part of worldgen (so nothing involved clientside) and the item is already being displayed when I come across it.
  16. public Packet getDescriptionPacket() { NBTTagCompound nbtTag = new NBTTagCompound(); this.writeToNBT(nbtTag); return new Packet132TileEntityData(this.xCoord, this.yCoord, this.zCoord, 1, nbtTag); } public void onDataPacket(INetworkManager net, Packet132TileEntityData packet) { readFromNBT(packet.data); }
  17. Well your collision boxes for cases 0 and 2 are still only 1x1x1 in size, as xMin and xMax (ditty y and z) are based on block bounds, which ranges from 0...to 1. That and I think the x/y/z location is included. Meaning you're creating a collision box off in the middle of nowhere.
  18. Don't use config files, there's better ways to do it. 1) Use the player's already existent entityData. This is an NBT tag that all entities have that you can read and write any information you want to, to it and it will be saved in the user's profile, just like their inventory. 2) Use separate NBT data files. More difficult, but certainly doable. I did this for one mod because the data was per-world based, but tended to be "massive" in size, so having it remain loaded in memory all the time was not good, so the per-world storage that's given by IExtendedProperties wasn't going to work. Basically create a file reference and then run the file through CompressedStreamTools.
  19. Private video is private. Anyway, try setting a color, GL11.glColor_f(1, 1, 1, 1)
  20. You have an AABB code, but what's the problem? All you did is go "Ok, I did this" but didn't explain what's still wrong.
  21. *Groan* No it's not. You need a f*ing reference to an instance of the World class to be able to setBlock. You can't do that with the World class itself. You're basically trying to do this: Integer integer = 10; Integer += 1; //this makes no f*ing sense Except that the first line is missing entirely.
  22. Well, you originally got no trees because neither snow nor ice are a valid block for trees to grow on. The second problem I can't diagnose, as you didn't include the code, but you need to specify the material the trees are made out of.
  23. The dude with five posts figured it out. You (the original poster) need to go learn Java before tinkering around with Minecraft some more. This is a basic concept you need to know before modding can begin.

Important Information

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

Account

Navigation

Search

Search

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.