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.

Ron_Parker

Members
  • Joined

  • Last visited

  1. Ok, I think I fixed the Keybinds but i'm a little lost on the packet sending. I took a shot at it but I don't know what to pass in for player? Is there a library file that would show something like this in action? 'Cause I was thinking of how a potion bottle sound plays to the player and all players around, that's kinda what i'm trying to do. I updated the Git repository if you would like to take a look.
  2. https://github.com/allkillernofill3r/Geetar
  3. I am using the playSound function with a custom sound and it's works with no problems in a singleplayer world but whenever I try to play it on a multiplayer world the sound doesn't play. It is executing just fine because I put a logger there but it just isn't playing the sound. If anyone has any ideas or a solution please let me know! Thanks!
  4. Thank you so much!!! You are a saint!
  5. I am making a Glass Block and when you look at the block you can see through the world and through blocks around it. Does anyone know how to fix this? Here's my Block class: public class CoolGlass extends GlassBlock { public CoolGlass(Properties properties) { super(properties); } @Override public boolean isSideInvisible(BlockState state, BlockState adjacentBlockState, Direction side) { if (adjacentBlockState.getBlock() instanceof CoolGlass) { if (adjacentBlockState.getRenderType() == state.getRenderType()) { return true; } } return super.isSideInvisible(state, adjacentBlockState, side); } @Override public int getOpacity(BlockState state, IBlockReader world, BlockPos pos) { return world.getMaxLightLevel(); } } Thanks in advance!
  6. Ok, so how do you target the block you're looking at with that function?
  7. I have an item that when the player is looking at a specific block, whenever they right click it it gives them a new ItemStack. I've gotten as far as Overriding the onItemRightClick method but I don't know how to check for the block the player is looking at. Any help is much appreciated! Thanks in advance!
  8. Omg! I'm an idiot. I swear I didn't edit this file. Thank you so much for your time and my idiocy!
  9. It just the default 1.15.2 gradle: https://pastebin.com/WjHt36Jx
  10. Do you know how I can change the project type?
  11. I was trying to build my mod today and it failed and this came up in the log: Could not resolve all files for configuration ':compileClasspath'. Could not find com.android.support:support-annotations:28.0.0. Searched in the following locations: - https://files.minecraftforge.net/maven/com/android/support/support-annotations/28.0.0/support-annotations-28.0.0.pom - https://files.minecraftforge.net/maven/com/android/support/support-annotations/28.0.0/support-annotations-28.0.0.jar - file:/C:/Users/Mathe/.gradle/caches/forge_gradle/bundeled_repo/com/android/support/support-annotations/28.0.0/support-annotations-28.0.0.pom - file:/C:/Users/Mathe/.gradle/caches/forge_gradle/bundeled_repo/com/android/support/support-annotations/28.0.0/support-annotations-28.0.0.jar - https://libraries.minecraft.net/com/android/support/support-annotations/28.0.0/support-annotations-28.0.0.jar - https://repo.maven.apache.org/maven2/com/android/support/support-annotations/28.0.0/support-annotations-28.0.0.pom - https://repo.maven.apache.org/maven2/com/android/support/support-annotations/28.0.0/support-annotations-28.0.0.jar Required by: project : Possible solution: - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html Any Ideas? Thanks in advance!
  12. Should I use a lambda instead?
  13. Ok I used Properties::from but it doesn't seem to like it, There are red underlines around the parentheses around CoolGlass (Java Class): public static final RegistryObject<Block> COOL_GLASS = BLOCKS.register("cool_glass", AbstractBlock.Properties::from(CoolGlass));
  14. What do those look like?
  15. It underlines Properties and says 'Properties(net.minecraft.block.material.Material, net.minecraft.block.material.MaterialColor)' has private access in 'net.minecraft.block.AbstractBlock.Properties'

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.