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.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. You have a mod for 1.7.2 (or earlier?) installed that is not compatible with 1.7.10
  2. No, you don't. Go away. You're not helping. COG runs absolutely last, and then some. I had to submit a pull request to COG so I could actually run some code after it modified a chunk. AND running "even more later" doesn't even solve the problem; fucking hell. A ∩ B == B ∩ A
  3. YourContainer (InventoryPlayer inventoryPlayer, TileEntityYourTE te) Again, look at this class: https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/inventory/ContainerPedestal.java
  4. You don't have a class that extends Container
  5. Likely because the creature is spawned client side and it is not aware that the event is being canceled server side.
  6. return new YourContainer(player.inventory, (TileEntityYourTE) tileEntity); //server return new YourGuiContainer(player.inventory, (TileEntityYourTE) tileEntity); //client
  7. Show me the BiomeManager class.
  8. Oh, and by "spreads really far" I mean it. I set up a vault and passageway system. Here's how far it spread using the default ooze-like rules: Wool block on top is how far the floaty lighter-than-air flow gets (there's one in the ground for the heavier stuff). http://s16.postimg.org/c7skdqyqt/2015_01_06_16_00_22.png[/img] With my rules it escapes. Here's a shot of the surface as it flows down the tunnel, look at how uniform it is: The entire passage is filled with the heavier liquid. http://s16.postimg.org/8a5aocbxh/2015_01_07_17_20_13.png[/img] I've also got (optional) rules to allow it to slip past (open) doors, signs, and ladders. This stuff is a serious hazard while mining. And I want it to remain that way.
  9. Proxies are not involved in block GUIs.
  10. Nope. Because: # = stone 8 = quanta of fluid t = torch . = air f = fire Worlgen does this: ############ #88.......t# ############ My block isn't near a torch, your suggested code removes nothing. Block updates happen: ############ #844......t# ############ And some more: ############ #6442.....t# ############ And some more until... ############ #22222222.t# ############ Then finally ############ #222222211t# ############ Oops, now it catches fire ############ #22222221ft# ############ I don't mind that the veins occasionally intersect caves (one seed was really fucking awesome as a result). Its more a problem of frequency (and even then more a problem of running into an abandoned mineshaft, not a cave). The gas can spread really far and expand quite a lot before it encounters a torch or lava block, setting the entire system on fire (one spot I investigated had three veins all pouring into the same ravine where some lava was and there was just fire everywhere, I couldn't get a clean shot of it though showing just how massive the blaze was).
  11. I think this is all of the relevant classes https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/block/BlockPedestal.java#L126-138 https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/client/GuiContPedestal.java https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/inventory/ContainerPedestal.java There's also a custom slot class, but that's pretty secondary to making the GUI show up as it is just a filter on what items are valid to be inserted, as well as the TileEntity itself, which isn't needed, but if you want to reference it, its there. If I did forget something though, the whole project is on GitHub.
  12. I already mentioned that, but yes. Should I have put it in bold? Oops, missed the aside.
  13. You mean the COG config xml? https://github.com/Draco18s/HarderStuff/blob/master/main/resources/cog_config/UndergroundHazards.xml And actually that solution is easy. Cog does that with diamond veins: it puts lava on the inside using the same vein seed and a smaller diameter. Yeah no. Because two things: 1) the block is not collectable and 2) the 'blockB' is not dangerous and that's the whole point.
  14. (It also returns true for every Interface it implements at every point along the chain, too. So IShearable and IAnimals)
  15. "Storing data for future use: sounds really annoying." Seems legit.
  16. Except that I'm not the one placing the block. COG is. I can't say "make sure this block is surrounded on all sides." COG has a lot of rules, but no adjacency checks.
  17. I'll be blunt, while my code is at fault, its not the code that's the problem, so none of that will be here. I'll describe the behavior and give you, the reader, an opportunity to see if you can figure out what the problem is before revealing it at the bottom of this post. The situation: 1) I have a custom finite fluid block. Two actually, but the only difference between them is their fluid densities: one floats the other sinks (and a conversion from the latter to the former as it mixes with air). I've added a few extra interactions to its updateTick function, but nothing serious. A little volume balancing so that it flows farther along straight surfaces (like a real liquid would) and checking adjacent blocks for fire sources. 2) This block spawns in the word using COG in a vein formation, relatively common, but still less than COG's default coal distribution (coal was my template). 3) After only a few minutes, my frame rate drops to less than 1 FPS (more like 4 SPF) with upwards of 80% of the processing taken up in Minecraft's lighting update function. My computer is by no means a piece of junk, but it's also four years old (Phenom II 1090T). Take a minute to think about what could cause this, then take a hint if you'd like, or go straight to the answer. Hint 1: Hint 2: The actual problem and my question asking how to solve it:
  18. Aside from neither EntityJoinWorldEvent nor EntityConstructing having a entityLiving field, here's some of what I got (used EntityConstructing as I already had that event subscribed).
  19. Oh ew, don't use a for loop to detect entities. That's what world.getEntitiesWithinAABB is for. Just pass it a 25x25x25 AABB rather than checking a 1x1x1 space 15625 times.
  20. He answered that already:
  21. It comes from IC2: just "mining" the block out ruins the machine. You have to use a wrench and "disassemble it" (shift-right click, as right-click just rotates it).
  22. No one knows what you want. http://imgs.xkcd.com/comics/well_2.png[/img]
  23. What's on this line: at com.CrystalMod.Biomes.CrystalBiomeLayers.<init>(CrystalBiomeLayers.java:29)

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.