So My Friend Needs Help With His Mod. But he Doesnt Have An Account So He Asked Me To Post This. Okay So He Doesnt Know How To Generate Builings in the world But He Wants a Code That Generates The Building Without Lag Or Little Lag. Last Thing He Wants To Know If He Can Create Custom Textures On His Android Phone Or Does He Have To Do It On His Pc. Thats All He Wants To Know And Thx For Reading This 😀
Lol He Also Doesnt Know How To Add More Textures To The items_opaque.pn
function generateBuilding(){
if(Math.floor(Math.random()*150)<7){ //probability to generate Building in that chunk
cX=curX;
cZ=curZ;
cY=128;
for(var i=128; i>1; i--){
if(cY==i){
if(Level.getTile(cX, cY, cZ)!=0){
cY++;
}else{
cY--;
}
}
}
//start to generate building
Level.setTile(cX, cY, cZ, 50, 0);
//end of generating building
}
}
So Now He Is Saying He Doesnt Know How To Add The Texture To The Folders Like When u Want To Add A Texture To The Game Do You Have To Have The Original MCPE Textures Included With The Other Texture and Last He Says Does It Have To Be Added To The items-opaque.pn or no
Sorry He Asks So Many Questions Hes New To Modding And TexturePack Making Hes a Noob
So My Friend Needs Help With His Mod. But he Doesnt Have An Account So He Asked Me To Post This. Okay So He Doesnt Know How To Generate Builings in the world But He Wants a Code That Generates The Building Without Lag Or Little Lag. Last Thing He Wants To Know If He Can Create Custom Textures On His Android Phone Or Does He Have To Do It On His Pc. Thats All He Wants To Know And Thx For Reading This 😀
Lol He Also Doesnt Know How To Add More Textures To The items_opaque.pn
So Yeah
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYou can create textures on Android with Apps like IsoPix (https://play.google.com/store/apps/details?id=com.nullium.isopix&hl=de).
Generating Buildings is possible, but not easy:
var tick=0;
var curX=0;
var curY=0;
var curZ=0;
var cX=0;
var cY=0;
var cZ=0;
var count=0;
var changeBack=false;
function modTick(){
tick++;
if(tick%100==0){//every 5 seconds the function doTick() is called
doTick();
}
}
function doTick(){
if(Player.getDimension()==DimensionId.NORMAL){ //only generate in the normal dimension, not in the Nether
curX=Math.floor(Player.getX());
curZ=Math.floor(Player.getZ());
for(var i=0; i<16; i++){
if(curX<0){
changeBack=true;
curX=curX*(-1);
}
if(curX%16!=0){
curX--;
}
if(changeBack){
curX=curX*(-1);
}
changeBack=false;
if(curZ<0){
changeBack=true;
curZ=curZ*(-1);
}
if(curZ%16!=0){
curZ--;
}
if(changeBack){
curZ=curZ*(-1);
}
changeBack=false;
}
curX++;
curZ++;
curX=curX+16;
curZ=curZ+16;
curX=curX-16;
curX=curX-16;
curZ=curZ-16;
curZ=curZ-16;
curX=curX+16;
curX=curX+16;
curX=curX+16;
curZ=curZ+16;
curZ=curZ+16;
curZ=curZ+16;
curX=curX-16;
curX=curX-16;
curX=curX-16;
curX=curX-16;
curZ=curZ-16;
curZ=curZ-16;
curZ=curZ-16;
curZ=curZ-16;
curX=curX+16;
curX=curX+16;
curX=curX+16;
curX=curX+16;
curX=curX+16;
curZ=curZ+16;
curZ=curZ+16;
curZ=curZ+16;
curZ=curZ+16;
curZ=curZ+16;
curX=curX-16;
curX=curX-16;
curX=curX-16;
generateBuilding();
curX=curX-16;
generateBuilding();
curX=curX-16;
generateBuilding();
curX=curX-16;
generateBuilding();
curZ=curZ-16;
generateBuilding();
curZ=curZ-16;
generateBuilding();
curZ=curZ-16;
generateBuilding();
curZ=curZ-16;
generateBuilding();
curZ=curZ-16;
generateBuilding();
curZ=curZ-16;
generateBuilding();
curX=curX+16;
generateBuilding();
curX=curX+16;
generateBuilding();
curX=curX+16;
generateBuilding();
curX=curX+16;
generateBuilding();
curX=curX+16;
generateBuilding();
curX=curX+16;
generateBuilding();
}
}
function generateBuilding(){
if(Math.floor(Math.random()*150)<7){ //probability to generate Building in that chunk
cX=curX;
cZ=curZ;
cY=128;
for(var i=128; i>1; i--){
if(cY==i){
if(Level.getTile(cX, cY, cZ)!=0){
cY++;
}else{
cY--;
}
}
}
//start to generate building
Level.setTile(cX, cY, cZ, 50, 0);
//end of generating building
}
}
Ok Thx For The Help
So Now He Is Saying He Doesnt Know How To Add The Texture To The Folders Like When u Want To Add A Texture To The Game Do You Have To Have The Original MCPE Textures Included With The Other Texture and Last He Says Does It Have To Be Added To The items-opaque.pn or no
Sorry He Asks So Many Questions Hes New To Modding And TexturePack Making Hes a Noob
Create a folder and name it anything
Inside it add 'assets'
Inside of assets add 'images'
Inside of images you can add
'items-opaque' for items
'terrain-atlas' for blocks
'armor' for armor
'mob' for mobs
The heck is this for