-
Custom Sounds not playing on server
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.
-
Custom Sounds not playing on server
https://github.com/allkillernofill3r/Geetar
-
Custom Sounds not playing on server
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!
-
Glass Rendering
Thank you so much!!! You are a saint!
-
Glass Rendering
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!
-
Check for Block
Ok, so how do you target the block you're looking at with that function?
-
Check for Block
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!
-
Could not resolve all files for configuration ':conpileClasspath'
Omg! I'm an idiot. I swear I didn't edit this file. Thank you so much for your time and my idiocy!
-
Could not resolve all files for configuration ':conpileClasspath'
It just the default 1.15.2 gradle: https://pastebin.com/WjHt36Jx
-
Could not resolve all files for configuration ':conpileClasspath'
Do you know how I can change the project type?
-
Could not resolve all files for configuration ':conpileClasspath'
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!
-
Java Class Inheritance
Should I use a lambda instead?
-
Java Class Inheritance
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));
-
Java Class Inheritance
What do those look like?
-
Java Class Inheritance
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'
IPS spam blocked by CleanTalk.