
Ron_Parker
Members-
Posts
29 -
Joined
-
Last visited
Everything posted by Ron_Parker
-
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.
-
https://github.com/allkillernofill3r/Geetar
-
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!
-
Thank you so much!!! You are a saint!
-
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!
-
Ok, so how do you target the block you're looking at with that function?
-
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'
Ron_Parker replied to Ron_Parker's topic in Modder Support
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'
Ron_Parker replied to Ron_Parker's topic in Modder Support
It just the default 1.15.2 gradle: https://pastebin.com/WjHt36Jx -
Could not resolve all files for configuration ':conpileClasspath'
Ron_Parker replied to Ron_Parker's topic in Modder Support
Do you know how I can change the project type? -
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!
-
Should I use a lambda instead?
-
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));
-
What do those look like?
-
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'
-
I've been working on my mod for awhile and i'm trying to add a custom slab but I can't get the MaterialColor and Material to work because it says they're private. Here's my code: Java Class: public class CoolSlab extends SlabBlock { public CoolSlab() { super(new Properties(Material.IRON, MaterialColor.AIR).hardnessAndResistance(12, 40).harvestTool(ToolType.PICKAXE).sound(SoundType.GLASS)); } } Deferred Registry: public static final RegistryObject<Block> COOL_SLAB = BLOCKS.register("cool_slab", CoolSlab::new);
-
Then what should I do?
-
Is there a way I could hardcode the second drop in the java class?
-
How do I see how a chicken does it?
-
I have a mod that needs for vanilla animals to drop custom items kind of like a chicken lays an egg. I have no clue where to get started so any help is appreciated!
-
I used the debugger but no error like before. It has to be something with the loot table.
-
Did I make the group right in the second loot table I posted?
-
I'm an idiot. I originally registered the item in the 1.16 build of my mod and then I was working on the loot tables in my 1.15.2 build and it wasn't working because the item wasn't registered in the 1.15.2 build. Now the loot table is working with silk touch but when using regular pick it only drops one or the other of the items?
-
I wrapped them in a group entry but now nothing drops in game. Here is the new loot table: { "type": "minecraft:block", "pools": [ { "rolls": 1, "entries": [ { "type": "minecraft:alternatives", "children": [ { "type": "minecraft:item", "conditions": [ { "condition": "minecraft:match_tool", "predicate": { "enchantments": [ { "enchantment": "minecraft:silk_touch", "levels": { "min": 1 } } ] } } ], "name": "coolores:cool_ore" }, { "type": "minecraft:group", "children": [ { "type": "minecraft:item", "functions": [ { "function": "minecraft:set_count", "count": { "min": 3.0, "max": 5.0, "type": "minecraft:uniform" } }, { "function": "minecraft:apply_bonus", "enchantment": "minecraft:fortune", "formula": "minecraft:uniform_bonus_count", "parameters": { "bonusMultiplier": 1 } }, { "function": "minecraft:explosion_decay" } ], "name": "coolores:cool_dust" }, { "type": "minecraft:item", "name": "coolores:cool_essence" } ] } ] } ] } ] }
-
Would the group entries go inside of the alternatives or outside?