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. Try telling Gradle to look in the place you actually put it (hint: libs is not mods). Adding it to src/api/java means that WAILA will end up inside your JAR
  2. It's a bad idea because Forge hasn't hit the Pre-Init phase yet and it will not let you register blocks and items then.
  3. You should probably call world.notifyBlocksOfNeighborChange(x, y, z, block)
  4. This post makes me lol because it's 4 posts after the solution saying its not possible.
  5. Nope that other mods may still place down the ore. COG works differently and does not fire events to cancel.
  6. This class, if I am remembering correctly, is a modified version of the redstone renderer. https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/client/RenderLaserBeam.java It's got some alterations to handle "corners" as pluses and to render "into" glass and other transparent blocks that don't actually interrupt the beam (but in which it can't occupy due to the cellular automata nature of Minecraft). But it might help you get started.
  7. That would outright destroy your block (which is fine, snow layer does this). If you wanted it to drop stuff (torch, tall grass, etc.) you'd want to make the block break instead.
  8. Or check that the block below does not have a solid top surface. Passions could push a non-air block under it.
  9. You don't have the convert-from-meta-to-state or the convert-from-state-to-meta functions. Vanilla isn't magic.
  10. Make another mod that does something else. You're dealing with a rather complex problem with your idea and you should get the basics down first.
  11. That picture is text, you could have just pasted the text. As for your idea: that sounds a lot like Tinkers Construct. And if you don't know how to do it, you need to do other things and come back to this idea later.
  12. Ok, I said that, because when I was doing my artifacts mod, I had to send a packet from there, even though it did run on the server.
  13. onItemRightClick is a client sided function. You need to use packets and tell the server to move you.
  14. Ha. Good friggin' luck. You'd be better off creating your own stone block and doing a wholesale replacement of the vanilla block. Then you could use the metadata for things like that.
  15. To err is to be human. To really fuck up, you need a computer.
  16. The vanilla Item class already has SideOnly (client) on it. Redeclaring it isn't going to fuck up anything, and neither will leaving it off. Nothing in vanilla code calls getIcon when running a dedicated server. There is NO rendering code on the server, so all rendering related calls are client-side-only and marked as such.
  17. Calling that function isn't going to do you any good (see below). As soon as the entity gets another update tick, its air supply will reset. I told you to use IEEP to track "your" air. Which means replicating the effects of that private function on "your" data. if (this.isEntityAlive() && this.isInsideOfMaterial(Material.water)) { //stuff } else { this.setAir(300); } No matter what you do to the air supply of an entity, if it is not in water, that air supply value will ALWAYS be reset.
  18. You need to store "mode" in the ItemStack's nbt, or it's going to reset every time that function is called.
  19. Its done in the entity class and you can't duplicate the effect you're looking for. Use IEntityExtendedProperties, track the air amount there, and do whatever render effect you want manually.
  20. Possible. As I said, I haven't really looked into it, but you might be best off completely overriding onUpdate (copy all of the code from super and then edit as needed).
  21. <Nitpick> Actually the result there would be 0, because neither of those numbers (7 or 15) are floats. </Nitpick>
  22. I don't understand this part. Post this code

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.