//COPYRIGHT CLAIM NO EDITING
var initialized = false;
var RUBY_ORE_ID = 167;
ModPE.setItem(199, 3, 8, "Ruby");
function selectLevelHook() { //This is called before the first world is loaded
if (!initialized) { //if we have not set up our custom block
Block.defineBlock(RUBY_ORE_ID, "RUBY ORE", [[3, 2]]);
Block.setDestroyTime(RUBY_ORE_ID, 10);
Block.setColor(RUBY_ORE_ID, [0x ff0000] );
Block.setLightLevel(RUBY_ORE_ID, 15);
initialized = true;
}
}
function destroyBlock(x, y, z, side) {
var blockId = getTile(x, y, z);
if (blockId == RUBY_ORE_ID) {
preventDefault();
setTile(x, y, z, 0);
Level.dropItem(x + 0.5, y, z + 0.5, 1, 199, 1, 5); //ruby ore
}
}
New Items:
-Ruby Ingot (RedStone texture)
(1.0)
-Ruby Tools
-Ruby Armour
-Random Spawn in ore
(2.5)
How to get:
-Open inveditor and type 167
-No other alternative lolz
//COPYRIGHT CLAIM NO EDITING
var initialized = false;
var RUBY_ORE_ID = 167;
ModPE.setItem(199, 3, 8, "Ruby");
function selectLevelHook() { //This is called before the first world is loaded
if (!initialized) { //if we have not set up our custom block
Block.defineBlock(RUBY_ORE_ID, "RUBY ORE", [[3, 2]]);
Block.setDestroyTime(RUBY_ORE_ID, 10);
Block.setColor(RUBY_ORE_ID, [0x ff0000] );
Block.setLightLevel(RUBY_ORE_ID, 15);
initialized = true;
}
}
function destroyBlock(x, y, z, side) {
var blockId = getTile(x, y, z);
if (blockId == RUBY_ORE_ID) {
preventDefault();
setTile(x, y, z, 0);
Level.dropItem(x + 0.5, y, z + 0.5, 1, 199, 1, 5); //ruby ore
}
}
New Items:
-Ruby Ingot (RedStone texture)
(1.0)
-Ruby Tools
-Ruby Armour
-Random Spawn in ore
(2.5)
How to get:
-Open inveditor and type 167
-No other alternative lolz
Code
//COPYRIGHT CLAIM NO EDITING
var initialized = false;
var RUBY_ORE_ID = 167;
ModPE.setItem(199, 3, 8, "Ruby");
function selectLevelHook() { //This is called before the first world is loaded
if (!initialized) { //if we have not set up our custom block
Block.defineBlock(RUBY_ORE_ID, "RUBY ORE", [[3, 2]]);
Block.setDestroyTime(RUBY_ORE_ID, 10);
Block.setColor(RUBY_ORE_ID, [0x ff0000] );
Block.setLightLevel(RUBY_ORE_ID, 15);
initialized = true;
}
}
function destroyBlock(x, y, z, side) {
var blockId = getTile(x, y, z);
if (blockId == RUBY_ORE_ID) {
preventDefault();
setTile(x, y, z, 0);
Level.dropItem(x + 0.5, y, z + 0.5, 1, 199, 1, 5); //ruby ore
}
}
New Items: -Ruby Ingot (RedStone texture) (1.0) -Ruby Tools -Ruby Armour -Random Spawn in ore (2.5)
How to get: -Open inveditor and type 167 -No other alternative lolz
function destroyBlock(x, y, z, side)
{
var crack=Math.floor(Math.random()*50)+1;
if(getTile(x, y, z)==1&&crack==1)
{
Level.dropItem(x, y, z, 1, 200, 1, 0);
}
}
function useItem(x, y, z, blockId, itemId, side)
{
if(itemId==200&&blockId==craftingtable&&side==1)
{
addItemInventory(199,1);
addItemInventory(200,-2);
}
}
I think that this would be a cool feature to add... oh! and im gonna make a mod that you get cracked items from stone... Thanks for inspiring me!
Current:
Ruby
Tested:Yes
Author:DarkBlade
Code
New Items:
-Ruby Ingot (RedStone texture)
(1.0)
-Ruby Tools
-Ruby Armour
-Random Spawn in ore
(2.5)
How to get:
-Open inveditor and type 167
-No other alternative lolz
IDS:
-167 Ruby Ore
Download: https://www.dropbox.com/s/zdg6bnhjpgalhic/Ruby.js
ModPE!?
score has to be something/10
i say 10/10 because iiiitttts RUBY
Now, try randomly placing the ruby block in the world (use Math.random() along with setTile; search on the Internet for tutorials)
ModPE!?
RUBY ARMOUR+TOOLS NEEDED TEXTURE
ModPE!?
SUBSCRIBE!!
its already a texture. http://zhuoweizhang.net/mcpetexturenames/
This would be cool.
I think that this would be a cool feature to add... oh! and im gonna make a mod that you get cracked items from stone... Thanks for inspiring me!