Everything posted by Draco18s
-
Cannot open my mod
No, you meant to say "a lot" not "alot."
-
Cannot open my mod
You copied the project folder, but not the files the project needs to run; there's files at c:\users\[username]\.gradle that are required by Forge (this is where it keeps things like the Minecraft jar). You need to run gradle setupDecompWorkspace again. This is why I only move my /src directory between computers, rather than the /forge directory. Edit: Didn't mean to "Thank" your post. I was trying to switch tabs.
-
[1.8] Multiblocks are making me want to die
Debug.Log Er I mean, System.out.println(...)
-
Making my entity not sink in water
@Override public boolean handleWaterMovement() { /**Code here**/ }
-
[1.8]Is there a way to make a block passthroughable? if so please tell me.
Alot thank you.
-
Works in Eclipse, not in actual client
e = EntityLivingBase.class.getDeclaredMethod("getExperiencePoints", EntityPlayer.class); That method does not exist in the obfuscated Minecraft code.
-
[1.8] Rendering an item "placed" on top of a TileEntity
There's also the renderer used when the item is dropped on the ground (for most items, this will be the same as the item frame).
-
Vehicles
Unfortunately, the rails handle most of the Minecart movement logic.
-
[1.7.10] Get a block to drop an ore dict block
Oh, sure you could use another block from the oreDict, that'd be fine too. You just don't need to care which one.
-
[1.7.10] Get a block to drop an ore dict block
Drop your own block registered with the oreDict, the translation to any other basalt is what the ore dict DOES.
-
Vehicles
That's a lot all at once, I'd start with making the car and having it auto-jump one block. Like the horse.
-
Making my bullet headshot
On-hit, check position vs. entity position, if in the right place, headshot. (You are unlikely to be able to check individual cubes on the mob for collision, so you'll have to approximate).
-
[1.8] NBT Data not saving when world exits
Whoah whoah whoah. This is wrong on so many levels. Static is an exception to the standard use of variables, hardly common enough to "not think about" and "just throw in there!"
-
[1.8][Solved] World Generation Replacing Blocks Other Than Stone
Yea, 1.8 pretty much takes the idea of "Magic Numbers" and hides them. No more block or item IDs, Entity IDs are almost irrelevant, metadata is now IBlockState...
-
Network values not being evenly distributed among conduits.
Been there, done that. My last one was arranging a series of rectangles so that none of them overlapped. As an optimization, I told it to only move the rectangle (between an overlapping pair) that was farthest from the origin, and to move it in the direction closest to making it not overlap. It hit an infinite loop with a set of 3 in a specific arrangement, where the one being moved overlapped with two others both closer to the origin, and both wanting to move the interloper in opposite directions. So I had to track "lastMove" and compare with "currentMove" and if they were diametrically opposed, just make it move in the same direction as "lastMove." Then a little while later I buggered up x/z/y as x/y/z (due to a 2D vector operation accepting a 3D vector and ignoring Z when I actually wanted to ignore Y; I could refactor it, but this code editor is shite at refactoring).
-
[1.7.10] Text render error!
Something's definitely wrong, and likely with your code. But with those two lines I can't immediately pick out the problem.
-
[1.7.10] TileEntity Mimicing Changes on All Instances
And....what is this? this.lightValue $10 says that it's a class-level field of the parent Block class. Which is still a singleton.
-
[1.7.10] TileEntity Mimicing Changes on All Instances
The hell is this? public class BlockLightEngine extends BlockContainer { int light;
-
How to make blockplacing dependent on the blocks underneath?
Cool, just wanted to make sure you weren't blindly using the function thinking it did X and it actually did Y. Which is fine. It was whether or not it returned a blockPos that was 1 unit away or if it returned the offset necessary to calculate the block 1 away.
-
[Solved]Is there an event thats fired when the tick is done?
Phase.Start and Phase.End (Just check for the one you're interested in)
-
How to make blockplacing dependent on the blocks underneath?
Not sure if pos.down() actually offsets by 1 in the downward direction. Just double check (ctrl-click the function name). (Admittedly I haven't messed with 1.8 yet)
-
[1.7.10]Block World TE and stuff
Show your code.
-
How to make blockplacing dependent on the blocks underneath?
*cough* There's an "canPlaceBlockAt" function. Return false there. That's why I said "look at redstone."
-
[1.7.10] How to turn off
You probably need a playerTickEvent handler. Inventory items don't update (with the exception of the armor slots, but only when the armor is actually equipped). Also, this method will break any other mod that also adds the ability to fly.
-
[1.7.10] [Solved] Using Minecraft's Timer Class.
Yes. And if you'd looked at the Furnace you'd know that.
IPS spam blocked by CleanTalk.