Is there anyway to make a Minecart Camera Mod whenever im in a minecart and it turns I have to move the Cam back in front. Wondering if maybe a mod can be made that has like a Center button and when pushed it centers the view, also maybe a Lock action to lock the view and unlock. And Possibly have the Center mod for boats to?
You would have to create an entity follow the player, and set the players view to the entity.
Maybe looks something like this?:
var cam;
function setCam() {
cam = Entity.spawnMob( x, y, z, EntityType.BAT ); //these can be changed to whatever you want
ModPE.setCamera( cam );
}
function modTick() {
if ( cam ) Entity.setRot( cam, 0.0, 0.0 ); //use math to make it look at the player
}
More would be involved but I believe with a little bit of work this could be a thing.
Is there anyway to make a Minecart Camera Mod whenever im in a minecart and it turns I have to move the Cam back in front. Wondering if maybe a mod can be made that has like a Center button and when pushed it centers the view, also maybe a Lock action to lock the view and unlock. And Possibly have the Center mod for boats to?
You would have to create an entity follow the player, and set the players view to the entity.
Maybe looks something like this?:
var cam; function setCam() { cam = Entity.spawnMob( x, y, z, EntityType.BAT ); //these can be changed to whatever you want ModPE.setCamera( cam ); } function modTick() { if ( cam ) Entity.setRot( cam, 0.0, 0.0 ); //use math to make it look at the player }More would be involved but I believe with a little bit of work this could be a thing.
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
Thanks for the reply and its great that it could be possible, I just know nothing about coding. Would you know anyone willing to do a mod like this?