Hey, everyone! My name is Sora, and I am a mod developer for Minecraft! I have gone through the basics of creating an api for cameras called CameraAPI found HERE.
The API adds the ability to create screenshots, sets an output for the screenshots, as well as being able to grayscale, increase/decrease brightness of, and overlay an infinite number of color filters over the images.
The reason I have created this API was so that I could create a newer, better CameraCraft, but I've found that I am too busy to create the mod myself.
As such, I would like to request that someone would create one!
Leave a post below if you would like to, as well as some possible credentials (Created Mods), so that we may, in conjunction, create a cool, new CameraCraft!
Adds a simple API that allows programmers to add the ability to take screenshots with their mods. Modders can now add filters using different combinations of color at different brightnesses and transparencies!
THE API IS COMPLETE, SO I'LL ONLY BE UPDATING IT AS NEW FORGE VERSION ARRIVE
Be sure to add CameraAPI.jar to the External Jars in your project and DO NOT ADD 'CameraAPI.jar' TO YOUR MODS FOLDER. Bad things will happen if you do! Also, be wary of using too many laggy filters, as this could cause the screenshot saver to bug out and pick up your desktop.
@EventHandler
public void preInit(FMLPreInitializationEvent event){
MinecraftForge.EVENT_BUS.register(this);
//You could also use a tick handler to bind your key.
File directory = new File(//Your//Directory//Screenshots);
if(!directory.exists()){
directory.mkdirs();
}
FrameWriter.setOutput(directory);
}
@ForgeSubscribe
public void ScreenshotListener(LivingUpdateEvent event){
if(Minecraft.getMinecraft().thePlayer != null && Minecraft.getMinecraft().currentScreen == null){
EntityPlayer thePlayer = Minecraft.getMinecraft().thePlayer;
if(thePlayer.isSneaking() && Keyboard.isKeyDown(Keyboard.KEY_P)){
BufferedImage image = CameraHelper.takeScreenShot();
Frame frame = Frame.getFrameFromBufferedImage(image);
//Filter.overlayFrameFromColor(frame, color, transparency);
//Filter.setBrightness(frame, brightness);
FrameWriter.saveFrameAsImage(frame);
}
}
}
Screenshots
Slight Yellow/Blue Filter With Increased Brightness
Slight Cyan/Orange Filter With Increased Brightness
Version 1.2 now has Filters!
In the next version, I plan on adding the ability for modders to add their own filters!
And, last but not least, I have posted my source code, allowing modders to get a better understanding of how everything works!
Adds a simple API that allows programmers to add the ability to take screenshots with their mods. Modders can now add filters using different combinations of color at different brightnesses and transparencies!
THE API IS COMPLETE, SO I'M MOVING OVER TO THE MODS SECTION FOR FUTURE UPDATES
Be sure to add CameraAPI.jar to the External Jars in your project and DO NOT ADD 'CameraAPI.jar' TO YOUR MODS FOLDER. Bad things will happen if you do! Also, be wary of using too many laggy filters, as this could cause the screenshot saver to bug out and pick up your desktop.
@EventHandler
public void preInit(FMLPreInitializationEvent event){
MinecraftForge.EVENT_BUS.register(this);
//You could also use a tick handler to bind your key.
File directory = new File(//Your//Directory//Screenshots);
if(!directory.exists()){
directory.mkdirs();
}
FrameWriter.setOutput(directory);
}
@ForgeSubscribe
public void ScreenshotListener(LivingUpdateEvent event){
if(Minecraft.getMinecraft().thePlayer != null && Minecraft.getMinecraft().currentScreen == null){
EntityPlayer thePlayer = Minecraft.getMinecraft().thePlayer;
if(thePlayer.isSneaking() && Keyboard.isKeyDown(Keyboard.KEY_P)){
BufferedImage image = CameraHelper.takeScreenShot();
Frame frame = Frame.getFrameFromBufferedImage(image);
//Filter.overlayFrameFromColor(frame, color, transparency);
//Filter.setBrightness(frame, brightness);
FrameWriter.saveFrameAsImage(frame);
}
}
}
Screenshots
Slight Yellow/Blue Filter With Increased Brightness
Slight Cyan/Orange Filter With Increased Brightness
Magic Skills would be good to add. Also, I think Mark, Recall, and Levitate spells would be useful as it's an Elder Scrolls Mod and those are the three spells I miss most from Morrowind.
Alright, sounds good, I'll be adding mark and recall in the magic update
IT IS RECOMMENDED TO CREATE A NEW WORLD WITH EVERY NEW UPDATE
ANY MOD SPOTLIGHTS AND SUCH WOULD BE APPRECIATED
Elder RPG 2 is all new and adds loads of new features, such as: skills, a bleeding effect on mobs, and even more! If you want to have fun with the mod, just install it and join any Singleplayer world, you don't need to create a new world!
Please Note: I really need some texturers to create the overlays for spells (and in the future, shouts), as I don't really think my texturing skills are very good. If you want to apply, just pm me.
SKILLS
Athletics: Gain xp as you run, the formula requires you to run a little more each time to level up. Benefits include being able to run faster as you level up.
Acrobatics: Gain xp as you jump, however, sprint-jumping does not raise xp. Benfits include being able to jump higher as you level up. Sneak-jump to be able to jump at your maximum height.
Swords: Gain xp as you hit mobs with a sword, the higher your level is, the longer the bleed effect on mobs. Benefits include a bleed effect that causes damage to mobs when you hit them.
Archery: Gain xp as you hit mobs with arrows from your bow, the higher your level is, the more damage you do to mobs. Benefits include more damage to mobs.
SPELLS
TO USE SPELLS, SNEAK + PRESS M. TO SWITCH BETWEEN SPELLS, CLICK THE CURRENT SPELL BUTTON UNDER THE MAGIC TAB. POISON & PARALYZE IS NOW USED BY SNEAK + RIGHT-CLICKING THE MOB YOU WISH TO AFFECT.
Healing: Gives you a healing effect for five seconds.
Poison: Gives a poisonous effect to the affected mob (will bring them down to 1/2 heart).
Detect Life: Gives a small trail to the living (MAY CAUSE LAG)
Detect Dead: Gives a small trail to the dead (MAY CAUSE LAG)
Paralyze: Gives a paralyzation effect to the affected mob.
Unlike the old Elder RPG 2, this time, it's no longer editing any vanilla classes, so it should be compatible with most any other mod!
If you like the mod and want to leave feedback, I would really appreciate it! Also, if you could leave any bugs you find with the mod, just let me know! Note: Athletics xp resets on leaving your world. This is done with a purpose, so do not report it.
IGN: SoraRaion Age (+15): 15 Skype (is not neded but is more easy to chat, also i dont have mic so if you dont have doasent matter) : funindamines Why you wanna join: I love small servers, and being private is a bonus! How much time have you been playing minecraft: Since 1.2 beta what you like about minecraft: The amount of creativity you can put into your builds & redstone
0
0
The API adds the ability to create screenshots, sets an output for the screenshots, as well as being able to grayscale, increase/decrease brightness of, and overlay an infinite number of color filters over the images.
The reason I have created this API was so that I could create a newer, better CameraCraft, but I've found that I am too busy to create the mod myself.
As such, I would like to request that someone would create one!
Leave a post below if you would like to, as well as some possible credentials (Created Mods), so that we may, in conjunction, create a cool, new CameraCraft!
- SoraRaion, Minecraft Content Creator.
1
0
In the next version, I plan on adding the ability for modders to add their own filters!
And, last but not least, I have posted my source code, allowing modders to get a better understanding of how everything works!
0
0
Alright, sounds good, I'll be adding mark and recall in the magic update
0
0
Thank you!
0
Mining, excavation, etc.
0
~ added archery skill
~ added detect dead/living
~ fixed minor bugs
~ changed menu system
~ corrected skill formulas
~ added overlay effects for spells
0
0
0
0
Age (+15): 15
Skype (is not neded but is more easy to chat, also i dont have mic so if you dont have doasent matter) : funindamines
Why you wanna join: I love small servers, and being private is a bonus!
How much time have you been playing minecraft: Since 1.2 beta
what you like about minecraft: The amount of creativity you can put into your builds & redstone
0