Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/24/20 in all areas

  1. Try either GuiContainerEvent since it renders the screen after Screen#renderBackground is called.
    1 point
  2. I don't see how that is true at all. Why does 1 block have to fit in 1 bucket? If we just accept that 1 block is 1296mb, everything works. I don't see why we have to add the restriction that 1 bucket is 1 (solid) block. We can just accept that melting it makes it less dense, therefore bigger.
    1 point
  3. Can anyone link me to a tutorial or example mod that shows how to make armor items in 1.15.2? I tried around with making armor items but I can't figure out some parts like the sound event, repair material, and the equipment slot type. I'm confused as to how to use the SoundEvent class, the Ingredient class, and the EquipmentSlotType class.
    1 point
  4. 1 point
  5. Howdy Yes it is Here's a working example of texturing an item with a custom quad https://github.com/TheGreyGhost/MinecraftByExample/tree/master/src/main/java/minecraftbyexample/mbe15_item_dynamic_item_model DynamicTexture is suitable for creating an image in code. If you search this forum for DynamicTexture you'll find some recents posts about dynamic textures (Elytra, wolves) -TGG
    1 point
  6. Howdy This is a vector math calculation. 1) use the two positions to define the vector offset from the player's eyes to the block (Vec_block minus Vec_Eyes) 2) use trigonometry to calculate the angles... The LookController class shows a vanilla implementation -TGG
    1 point
  7. Bear in mind that more players use metric systems than imperial (according to minecraft server statistics, and the fact that there are few countries which still use the imperial system). It is far easier for users to understand that half a bucket is 500mb, than it is for them to see 648 "atoms" (If that is the approach, I would prefer to use something like "voxellites" which has no real-world bearing than "atoms" which could cause huge confusion for users of chemical mods). And to the next argument that you would just display it as "3 1/2 buckets" or 3 1/1296 buckets", that is hugely unnatural for me (and presumably many others). I'm not sure what the issue with 144mb/ingot is. Why does a melted compound have to fit in the same space as a solid one? It doesn't in real life. And as far as cauldrons, I think it's fair enough to just lose 1mb in a cauldron. Who cares about 1/1000 of a bucket of an infinite resource? And for those mods which have finite supplies of water, they usually add their own mechanisms for collecting/storing it, so the cauldron issue is moot.
    1 point
  8. The button constructor now takes a lambda reference for what happens. https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/industry/client/gui/FilterGuiContainer.java#L91 I just mapped it back to actionPerformed, but because its a lambda, you can make each button take in a method that only matters for that button.
    1 point
  9. 0 points
×
×
  • Create New...

Important Information

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