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. Are you seriously having trouble understanding the concept of "copy and paste"?
  2. PROTIP: try clicking the link that says "create it now"
  3. You also need to set the hardness. (this.blockHardness = 3) or this.setBlockHardness(3F).//the F indicates that the value is a float, not a double
  4. This: http://www.minecraftwiki.net/wiki/Template:Grid/Crafting_Table If you hit "edit" at the top, you'll see that the rendered page (the documentation on how to use the template) is not the same as the page's actual wiki syntax.
  5. I have blocks that I "render twice" in order to get an overlay. Icon camo = Block.blocksList[wid].getIcon(l, meta); //meta for the block's facing so that it grabs the icon of the face of the block that it is attached to renderer.renderBlockUsingTexture(Block.blocksList[wid], x, y, z, camo); //render the original block at an offset location renderer.renderBlockUsingTexture(Block.stone, x, y, z, block.getIcon(0, 0)); //render my overlay in the same location The same could be done for entities, but you'd have to rewrite their renderers.
  6. Like I said, it depends on what you're doing.
  7. It's called read the javadocs.
  8. Technically you can do this with vanilla. However, either: a) you'll need to make base class edits to handle a "double" rendering pass (essentially rendering a second texture on new quads where they need to go) b) reflections (to do the same, but without editing the base classes)
  9. http://www.minecraftwiki.net/wiki/Data_values#Heads
  10. Depends on what you're doing. The one time I used it, I set the radius to about 5 (because it was a BlockContainer and the packet dealt with items in the GUI, which could only be accessed by someone within 4 blocks). That project is more or less abandoned now, but it was a valid use. Got another project I should finish up that needs some (more) packet-y stuff, and I think that will come in handy there too (TE is out of synch when placed, but interacting with it causes it to update because that is being handled already).
  11. You can limit who gets packets too. PacketDispatcher.sendToPlayersInRange(packet, distance) (Note: function name guess--I know it exists, but I don't remember the exact name)
  12. Or you could just code your own packet data (you can literally shove anything into an NBT tag, which can be shoved into a Packet250, which can be sent to the client). And yes. world.markBlockForUpdate() will do what you need. It specifically makes sure that the client receives the block's current status.
  13. Not to be rude, but I'm going to be rude. How about you do your own damn research? The information is out there and this forum is not here for you to use like your own personal lazy-google.
  14. Wikia has templates. Don't know if it uses the same syntax as the Minecraft wiki, but it'd be easy enough to find out.
  15. Unless you're Eloraam. This tutorial should help out.
  16. Draco18s replied to FalconPyro's topic in Modder Support
    class myblock extends BlockContainer Seriously, find a vanilla block that does what you want (cough, a chest, cough) and look at its code.
  17. slot.putStack(ItemStack item) Le gasp
  18. Here's what redstone wire does: Vanilla Redstone behaviour: - Block update event received - Check if can stay - Update strength of block - Calculate the changes in current - Get the current strength - Get the current strength again but this time with the other set of coordinates, gives the same result - Toggle off flag so wires don't give power themselves - Get the strongest indirect power from the world - Toggle the flag back on - If the indirect power is greater than the current strength minus 1, set the strength to the indirect power - For every cardinal direction, check the strength unless the block is the origin (the block is never the origin) - * If any side has a greater strength than the current strength, subtract one and set it to the current strength * Otherwise subtract the current strength or set it to 0 - If the indirect power is smaller than the current strength minus 1, set the strength to the indirect power (repeat?) - If the resulting strength isn't equal to the original strength, update the block and add the surrounding blocks to a list that holds the blocks that need to update - Copy the list of to-be-updated blocks to a new list - Clear the old list - For every block in the list, trigger a block update
  19. That void function is the function that checks the slots to see if both have items, and if so, do whatever needs to be done.
  20. SOL? Sh*t Out of Luck. His option is to either check all the blocks that could possibly be providing power (6 for strong, significantly more for weak) or nothing.
  21. Open up BlockFurnace.java
  22. I have no idea how reflection works.
  23. You're probably going to have to make a dummy API (or several, actually) to act as placeholders for the classes from those other mods that don't exist.

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.