Everything posted by Draco18s
-
Help Editing Vanilla Blocks and Items
Always post your errors when you have them.
-
[Solved] Multiple Creative Tabs
Override isInCreativeTab() And for future reference, if you have code, post it. If you have errors, post them.
-
[SOLVED] Recipes don't work??
Ok so lets see here: This looks good, but it's called from somewhere else. public void init() { new ModRecipes().RegisterCraftRecipes(); } And that place happens to be here: @Mod.EventHandler public void preInit(FMLPreInitializationEvent event) {proxy.preInit();} public void init(FMLInitializationEvent event) {proxy.init();} Which might look fine, but it's not. Lets remove the code that doesn't interest us. public void init(FMLInitializationEvent event) {proxy.init();} Hold on a minute. Where is this called from? Nowhere, that's where! You're missing the EventHandler annotation on your init method.
-
Help Editing Vanilla Blocks and Items
Did I say it would not? No I did not say that. In fact I said you must do that.
-
[SOLVED] Recipes don't work??
No, it was introduced later.
-
Help Editing Vanilla Blocks and Items
You're setting the registry name to "obsidian". As this does not contain a domain ID (i.e. your mod name), forge adds it for you, based on whatever's in your @mod annotation (I'll assume "xtekblue" for the moment). This means the registry name is actually "xtekblue:obsidian". In order to overwrite vanilla's obsidian, you need to set the registry name to "minecraft:obsidian"
-
[SOLVED] Condition "block water" (Right click)
Just checking. Because I've worked on mechanics to get nearby ores and only do "speckles" of those ores.
-
[SOLVED] Condition "block water" (Right click)
Question: Is your speckles related to ore nearby, or is it just a chance to get "some speckles" of that material, which can then be crafted/smelted into ingots?
-
Help Editing Vanilla Blocks and Items
Just because you extended the class doesn't mean you've replaced it. Minecraft vanilla (which is immutable) still calls new BlockObsidian(), not your class. To create any block, you need to register it (I recommend reading the documentation), and if you do as Jabelar says, you can replace the vanilla entry, but this is due to how the registration system works and is not a standard feature of Java. I also recommend learning Java (or at least, some other object oriented language) before modding.
-
Model Bug with Ores
You are returning different items in your getItemDropped method. When your drop a sapphire, you also drop that sapphire with damage 1.
-
Get list of blocks in a chunk (1.12)
You can get the list of properties from an IBlockState with state.getProperties(). Each property would then be examine-able for its name, type, and allowed values.
-
Get list of blocks in a chunk (1.12)
Then you need to use the IBlockState as your key.
-
Get list of blocks in a chunk (1.12)
What's wrong with using the registry name?
-
How to add custom anvil recipes?
You would have to examine the anvil code to see how it applies the enchantments and see if there is an event hook that would let you tap into the anvil's result.
-
How to add custom anvil recipes?
The anvil doesn't have recipes.
-
How to add a GUI "toxic"
Apply the nausea potion effect to the player.
-
[SOLVED] Condition "block water" (Right click)
getBlockState(pos) Where pos is a BlockPos representing the location in the world you want to check
-
[SOLVED] Playing sounds causes ConcurrentModificationException
https://github.com/leduyquang753/NBS-Player/blob/master/src/main/java/com/xxmicloxx/NoteBlockAPI/SongPlayer.java#L85 You're creating your own threads? Yeah, that won't create problems, ever.
-
[SOLVED] Playing sounds causes ConcurrentModificationException
I am not downloading a zip file. Post your code on GitHub.
-
[SOLVED] Playing sounds causes ConcurrentModificationException
Both of those are client side only. As soon as the server tries to load the Minecraft class, it fails to find it. You're already being passed a world object, somewhere. Post more of your code.
-
1.12 lang file entries for multi state blocks
This is a really good point. See all of these? https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/ores/OresBase.java#L92-L110 Here's the class for all of them: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/ores/block/ore/BlockHardOreBase.java Well, except diamond.
-
[SOLVED] [1.12.2] Cannot connect to multiplayer servers
And where is this code being executed?
-
[1.12.2] Get ID of World object
world is an instance of World so... Yes.
-
How can I spawn in entities with a 2D model like this mod?
You...: Create an entity Give it a model and renderer (this will be the 2D sprite) Code the aura effect inside the entity
-
Fatal Error With GuiFactory
This does not seem correct to me.
IPS spam blocked by CleanTalk.