Added a new patch that changes the ChunkCache::hasChunk(int x, int y) method to:
return x > 0 && x < 3 && z > 0 && z < 3;
I have no idea what would happen. Would this create a two-chunk world with the spawn in the Void? Will this blow up your tablet? Will this create a interdimentional portal to an alien world? It won't be that crazy, but back up all your worlds before installing.
Added a new patch that changes the ChunkCache::hasChunk(int x, int y) method to:
return x > 0 && x < 3 && z > 0 && z < 3;
I have no idea what would happen. Would this create a two-chunk world with the spawn in the Void? Will this blow up your tablet? Will this create a interdimentional portal to an alien world? It won't be that crazy, but back up all your worlds before installing.
Very interesting. Trying that now... Are you using C code now or is that just pseudo code?
Appears to be Java, but you could call it pseudo code as well. I've never used conditional statements in a return statement, but it would work, so I'll go with Java.
Then I removed the ELF header, slapped a legacy PTPatch header on it, used the PTPatch converter to convert it and then fixed the magic number.
No conditional statements? How much have you missed!
Very clever! I've been wanting to add in C code support for a while now, I plan to create a linker script to compile directly into a PTPatch soon. Also, i see that you were one step ahead of me with converting it. I just released the new update moments before I saw this patch, so instinctively, I ran it through patch tool again and ran into some errors!
Also, I patched the mod, it crashes MC PE when creating a new world or loading an old one.
No conditional statements? How much have you missed!
Oh no I have, I just don't return conditional statements from boolean methods in Java. So I don't like to do this:
public boolean bool(){
return 12>27;
}
I just do this instead (sadly):
public boolean bool(){
if(12>17)
return true;
else
return false;
}
I do it the long way in Java because if I do the first way, I get confused with writing Python code and the next five lines I write after that will be Python instead of Java (I am very strange like that, but I've been writing Python for 5 years versus Java for 7 months).
Hey 500ISE, is in the libminecraftpe.so file the crafting recipes? If they are there, isnt there a way to tweak them and add more, like, for example, 3 iron ore and two sticks to make am iron pickaxe? That would be awesome
Rollback Post to RevisionRollBack
You can find me on twitter as @iLightus !
Add me on Steam!: http://bit.ly/ONfxMC
Hey 500ISE, is in the libminecraftpe.so file the crafting recipes? If they are there, isnt there a way to tweak them and add more, like, for example, 3 iron ore and two sticks to make am iron pickaxe? That would be awesome
Yes, they are in there. No, I haven't looked at them. Couldn't you just use an inventory editor to hack in the other items?
You could... but what would be the fun in that? Do a mod that adds recepies to craft iron ingots, iron tools, shears, bricks, glass, and basically just skips smelting. That would be the most amazing thing ever done
Yeah, but as hoohoo4 said, the game becomes boring. As I dont know how to code myself, I dont know if adding recipes is a simple task (Or if possible)
It looks pretty difficult - Instead of using the raw item IDs as crafting results and inputs, the recipes use the Item objects. I only know how to change the raw item ids passed into a method (learned it for my EverythingisTnt mod a while back), so it would probably take a while for me to understand it.
Edit: and my next priority is to enable anaglyph, so it would probably be a while before I can get to this.
Its keeps glitching up for me.
-
View User Profile
-
View Posts
-
Send Message
Curse Premium-
View User Profile
-
View Posts
-
Send Message
Curse Premiumim so amazed that this works. Cheers to you 500ISE.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI have no idea what would happen. Would this create a two-chunk world with the spawn in the Void?
Will this blow up your tablet? Will this create a interdimentional portal to an alien world?It won't be that crazy, but back up all your worlds before installing.If you are brave enough:
https://github.com/downloads/zhuowei/MinecraftPEModWiki/chunkcachepatch.zip
And the raw .mod file: https://github.com/downloads/zhuowei/MinecraftPEModWiki/chunkcachepatch.mod
Edit: interdimensional portal to alien world created; this experiment's done.
Very interesting. Trying that now... Are you using C code now or is that just pseudo code?
Appears to be Java, but you could call it pseudo code as well. I've never used conditional statements in a return statement, but it would work, so I'll go with Java.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumTL;DR: It's C.
int herpderp(int obj, int x, int z) { return x > 0 && x < 3 && z > 0 && z < 3; } int main() { return herpderp(1, 2, 3); }Was the file I compiled withThen I removed the ELF header, slapped a legacy PTPatch header on it, used the PTPatch converter to convert it and then fixed the magic number.
No conditional statements? How much have you missed!
Very clever! I've been wanting to add in C code support for a while now, I plan to create a linker script to compile directly into a PTPatch soon. Also, i see that you were one step ahead of me with converting it. I just released the new update moments before I saw this patch, so instinctively, I ran it through patch tool again and ran into some errors!
Also, I patched the mod, it crashes MC PE when creating a new world or loading an old one.
Oh no I have, I just don't return conditional statements from boolean methods in Java. So I don't like to do this:
public boolean bool(){ return 12>27; }I just do this instead (sadly):
public boolean bool(){ if(12>17) return true; else return false; }-
View User Profile
-
View Posts
-
Send Message
Curse PremiumThanks, will upload a new patch soon. Also, I'm pretty sure that the ptpatch converter generates the wrong magic number.
Thanks. Uploaded the fix patchtool.jar
Add me on Steam!: http://bit.ly/ONfxMC
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumWrong thread, but: https://github.com/downloads/zhuowei/PocketInvEditor/PocketInvEditor-release.apk for 1.0.1 and https://github.com/downloads/zhuowei/PocketInvEditor/PocketInvEditor-release-beta.apk for 1.1 beta.Edit: Reading's too mainstream for me. Ask Snowbound for a .apk, I guess.
Yes, they are in there. No, I haven't looked at them. Couldn't you just use an inventory editor to hack in the other items?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYeah, but as hoohoo4 said, the game becomes boring. As I dont know how to code myself, I dont know if adding recipes is a simple task (Or if possible)
Add me on Steam!: http://bit.ly/ONfxMC
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumIt looks pretty difficult - Instead of using the raw item IDs as crafting results and inputs, the recipes use the Item objects. I only know how to change the raw item ids passed into a method (learned it for my EverythingisTnt mod a while back), so it would probably take a while for me to understand it.
Edit: and my next priority is to enable anaglyph, so it would probably be a while before I can get to this.
-
View User Profile
-
View Posts
-
Send Message
Curse Premium