Everything posted by Draco18s
-
[1.12.2] Mod Loading options
1) You probably can't. For example, lets say I made a mod that I want to have wait for yours to finish, and then do stuff with what your mod does. Now my mod needs to load absolutely-last. 2) You shouldn't do whatever it is your doing when you're doing it. If you need something from another mode, wait until Init. Init is guaranteed to be after block and item registration.
-
Implementing client-only commands with Forge 1.12
Forge doesn't even maintain the Javadoc, that's all on the MCPBot side. This would be more accurate: http://files.minecraftforge.net/ The last build was 05:37 AM this morning (with a new recommended build that has no changes, 10 minutes later), and the previous build was on the 9th. MCP exports? Those happen daily.
-
[SOLVED][1.11.2] Ore generation per biome
String biome = world.getBiomeForCoordsBody(pos).getBiomeName(); And you do dick with this value. if(Biomes.DESERT != null) This will never be false.
-
[1.12] Blockstates for versions of item in inventory?
You have to register your variant with the ModelLoader. For example, I have this: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java#L147 I have my code set up to take an arbitrary property as a variant, I get the metadata value and state information for each subblock, then register it: https://github.com/Draco18s/ReasonableRealism/blob/1.11.2/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java#L162-L169 (The 1.12 code I use is more complicated due to the ModelRegistryEvent nonsense, so I linked the simpler snippet from 1.11)
-
Implementing client-only commands with Forge 1.12
So, my question here is, "Why wouldn't it be supported in 1.12?" Anyway, take a search on these forums and see what you can dig up. It's come up in the past. No, because it would be out of date in less than a week. All the javadoc you need is in the code itself. And if there ISN'T javadoc on something that means there's NO javadoc at all for it. All the javadoc is handled via MCPBot, the same way human readable names for methods and field names are handled.
-
[1.10.2]Get problems with extend block state and custom model
I didn't say to make your existing property a property on getActualState I said to use a series of booleans. As in, new properties. Like the Fence.
-
[1.10.2]Get problems with extend block state and custom model
You don't needed extended states for this, just use getActualState and return whatever booleans you want as separate properties.
-
Texture wont display 1.11
That is not "learning Java" that's "taking what you know and utilizing it."
-
[1.11.2] [SOLVED] Hwyla does not display energy data
If you can't test Hwyla in dev, create yourself a dummy item that when right-clicked on a block, will query the energy capability from side-null (as that is the side Hwyla uses). Then set a break point in your code and figure out what pathway it takes.
-
How to use unlocalized strings other than on item / block names?
Oh no, the horror of having to use a + and concatenate a string!
-
How to use unlocalized strings other than on item / block names?
No. tooltip.add(TextFormatting.LIGHT_PURPLE + I18n.format("tooltip:oreflowers:indicator"));
-
How to use unlocalized strings other than on item / block names?
Wrong. Tooltip entries are not translated when displayed, you have to do it yourself.
-
How to use unlocalized strings other than on item / block names?
Either use a TextComponentTranslation or translate using I18n.
-
[1.12.2] Question about git and Forge patching when making Forge PRs
In order to change the Minecraft code you need to run genpatches for those changes to be reflected. From Forge's git readme:
-
[Question] 1.8.9. How to check if player is on server or signleplayer!
I probably picked it up from comments like these.
-
NoSuchField Error when using a mod as an API?
There is nothing wrong with your code. There is no change you can make in your code that will make this error go away.
-
NoSuchField Error when using a mod as an API?
at com.mraof.minestuck.item.block.ItemBlockLayered.<init>(ItemBlockLayered.java:24) at com.mraof.minestuck.item.MinestuckItems.registerItems(MinestuckItems.java:204) This isn't in the code you supplied. Your code is in com.natura.minestuckarsenal.item
-
Question about a method
The code you posted should never result in that effect.
-
Texture wont display 1.11
Java is to Javascript as Car is to Carpet.
-
Question! How do I register a click event on custom main menu buttons!
If you want to add buttons to the main menu, you either: a) don't need a GuiScreen because you're modifying an existing one b) are replacing one GuiScreen with another and have initGui
-
Texture wont display 1.11
ModelLoader is a static class. That means in stead of: Minecraft.getMinecraft().getRenderItem() You put ModelLoader And then because method names are case-sensitive, you need to use: setCustomModelResourceLocation instead of setcustommodelresourcelocation This really isn't that hard.
-
Question! How do I register a click event on custom main menu buttons!
You're doing everything wrong. 1) you should not pass the event to your GUI. 2) You should create buttons doing initGui. 3) Get button clicks during actionPerformed.
-
Question about a method
Don't use setItemDamage, instead use damageItem. That allows the item stack to resist the damage (unbreakable) as well as a few other things.
-
Coords at cursor
Well, technically machine intervention. The code was never used on the server in vanilla code, so the automated "strip out things not used on the server" process stripped it.
-
[1.10.2 | SOLVED] ExceptionInInitializerError while creating axe
Use the constructor that takes two float arguments.
IPS spam blocked by CleanTalk.