I didnt think this belonged in the support forum because it wasnt an issue persay.
I have a snow world and would like to make a hedge around my home, problem is with the biomes the snow destroys the regular leaves that I can obtain by using cheat engine or INVedit. So my question is how can I change the regular leaves (or any block for that matter) into the redwood leaves using cheat engine (or anything that would be easier) so they will survive the snow?
I googled it for a while and someone somewhere said that the color of the wool and types of leaves/wood are different in their damage modifier and thats how you can change them but im not sure how. I changed a bunch of different values using cheat engine but it just either forced minecraft to close or changed it into a random object like a stone pick
Do a block replace restricted to the chunks you want redwood leaves on (you'll have to find the chunk numbers yourself)
e.g. C:\>nbtoolkit.exe replace "path/to/world" 18 18 -d 1 -bb 0 0 10 10
In the example above, you're replacing all leaf blocks with leaf blocks, and forcing a new data value on the blocks to show redwood instead of normal leaves. The bounding box of 0 0 10 10 says that all chunks from 0,0 to 10,10 inclusive will be updated, which is a 176x176 block region.
Since the tool operates on the chunk level, you may have trees that are half-normal and half-redwood, you could correct those by hand in mcedit or some other editor by deleting and replacing the blocks.
Ok i switched a non-existent block within the selected area to get the blocks to show up on the MCEdit an in the window there is:
INFO: Copying 4325376 blocks from BoundingBox ([-48, 0, -240], [176, 128, 192]) to (0, 0, 0)
INFO: Chunk 100...
INFO: Replace: Skipped 132 chunks, replaced 0 blocks
Invalidating Box BoundingBox([-48, 0, -240], [176, 128, 192]) , Chunk range -3
-15 8 -3
The ID for the regular leaves is 12 with a damage modifier of 0, while the ID for the redwood leaves is 12 with a damage modifier of 1 so how would I input that?
In the command prompt for NBToolkit I would put in:
C:\nbtoolkit>nbtoolkit.exe replace "C:\Users\*****\AppData\Roaming\.minecraft\saves\World2" <block_id_1> <block_id_2> -p 1.0 -bb (-3, -15) (8, -3)
And just replace the block ID's with the leaves numbers. But is there a way to input the damage modifier? 12.0 and 12.1?
Should do the trick (leaves are actually 18, as a decimal value). Blocks don't have a damage modifier per se, but rather a general 4-bit data value that's interpreted differently per block. The -d switch sets that data value.
The chunk range reported by MCedit looks nonsensical to me .. you may want to try drawing a single block to confirm chunk positions (as you should get a range that lists the coordinates twice).
Ok well I tried that but I keep getting one of three errors. First """is not recognized as a command, second: Is not a valid win32 application, third: cant be accessed because another process is using that file. To explain it better heres some screen shots.
That's a bit strange, sorry it's not going smoothly.
I have personally verified that it works, with the following command:
E:\Workspace\SVN Managed\minecraft\trunk\NBToolkit>nbtoolkit.exe replace C:\Users\Justin\AppData\Roaming\.minecraft\saves\World4 18 18 -bb 0 0 10 10 -d 1
Which replaced an 11x11 chunk area between (0,0) and (10,10) with pine needles (and also left the trees along the edge with a split personality).
It seems you're having a problem running the file itself, because if you run it with no commands it should print out usage instructions. You should try moving the exe somewhere else and running it.
Oh im supposto run it from the .exe? I opened up a command prompt and tried it that way because the .exe wouldnt work. When I try to run the .exe the command prompt (with all the instructions) pops up for about half a second and then disappears. I had to time a precise screen shot to even see that it was the instructions that were coming up.
I tried selecting Run as Admin, and tried all the different compatibility mode incase it was having issues with the computer being 64 bit but that didnt have any success.
Ok well I got ONE more step closer, the print usage has showed up but it still says
Invalid Switch - 18
No files replaced
I am running SnowMod but I wouldnt think adding in the snow would have an effect on replacing blocks..
Ok so out of curiosity I switched around the blocks being replaced. Changed 18 18 to 18 17 and changed to Invalid Switch 17, so I changed it to 17 18 and it said Invalid Switch 18 again. So it appears to be having an issue with the second number, the block I want to change anything to. Not sure if this helps
No, you definitely do not want to run "replace" as a command by itself. That is an internal windows command, and it's complaining about "invalid switch" because you're not feeding it the right parameters to .. replace your files.
You must run nbtoolkit.exe. You should experiment with running it by itself, without any parameters at all. Once you get it to print out a bunch of usage information, then you're getting somewhere.