Everything posted by Draco18s
-
1.7.10--determining if a block is solid
Oh, I've been bit by that method at least twice.
-
[1.7.10] NBTTag data resets on rejoining world
Guis are client side. If you want this info present on the server, you need packets
-
1.7.10--determining if a block is solid
Be careful with that one. I don't recall if it is that method or one that is named very similarly, but one of them is client-side-only.
-
[Solved] [1.8.9] addinformation() and getSubItems() name clash issue
I asked because the way you posted it, you posted an abstract method, which has different rules.
-
Where can I find documentation for Forge?
Most sections are still relevant. Most of what changed is on the rendering side (how blockstates/metadata work, icons, etc). If you're looking for an event list, try this page: http://www.minecraftforge.net/wiki/Event_Reference
-
[Solved] [1.8.9] addinformation() and getSubItems() name clash issue
Have you included only method stubs here, or are you actually defining them as methods with { } (optionally with code in between)?
-
Minecraft Crashes When Run
As much as I know that programming is freaking magic, it does not operate on faith.
-
Dynamic Item Registry
Items are singletons, if you want to drop an item you need to pass a reference to the same Item you registered. @Override public Item getItemDropped(int metadata, Random random, int fortune) { return MyMainModClass.myCoolItem; }
-
[1.8] Editting Overworld Caves
Succinctly, you don't. As you have things set up is the way to go: find the event, cancel it, do something else instead. Your "something else" would be a replacement class that does the same thing as, but with different results than, the original vanilla caves.
-
Minecraft Crashes When Run
Is that static init function ever called?
-
[Solvced]Problem with String after sending to the server
Ok, why the duck are you encoding the values into a string? Just write them all to the bytebuffer.
-
[1.8] Dynamic Tool Materials
Check out this item of mine. All of its material values come from NBT https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/item/ItemArtifact.java
-
Minecraft Crashes When Run
And use spoiler tags
-
[Solvced]Problem with String after sending to the server
Show some code?
-
[1.8] Strange liquid behavior
Finite is for fluids that don't have source blocks, only quanta.
-
[SOLVED] [1.8] OreDictionary Help
Absolutely. What did you think the FMLPostInitializationEvent was
-
Schematics help
Re random chest contents: Go look at ChestGenHooks
-
[SOLVED] [1.8] OreDictionary Help
Option 1: Wait until post-init Option 2: There's an event fired when something is registered with the OreDictionary, you can set up an event handler for that event and do whatever you need to. Also: "oreCOPPER" is wrong. No one should be registering their ores under this string.
-
[1.8.9] Change recipe output based on day/night
Your recipe needs to subtract 1 from the item stacks, then if the stack size is zero, set the slot to null.
-
Whitelist player names for mod features
Just as an FYI: If you plan on charging money for those features, in any way, it's illegal by Minecraft's EULA.
-
[1.8] Help implementing an outline similar to the spectator 'Player Outlines'
I'd suggest trying to figure out how the "Glowing" effect in 1.9 gets rendered and backporting it.
-
[1.8.9]Messing with rendering the player?
IIRC there is ItemStack#areStacksEqual which does item stack comparison. But if you want to check against item and item only then, ItemStack#getItem will suffice.
-
[1.8.9] Continuous jump animation
It's in a god damn CSV file, its super easy to open that up in Excel and hit Ctrl-F. The hard part is remembering where that CSV file is located. C:\Users\[username]\.gradle\caches\minecraft\de\oceanlabs\mcp\mcp_snapshot\[snapshot num]\fields.csv
-
[1.8.8] Can't activate block while holding something
This. Shift-Click with blocks by vanilla bypasses block activation and places the block.
-
[SOLVED][1.7.10] Preventing Block Placement
You want to look at canBlockBePlacedAt BlockRedstoneWire uses it.
IPS spam blocked by CleanTalk.