I HIGHLY RECOMMEND USING XP bank with this mod.
SERVER DOES NOT HAVE ANY REQUIREMENTS AND HAS NOT BEEN TESTED WITH BUKKIT
Bug List:
In Multiplayer With the client version installed Orbs float around you. Working on a fix, for now just re-connect.
SOURCE CODE RELEASE!
Here is the source code for minecraft 1.1, I am releasing it becasue I will not be Updating this mod anymore. :c
public class BlockRedstoneOre extends Block
{
private boolean glowing;
public BlockRedstoneOre(int i, int j, boolean flag)
{
super(i, j, Material.rock);
if(flag)
{
setTickOnLoad(true);
}
glowing = flag;
}
public int tickRate()
{
return 30;
}
public void onBlockClicked(World world, int i, int j, int k, EntityPlayer entityplayer)
{
func_320_h(world, i, j, k);
super.onBlockClicked(world, i, j, k, entityplayer);
}
public void onEntityWalking(World world, int i, int j, int k, Entity entity)
{
func_320_h(world, i, j, k);
super.onEntityWalking(world, i, j, k, entity);
}
public boolean blockActivated(World world, int i, int j, int k, EntityPlayer entityplayer)
{
func_320_h(world, i, j, k);
return super.blockActivated(world, i, j, k, entityplayer);
}
private void func_320_h(World world, int i, int j, int k)
{
func_319_i(world, i, j, k);
if(blockID == Block.oreRedstone.blockID)
{
world.setBlockWithNotify(i, j, k, Block.oreRedstoneGlowing.blockID);
}
}
public void updateTick(World world, int i, int j, int k, Random random)
{
if(blockID == Block.oreRedstoneGlowing.blockID)
{
world.setBlockWithNotify(i, j, k, Block.oreRedstone.blockID);
}
}
public int idDropped(int i, Random random, int j)
{
return Item.redstone.shiftedIndex;
}
public int func_40198_a(int i, Random random)
{
return quantityDropped(random) + random.nextInt(i + 1);
}
public int quantityDropped(Random random)
{
return 4 + random.nextInt(2);
}
public void randomDisplayTick(World world, int i, int j, int k, Random random)
{
if(glowing)
{
func_319_i(world, i, j, k);
}
}
private void func_319_i(World world, int i, int j, int k)
{
Random random = world.rand;
double d = 0.0625D;
for(int l = 0; l < 6; l++)
{
double d1 = (float)i + random.nextFloat();
double d2 = (float)j + random.nextFloat();
double d3 = (float)k + random.nextFloat();
if(l == 0 && !world.isBlockOpaqueCube(i, j + 1, k))
{
d2 = (double)(j + 1) + d;
}
if(l == 1 && !world.isBlockOpaqueCube(i, j - 1, k))
{
d2 = (double)(j + 0) - d;
}
if(l == 2 && !world.isBlockOpaqueCube(i, j, k + 1))
{
d3 = (double)(k + 1) + d;
}
if(l == 3 && !world.isBlockOpaqueCube(i, j, k - 1))
{
d3 = (double)(k + 0) - d;
}
if(l == 4 && !world.isBlockOpaqueCube(i + 1, j, k))
{
d1 = (double)(i + 1) + d;
}
if(l == 5 && !world.isBlockOpaqueCube(i - 1, j, k))
{
d1 = (double)(i + 0) - d;
}
if(d1 < (double)i || d1 > (double)(i + 1) || d2 < 0.0D || d2 > (double)(j + 1) || d3 < (double)k || d3 > (double)(k + 1))
{
world.spawnParticle("reddust", d1, d2, d3, 0.0D, 0.0D, 0.0D);
}
}
}
public void onBlockDestroyedByPlayer(World world, int i, int j, int k, int l)
{
Random generator = new Random();
int roll = generator.nextInt(99) + 1;
int l1 = generator.nextInt(5) + 1;
if(roll < 50){
world.entityJoinedWorld(new EntityXPOrb(world, i, j, k, l1));
System.out.println("----------");
System.out.println(l1 + " XP GIVEN");
}
}
protected ItemStack func_41049_c_(int i)
{
return new ItemStack(Block.oreRedstone);
}
}
package net.minecraft.src;
import java.util.Random;
// Referenced classes of package net.minecraft.src:
// Block, Material, Item
public class BlockOre extends Block
{
public BlockOre(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random random, int j)
{
if(blockID == Block.oreCoal.blockID)
{
return Item.coal.shiftedIndex;
}
if(blockID == Block.oreDiamond.blockID)
{
return Item.diamond.shiftedIndex;
}
if(blockID == Block.oreLapis.blockID)
{
return Item.dyePowder.shiftedIndex;
} else
{
return blockID;
}
}
public int quantityDropped(Random random)
{
if(blockID == Block.oreLapis.blockID)
{
return 4 + random.nextInt(5);
} else
{
return 1;
}
}
public void onBlockDestroyedByPlayer(World world, int i, int j, int k, int l)
{
Random generator = new Random();
int roll = generator.nextInt(99) + 1;
if(blockID == Block.oreDiamond.blockID && roll < 50){
world.entityJoinedWorld(new EntityXPOrb(world, i, j, k, 10));
System.out.println("----------");
System.out.println("10 XP GIVEN FROM DIAMOND");
System.out.println("----------");
} else{
System.out.println("----------");
System.out.println("0 XP GIVEN");
System.out.println("----------");
}
if(blockID == Block.oreCoal.blockID && roll < 50){
world.entityJoinedWorld(new EntityXPOrb(world, i, j, k, 1));
System.out.println("----------");
System.out.println("1 XP GIVEN FROM COAL");
System.out.println("----------");
} else{
System.out.println("----------");
System.out.println("0 XP GIVEN");
System.out.println("----------");
}
if(blockID == Block.oreLapis.blockID && roll < 50){
world.entityJoinedWorld(new EntityXPOrb(world, i, j, k, 3));
System.out.println("----------");
System.out.println("3 XP GIVEN FROM LAPIS");
System.out.println("----------");
} else{
System.out.println("----------");
System.out.println("0 XP GIVEN");
System.out.println("----------");
}
}
public int func_40198_a(int i, Random random)
{
if(i > 0 && blockID != idDropped(0, random, i))
{
int j = random.nextInt(i + 2) - 1;
if(j < 0)
{
j = 0;
}
return quantityDropped(random) * (j + 1);
} else
{
return quantityDropped(random);
}
}
protected int damageDropped(int i)
{
return blockID != Block.oreLapis.blockID ? 0 : 4;
}
}
package net.minecraft.src;
import java.util.Random;
// Referenced classes of package net.minecraft.src:
// Block, Material
public class BlockStone extends Block
{
public BlockStone(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random random, int j)
{
return Block.cobblestone.blockID;
}
public void onBlockDestroyedByPlayer(World world, int i, int j, int k, int l)
{
Random generator = new Random();
int roll = generator.nextInt(99) + 1;
if(roll < 20){
world.entityJoinedWorld(new EntityXPOrb(world, i, j, k, 1));
world.entityJoinedWorld(new EntityPig(world));
System.out.println("----------");
System.out.println("1 XP GIVEN");
}
/* if(roll < 10){
world.entityJoinedWorld(new EntityXPOrb(world, i, j, k, 3));
System.out.println("2 XP GIVEN");
System.out.println("----------");
} else{
System.out.println("0 XP GIVEN");
System.out.println("----------");
}
*/
}
}
The mod is pretty bland and doesnt add much at the moment, but More content will be added to the mod in later stages.
modloader
forge 1.2.4
modloaderMP 1.0
compressed v4.1
craft guide 1.2.2
more furnaces 1.1.1
wholeTreeAxe 1.0.5
multiPageChest_1.0.6
audio mod
fosil 5.4
glasslight v4
Customizable-Inventory 1.0.0
Somnia v17
ReiMinimap_v2.8
More Stackables
Elevator (v1.9)
HTv1.6.5 compability
MoreCraftables
PowerCraft_v1-5-A2_mc1-0-0
super sponge
(I know there are duplicates)
-----
Install instructions for client:
Open Minecraft.jar and MineXP.zip
Delete META-INF from the minecraft.jar
Drag and drop the files from MineXP.zip to minecraft.jar
Start Minecraft!
Install instructions for server:
Open the minecraft_server.jar
Drag the files from the MineXP archive into the server jar.
DO NOT DELETE META INF THIS IS NEEDED FOR THE SERVER TO RUN
Start the server
-----
Install video(English):
Thanks!
Install video(German):
(Dank!)
Video by ToxicNoob2e:
Thanks!
Currently, It does not use modloader an can not be placed in the "mods" folder. I will have a version that uses ModLoader and can be placed in the mods folder.
Banner Here made by minami26(Thanks!):
New version out that supports redstone ore and Lapis ore! Mining lapis Gives a chance of 3 XP and mining redstone gives a chance of 1-5 XP. Download link is in the main post.
Thanks for downloading and being supportive. Also thanks for the advice on how to make the mod better.
hey, continue this.
I like mods that are simple but can do the difference.
For more features.
Just add XP for all other interactions with blocks.
Examples:
Farming Wheat = 1-2 XP
Terrain Blocks = Chance for XP like 1/8 chance for 1 XP
Getting Wool = 1 XP
...etc
Maybe further versions could include
Crafting items = XP
and don't go overboard by putting XP in each block you place. It can be tad annoying hearing that jingle sound. :biggrin.gif:
XP can be obtained from Everything just like most RPG games.
Thanks for the suggestions. I will add them to the list. Another Source of XP i was planning to add was Brewing. As in you brew a potion and there's a chance you will get XP. Sound good?
Thanks for the suggestions. I will add them to the list. Another Source of XP i was planning to add was Brewing. As in you brew a potion and there's a chance you will get XP. Sound good?
Yeah man. Achievements could use some touching up by giving XP when you complete them you know.
How about making Enchanments too. hahaha.. more Work for you man.
Yeah man. Achievements could use some touching up by giving XP when you complete them you know.
How about making Enchanments too. hahaha.. more Work for you man.
I would not have thought of that(the achievements)! Ill get on adding achievement XP of the features and try and pump out the next release tomorrow! The enchantments part doesnt make much sense to me, you are spending XP abut getting a compensation back. Ill think about it.
Ha its ok. Im working on XP rewards for achievements now. Its going well. It will be calculated by area in tree, if its special and a custom difficulty that will reward a bonus.
Hey! This is mike1992123 from youtube. Just posting to say Im downloading your mod and checking it out!
Thanks! I love it when someone enjoys work that I have done. I am working on a newer version now. It wont be out for a day or two. After I release it, i will work on modloader support and not editing base classes.
Thanks! I love it when someone enjoys work that I have done. I am working on a newer version now. It wont be out for a day or two. After I release it, i will work on modloader support and not editing base classes.
You're welcome.. :cool.gif:
I'll start using it with my other mods when you can get it to work with modloader.
you should make that a priority once the mods starts to have more functionality..
You're welcome.. :cool.gif:
I'll start using it with my other mods when you can get it to work with modloader.
you should make that a priority once the mods starts to have more functionality..
Alright, Ill have a version out in a day or two with modloader support.
mbdrocks is now keeping this mod updated! Here is a link:
http://www.minecraftforum.net/topic/1151081-miningexp/
Hello, i am Decman1717 and Im realeasing a quick mod I made. The mod is called MineXP and allows XP to be dropped from mining.
This is a video of the outdated version(0.5). A new video will come version 1.0
---Current Client Version---
ZIP: http://adf.ly/5bAgZ
RAR: http://adf.ly/5bAgX
---Current Server version---
ZIP: http://adf.ly/5bAlx
RAR: http://adf.ly/5bAkL
I HIGHLY RECOMMEND USING XP bank with this mod.
SERVER DOES NOT HAVE ANY REQUIREMENTS AND HAS NOT BEEN TESTED WITH BUKKIT
Bug List:
In Multiplayer With the client version installed Orbs float around you. Working on a fix, for now just re-connect.
SOURCE CODE RELEASE!
Here is the source code for minecraft 1.1, I am releasing it becasue I will not be Updating this mod anymore. :c
The mod is pretty bland and doesnt add much at the moment, but More content will be added to the mod in later stages.
List of(some) compatible mods(Thanks minami26):
Modloader
ModloaderMP
PlayerAPI
GuiAPI
CustomMobSpawner
Forge
AudioMod
Mo'Creatures
SensibleEnchanting
EnchantableBows
SmartMoving
ThaumCraft
RailCraft
Heres some more:
modloader
forge 1.2.4
modloaderMP 1.0
compressed v4.1
craft guide 1.2.2
more furnaces 1.1.1
wholeTreeAxe 1.0.5
multiPageChest_1.0.6
audio mod
fosil 5.4
glasslight v4
Customizable-Inventory 1.0.0
Somnia v17
ReiMinimap_v2.8
More Stackables
Elevator (v1.9)
HTv1.6.5 compability
MoreCraftables
PowerCraft_v1-5-A2_mc1-0-0
super sponge
(I know there are duplicates)
-----
Install instructions for client:
Open Minecraft.jar and MineXP.zip
Delete META-INF from the minecraft.jar
Drag and drop the files from MineXP.zip to minecraft.jar
Start Minecraft!
Install instructions for server:
Open the minecraft_server.jar
Drag the files from the MineXP archive into the server jar.
DO NOT DELETE META INF THIS IS NEEDED FOR THE SERVER TO RUN
Start the server
-----
Install video(English):
Thanks!
Install video(German):
(Dank!)
Video by ToxicNoob2e:
Thanks!
Currently, It does not use modloader an can not be placed in the "mods" folder. I will have a version that uses ModLoader and can be placed in the mods folder.
Banner Here made by minami26(Thanks!):
Leave suggestions and feed back please!
Copyrights:
I(Decman1717) Give mbdrocks full permission over the mod and the ability to post it under his(mbdrock's) links.
Could I have some links, I haven't seen any of them.
http://www.onrpg.com/boards/171464.htmlthere are more just google it that was the first one that popped up
Thanks for downloading and being supportive. Also thanks for the advice on how to make the mod better.
I like mods that are simple but can do the difference.
For more features.
Just add XP for all other interactions with blocks.
Examples:
Farming Wheat = 1-2 XP
Terrain Blocks = Chance for XP like 1/8 chance for 1 XP
Getting Wool = 1 XP
...etc
Maybe further versions could include
Crafting items = XP
and don't go overboard by putting XP in each block you place. It can be tad annoying hearing that jingle sound. :biggrin.gif:
XP can be obtained from Everything just like most RPG games.
Thanks for the suggestions. I will add them to the list. Another Source of XP i was planning to add was Brewing. As in you brew a potion and there's a chance you will get XP. Sound good?
Yeah man. Achievements could use some touching up by giving XP when you complete them you know.
How about making Enchanments too. hahaha.. more Work for you man.
EDIT: NINJJJAAA..
I would not have thought of that(the achievements)! Ill get on adding achievement XP of the features and try and pump out the next release tomorrow! The enchantments part doesnt make much sense to me, you are spending XP abut getting a compensation back. Ill think about it.
oh wait, Thats right Silly me.
Ha its ok. Im working on XP rewards for achievements now. Its going well. It will be calculated by area in tree, if its special and a custom difficulty that will reward a bonus.
Thanks! I love it when someone enjoys work that I have done. I am working on a newer version now. It wont be out for a day or two. After I release it, i will work on modloader support and not editing base classes.
Sweet! Btw, what changes did you make?
In v0.7 Redstone drops XP. In the next version(0.9) Im adding achievement XP and farming XP.
Dude I love the banner. I added it to the front post. Thanks!
I'll start using it with my other mods when you can get it to work with modloader.
you should make that a priority once the mods starts to have more functionality..
Alright, Ill have a version out in a day or two with modloader support.