Sorry about all the minecraft related threads. I have successfully made a code that changes all non-air blocks to wood, but why is Minecraft inconsistently crashing? Some times it works, but sometimes it just crashes. Here's my code:
Code:
[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(exit)
label(aoblab)
registersymbol(aoblab)
aobscan(aobaob,0f be 44 * 0c 81 e0 ff 00 00 00 83 c4 18) //Array is always correct and returns one result from scan
aobaob:
aoblab:
call newmem
returnhere:
newmem:
movsx eax,byte ptr [edi+edx+0C] //Orignal code
pushfd
cmp byte ptr [edi+edx+0C],0 //If the block is air...
je short exit //Go to exit
mov byte ptr [edi+edx+0C],11 //If the block is not air, then change to wood
exit:
popfd
ret
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum