This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
In my main.cpp:
#include <jni.h> #include <dlfcn.h> #include <android/log.h> #include <stdlib.h> #include <mcpe.h> #include <Substrate.h>
static int(*ChestTileEntity_getContainerSize_real)(void*); int ChestTileEntity_getContainerSizeHook(void* chest){ return 200; } JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) { void * chestContainerSize = dlsym(RTLD_DEFAULT, " _ZNK15ChestTileEntity16getContainerSizeEv"); MSHookFunction(chestContainerSize, (void*) &ChestTileEntity_getContainerSizeHook, (void**) &ChestTileEntity_getContainerSize_real); return JNI_VERSION_1_2; }
So will this changes the container size of the chest to 200?
Sorry for my bad English.
Tap the link below to sub to my youtube channel:
https://m.youtube.com/channel/UCDPTTeHo67o7-mZiiGh_XKg?debug_prerolls=false&layout=mobile&tsp=1&utcoffset=480
In my main.cpp:
#include <jni.h>
#include <dlfcn.h>
#include <android/log.h>
#include <stdlib.h>
#include <mcpe.h>
#include <Substrate.h>
static int(*ChestTileEntity_getContainerSize_real)(void*);
int ChestTileEntity_getContainerSizeHook(void* chest){
return 200;
}
JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
void * chestContainerSize = dlsym(RTLD_DEFAULT, " _ZNK15ChestTileEntity16getContainerSizeEv");
MSHookFunction(chestContainerSize, (void*) &ChestTileEntity_getContainerSizeHook, (void**) &ChestTileEntity_getContainerSize_real);
return JNI_VERSION_1_2;
}
So will this changes the container size of the chest to 200?
Sorry for my bad English.
Tap the link below to sub to my youtube channel:
https://m.youtube.com/channel/UCDPTTeHo67o7-mZiiGh_XKg?debug_prerolls=false&layout=mobile&tsp=1&utcoffset=480