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 shouldn't be using the Item Entity renderer to render items in a GUI anyway.
  2. The falling, by the way, is just client side prediction: it sees only air in the chunk and applies gravity. The server thread (when it generates the chunk) should reset the player. I see this all the time with Mystcraft (I've fallen as far down as -60). I don't know what's going on here.
  3. Pretty much everything (actually everything?) in the com.google.common package is part of the Guava library.
  4. Show your main class.
  5. This is what I was asking: I wanted to check to see if the Y value was lower than the teleport's destination coordinates.
  6. Question: Why do you require your items to take an unlocalized name via their constructor? You don't use the class for more than one item, so there's literally no point in doing this. Second, why do you use the unlocalized name to register the item? This is bad practice.
  7. Massive amounts of ASM. #DoNotRecommend
  8. In case 2: is the coordinates that the player is teleported to the same as where the player ends up at (albeit underground)?
  9. So glad you fixed that problem on you own so I didn't have to call you an idiot. As for the tiling: Your texture is smaller than the screen. In order to stretch it, you need to draw the exact size that fits on the texture to a much larger area. Minecraft's GUI system is set up to draw 1 texture pixel to 2 screen pixels (at default GUI scaling). You might want to take a look at drawTexturedModalRect .
  10. Uh, let me check. Pretty sure that "Before" and "After" are two different phases. But you know what, do it in only one and see how that works out for you. Oh wait, you did.
  11. The arrow model isn't circular, it looks like 3 intersecting planes. Amazing how realistic this looks: Only....not.
  12. Before it renders: push the state, change the state After it renders: restore the state
  13. The arrow model still has a texture associated with it. That doesn't mean it renders it as a single plane though.
  14. Arrows are 3D objects. You will not be able to render a flat texture in such that it appears to be a sphere. The closest you can come is a camera-facing-billboard, like name tags.
  15. if(meta == 1) { getTE() } ... if(meta == 1) { getTE() } ... if(meta == 1) { getTE() } ... if(meta != 1) { getTE() } //crash here Hmm. One of these things is not like the others.
  16. Draco18s replied to a post in a topic in Modder Support
    Functions and methods aren't the same thing, a method is a special kind of function: http://stackoverflow.com/questions/155609/difference-between-a-method-and-a-function
  17. Haha, boats. Wasn't that long ago that I was fooling around in my own mod (1.7.10, dedicated server that was the same machine as my client) and the server's location for me was so far out of synch that the chunk directly under me go unloaded.
  18. Also, some potion effects will be utterly harmless when you tick them once (poison, hunger, slowness, weakness, fatigue, wither) while others will be super deadly (instant damage).
  19. Draco18s replied to a post in a topic in Modder Support
    http://www.learnjavaonline.org/
  20. Draco18s replied to a post in a topic in Modder Support
    Except that this isn't math, this is English, and I told you to write a story of your summer vacation. And you want me to provide you with an example summer vacation story that includes you traveling to Disney Land. Or alternatively if you want to stick with the math analogy, it looks like this: Me: "With the function f(x): y = x2, what is Y when X equals 3?" You: "What do you mean 'squared'?"
  21. The crash tells me that your code is wrong.
  22. Draco18s replied to a post in a topic in Modder Support
    Because you do not know how to invoke a method then any response we could give to help you would be spoon feeding. Because you do not know a basic, fundamental, operation of object oriented programming.
  23. If you follow the World#getBiomeForCoordinates() call stack you'll see how it gets access to the biome stored at a particular coordinate. You'll then have to write your own method(s) to change the value.
  24. There are other, better ways of doing this. For one, if your mod is required client and server (which 90% of most mods will be) then Forge does this automatically for you and disallows the connection if the mod is missing. If its only optional, then you can get access to the list of mods the client connection has, because see above. Normally the mod list can't be considered reliable (as someone can make a mod that doesn't report itself to the server) but as you're not doing something asinine like that, then your mod will show up in said list.
  25. Item#hasContainerItem(ItemStack) / Item#getContainerItem(ItemStack) are part of the blender. The blender tells the crafting table that its container item stack is itself. This isn't a recipe thing, this is an ingredient thing.

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.