Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Ron_Parker

Members
  • Posts

    29
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Ron_Parker's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  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. 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!
  11. 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));
  12. 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'
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.