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. 1) generate a random number 2) do something with it
  2. 1) generate a random number 2) do something with it
  3. It gets called if the player is inside the 1x1x1 standard volume of the block (your block would need a bounding box smaller than 1x1x1 for this to occur). You would need to either: a) schedule tick updates (say, every 10 ticks) and check in updateTick (and reschedule the update) b) not schedule ticks and rely on random ticks (about once a minute) c) use a tile entity and check every tick A is the best solution.
  4. It gets called if the player is inside the 1x1x1 standard volume of the block (your block would need a bounding box smaller than 1x1x1 for this to occur). You would need to either: a) schedule tick updates (say, every 10 ticks) and check in updateTick (and reschedule the update) b) not schedule ticks and rely on random ticks (about once a minute) c) use a tile entity and check every tick A is the best solution.
  5. No no no, leave the collision box alone. You want to getEntitiesWithinAABB(thing I said)
  6. No no no, leave the collision box alone. You want to getEntitiesWithinAABB(thing I said)
  7. The only reason Mojang has two blocks for the furnace (redstone ore, redstone lamp, redstone torch....) is because they weren't clever enough to figure out how to get blockstates to change lighting.
  8. The only reason Mojang has two blocks for the furnace (redstone ore, redstone lamp, redstone torch....) is because they weren't clever enough to figure out how to get blockstates to change lighting.
  9. 1) spawn more particles per tick with horizontal offsets from each other. 2) make the block less than a full block on that side. 3) step 1: get the facing direction step 2: multiply that direction by 3 step 3: make an AABB from the block to this new position
  10. 1) spawn more particles per tick with horizontal offsets from each other. 2) make the block less than a full block on that side. 3) step 1: get the facing direction step 2: multiply that direction by 3 step 3: make an AABB from the block to this new position
  11. Don't register your renderers there. You must do it in your client proxy or you will crash the dedicated server. Do not use item.getUnlocalizedName().substring(5) this is awful awful awful, should never be done, and if you got it from a tutorial, go punch that person in the face for being an idiot. This is why setRegistryName and getRegistryName exist.
  12. Don't register your renderers there. You must do it in your client proxy or you will crash the dedicated server. Do not use item.getUnlocalizedName().substring(5) this is awful awful awful, should never be done, and if you got it from a tutorial, go punch that person in the face for being an idiot. This is why setRegistryName and getRegistryName exist.
  13. You need the reference inside the capability not the packet handler.
  14. You need the reference inside the capability not the packet handler.
  15. removeTask(new Task()) isn't going to do anything. It won't find the newly created object in the array, so it won't remove it from the array.
  16. removeTask(new Task()) isn't going to do anything. It won't find the newly created object in the array, so it won't remove it from the array.
  17. Well 90 degrees of rotation applied: 0% to the X axis, 0% to the Y axis, 0% to the Z axis would do precisely nothing.
  18. Well 90 degrees of rotation applied: 0% to the X axis, 0% to the Y axis, 0% to the Z axis would do precisely nothing.
  19. You started a new thread for this. Don't do that.
  20. You started a new thread for this. Don't do that.
  21. Ok, look, a task already exists in the build file. I don't give a shit what it's named. Add from incrementBuildNumber to it.
  22. Ok, look, a task already exists in the build file. I don't give a shit what it's named. Add from incrementBuildNumber to it.
  23. Locate the mod, PM the mod author.
  24. Locate the mod, PM the mod author.
  25. The closest you can get is 3 consecutive rotations: "+x, +y, -x" (all rotations 90 degrees). The problem is I don't think the json supports two rotations on the same axis. This is, of course, assuming that all 6 sides are uniquely textured (e.g. a die) and that +z is uniquely different than all sequences of a single rotation on x, y, or both.

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.