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. Ahhh. Gotcha. See, "it doesn't work" isn't sufficient to understand the problem. "The blocks have a metadata of 11 or sometimes 9" however, is. You need some bitwise operators. int meta = world.getBlockMetadata(x, y, z) & 3; That'll strip of the decay checking flags.
  2. You will need to do the particle effects yourself, as the enchantment table checks for block == Blocks.bookshelf explicitly. http://www.minecraftforge.net/forum/index.php/topic,38711.msg203713.html
  3. Regeneration is one of the potion effects that takes its duration remaining into account when applying its effect: it only heals on certain ticks. Generally speaking, its every 10. So setting the duration to 50 every tick, it ticks down to 49, 49 % 10 is not 0, no healing is applied. Repeat.
  4. HarvestDropsEvent fires any time a block that drops an item does that. Water breaking tall grass causes it to fire.
  5. http://i1.wp.com/www.sycmu.com/wp-content/uploads/2013/03/549794_516635841711565_2102887642_n.jpg[/img]
  6. What do you mean it doesn't do anything?
  7. I call IBlockAccess "world lite." The interface is everything that a World object is, except that you can't change anything. It's effectively read-only. But because it's a read-only world object you can get any information you want or need from the world.
  8. You don't have to do anything. Here's what my config getter looks like int cycle = config.getInt("sluiceCycleTime", "SLUICE", 2, 1, 20, "Time it takes for the sluice to make 1 operation. This value is multiplied by 75 ticks."); And the config file: # Time it takes for the sluice to make 1 operation. This value is multiplied by 75 ticks. [range: 1 ~ 20, default: 2] I:sluiceCycleTime=2
  9. The min/max are also displayed to the user in the config file.
  10. If you do core mod, do it by inserting a new event into the modified method, don't just write new code directly there. Insert a hook, then utilize the hook.
  11. You should check for block first, then meta. Also, you shouldn't use block.getDamageValue , you should use world.getBlockMetadata . The default implementation of the former calls Block#damageDropped, which is not necessarily the same as the block's current metadata value.
  12. This amuses me. I read this as "I want to use the same textures, but when I tried that, it used the same textures (achieving the effect I want): Something is wrong."
  13. The # in "ModelManager#getModel" means "you need an instance of the ModelManager class in order to use this method." e.g. World#getBlock() or TileEntity#onUpdate()
  14. This isn't a Forge thing, this is a Vanilla thing. Probably.
  15. Don't create the item stack and entity if you don't intend to spawn it in the world, you're just adding extra work for the garbage collector. (Won't fix your problem, but it makes your code cleaner)
  16. Curse hosts mods, but is not the only repository (although be aware that there are some really scummy ones out there). It also hosts the Minecraft forums which has a mods subfora which may have a wider selection. The Minecraft Forge site (here) is more narrowly focused on mod development although not entirely (its more like "this is where some of the developers hang out and sometimes they want to talk about non-development related topics").
  17. This isn't even the right site. Yes, it's called Curse.com 1) Put mods in the mods folder 2) Forge black magic 3) Modded server
  18. His point is that you've been here for over a month and are making the same mistakes as people who've only just started. #3) Ah, google and wikipedia are your friend https://en.wikipedia.org/wiki/Interpolation http://www.gabrielgambetta.com/fpm3.html https://developer.valvesoftware.com/wiki/Source_Multiplayer_Networking http://gamedev.stackexchange.com/questions/22444/how-does-client-side-prediction-work
  19. override doesRefresh and return false.
  20. Option 1: Make a pull request (or open an issue) will BuildCraft to get it changed Option 2: Use their API to recreate the recipes
  21. Is it direct input from the player? Is it display output to the player? If you answered "no" to both of these questions, then it happens on the server.
  22. This assumes that the other mod is using the OreDict version of the crafting table in their recipe.
  23. How about the first place you use a World reference? Also, why are you writing the block metadata to your TE's description packet? You don't DO anything with it and the client should already know.
  24. You can also use Notepad++ for "Find and Replace in Files"

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.