Hi, im RayZtar and this is a modpe script which adds more swords to MCPE.
How to use:
-Tap a glowstone with a iron sword to get sword crafter
Tap a Obsidian Block to get RayZtar Sword -Tap a Ice block to get Water Sword -Tap Netherbrick to get Fire Sword -Tap TNT to get TNT Sword -Tap Glass Block to get Jump Sword
(You have to tap these blocks with Sword Crafter to get The Swords)
Swords Powers(attacking mobs)
:RayZtar Sword: NO FUNCTION YET
TNT Sword: Explodes 2 tnt where the mob is
Fire Sword: Sets Fire where mob is
Jump Sword: Sets the mob velY to 50
Swords Powers(when you tap a block)
RayZtar Sword: Explodes 10 TNT Where you tap and sets your Y Vel to 10
TNT Sword: Explodes 10 tnt where you tap
Fire Sword: Sets fire near of you
Water sword: Sets water where you tap
Jump Sword: Sets your Y vel to 75.
Those are all swords powers I Havent tested the mod because i dont found my cellphone(LOL) so tell me if works Put any Sword you would like to be in the mod.
ID: 13110
PD:Thanks to
Byteandahalf for tell on a topic how to fix custom items names
Source Code:
//Made by RayZtar
//v0.3
//Thanks to Donalddoesmc for fix a lot of bugs
var i = " ";
ModPe.setItem(500,4,3, i + "RayZtar Sword" + i)
ModPe.setItem(499,4,3, i + "TNT Sword" + i)
ModPe.setItem(498,4,3, i + "Fire Sword" + i)
ModPe.setItem(497,4,3, i + "Water Sword" + i)
ModPE.setItem(496,4,3, i + "Jump Sword" + i)
ModPe.setItem(495,12,6, i + "Sword Crafter" + i)
function useItem(x,y,z,itemId,blockId,side){
if(itemId==267&&blockId==89){
addItemInventory(495,1)
clientMessage("You got Sword Crafter")
}
else if(itemId==495&&blockId==49){
addItemInventory(500,1)
clientMessage("You got RayZtar Sword")
}
else if(itemId==495&&blockId==46){
addItemInventory(499,1)
clientMessage("You got TNT Sword")
}
else if(itemId==495&&blockId==112){
addItemInventory(498,1)
clientMessage("You got Fire Sword")
}
else if(itemId==495==blockId==79){
addItemInventory(497,1)
clientMessage("You got Water Sword")
}
else if(itemId==495&&blockId==20)
addItemInventory(496,1)
clientMessage("You got Jump Sword")
}
function attackHook(attacker,victim){
if(itemId==499){
preventDefault();
explode (Entity.getX(victim), Entity.getY(victim), Entity.getZ(victim), 2);
}
else if(itemId==498){
preventDefault();
Entity.setFireTicks(victim, 20);
}
else if(itemId==496){
preventDefault();
Entity.setVelY(victim,50)
}
function useItem(x,y,z,itemId,blockId,side){
if(itemId==500){
setVelY(getPlayerEnt(),10)
explode(x,y,z,10)
}
else if(itemId==499&&blockId==46){
explode(x,y,z,15)
}
else if(itemId==498){
setTile(x,y+1,z,51)
setTile(x+1,y+1,z,51)
setTile(x-1,y+1,z,51)
setTile(z,y+1,z+1,51)
}
else if(itemId==497){
setTile(x,y,z,8)
}
else if(itemId==496)
setVelY(getPlayerEnt(),5)
}[/background][/size][/font][/color][/b]
[b][color=#333333][font=Verdana, Geneva, Tahoma, sans-serif][size=x-small][background=rgb(232, 239, 244)]}
CHANGELOG
v0.1
Added: RayZtar,TNT,Fire,Water, and Jump Sword
V0.2
Replaced the command /Start by if(itemId==267&&blockId==89): Tap glowstone with a iron sword(Thanks to Donalddoesmc for tell me that the command will not work.
V0.3
Fixed some bugs with fire and tnt sword(thanks to Donalddoesmc )
function procCmd(cmd) {
var cmd = cmd.split(" ");
if (cmd[0] == "Spam") {[/size]
[size=medium]/*[/size]
[size=medium]This is what u need and u can paste this[/size]
[size=medium] if (cmd[0] == "The command") {
your functions you want to use here[/size]
[size=medium]*/
function useItem(x, y, z, itemId, blockId, side) {
if (blockId == 1) {
spawnPigZombie(x, y, z, 245, "mob/zombie.png");
clientMessage(" spawning a Zombie Pigman !");
setTile(x, y, z, 0); // - Missed a comma (,) after 'z' and before '0'. Also you missed a ; at the end of the line
}
And this
} if(cmd[0] == "time" && cmd[1] == "set" && cmd[2] == "0") {
setNightMode(0);
ModPE.setFoodItem(400, 0, 11, 18, " Budder Apple ");
} if(cmd[0] == "Fly") {
Level.setGameMode(1)
} if(cmd[0] == "Herobrine") {
clientMessage(" Who has awaken me ?");
clientMessage(" ~*_Ohhhhhhh_*~");
spawnPigZombie(getPlayerX(), getPlayerY(), getPlayerZ(), 245, "mob/zombie.png");
/*
Donnald Help Me with this
*/
Rollback Post to RevisionRollBack
If i helped you or you like me our my mods / clan Subscribe ! Alot of cool and fun videos !
I will add a download link for it soon, if that is okay RayZtar. Fixed some bugs with the source code that was posted by @RayZtar at the top of this page. If you want, replace it with this (I tested it, then edited the code again [not too much], but it should work):
Hi, im RayZtar and this is a modpe script which adds more swords to MCPE.
How to use:
-Tap a glowstone with a iron sword to get sword crafter
Tap a Obsidian Block to get RayZtar Sword
-Tap a Ice block to get Water Sword
-Tap Netherbrick to get Fire Sword
-Tap TNT to get TNT Sword
-Tap Glass Block to get Jump Sword
(You have to tap these blocks with Sword Crafter to get The Swords)
Swords Powers(attacking mobs)
:RayZtar Sword: NO FUNCTION YET
TNT Sword: Explodes 2 tnt where the mob is
Fire Sword: Sets Fire where mob is
Jump Sword: Sets the mob velY to 50
Swords Powers(when you tap a block)
RayZtar Sword: Explodes 10 TNT Where you tap and sets your Y Vel to 10
TNT Sword: Explodes 10 tnt where you tap
Fire Sword: Sets fire near of you
Water sword: Sets water where you tap
Jump Sword: Sets your Y vel to 75.
Those are all swords powers
I Havent tested the mod because i dont found my cellphone(LOL) so tell me if works
Put any Sword you would like to be in the mod.
ID: 13110
PD:Thanks to
v0.1
Added: RayZtar,TNT,Fire,Water, and Jump Sword
V0.2
Replaced the command /Start by if(itemId==267&&blockId==89): Tap glowstone with a iron sword(Thanks to Donalddoesmc for tell me that the command will not work.
V0.3
Fixed some bugs with fire and tnt sword(thanks to Donalddoesmc )
@CakeArmyShaderGameing Thanks and i edited the post and put the source code
@I_dont_know I will add new swords but i don´t have time because of school i will try to add them the friday if i can
The ' is because when i edit the post the ' transforms to '
It says i + sword name + i because of that http://www.minecraftforum.net/topic/2050485-fix-custom-item-names-in-modpe
I cant create new textures because of school, i dont have time i will try to make the textures on friday
Thanks,i replaced the command by if(itemId==267&&blockId==89) addItemInventory(495,1)
I cant fix the mod beacause i dont find my cellphone so cant test it,can you tell me where the }s are missing??
Bye
var i = " ";
so when he names the item it just shows the item name !
LOL I will fix it thanks
And this
Link to item.png http://imgur.com/ag7IlqT
ModPE.setItem(496, 9,0, “Jump Sword”);
ModPE.setItem(498, 9,1, “Fire Sword”);
ModPE.setItem(499, 9,2, “TNT Sword”);
ModPE.setItem(497, 9,3, “Water Sword”);
I will add a download link for it soon, if that is okay RayZtar. Fixed some bugs with the source code that was posted by @RayZtar at the top of this page. If you want, replace it with this (I tested it, then edited the code again [not too much], but it should work):
//Made by RayZtar
//v0.3
//Thanks to Donalddoesmc for fixing a lot of bugs
var i = " ";
ModPE.setItem(500,4,3, i + "RayZtar Sword" + i)
ModPE.setItem(499,4,3, i + "TNT Sword" + i)
ModPE.setItem(498,4,3, i + "Fire Sword" + i)
ModPE.setItem(497,4,3, i + "Water Sword" + i)
ModPE.setItem(496,4,3, i + "Jump Sword" + i)
ModPE.setItem(495,12,6, i + "Sword Crafter" + i)
function useItem(x,y,z,itemId,blockId,side){
if(itemId==267&&blockId==89){
addItemInventory(495,1)
clientMessage("You got a Sword Crafter!")
}
else if(itemId==495&&blockId==49){
addItemInventory(500,1)
clientMessage("You got a RayZtar Sword!")
}
else if(itemId==495&&blockId==46){
addItemInventory(499,1)
clientMessage("You got a TNT Sword!")
}
else if(itemId==495&&blockId==112){
addItemInventory(498,1)
clientMessage("You got a Fire Sword!")
}
else if(itemId==495==blockId==79){
addItemInventory(497,1)
clientMessage("You got a Water Sword!")
}
else if(itemId==495&&blockId==20)
addItemInventory(496,1)
clientMessage("You got a Jump Sword!")
}
function attackHook(attacker,victim){
if(itemId==499){
preventDefault();
explode (Entity.getX(victim), Entity.getY(victim), Entity.getZ(victim), 2);
}
else if(itemId==498){
preventDefault();
Entity.setFireTicks(victim, 20);
}
else if(itemId==496){
preventDefault();
Entity.setVelY(victim,50)
}
function useItem(x,y,z,itemId,blockId,side){
if(itemId==500){
setVelY(getPlayerEnt(),10)
explode(x,y,z,10)
}
else if(itemId==499&&blockId==46){
explode(x,y,z,15)
}
else if(itemId==498){
setTile(x,y+1,z,51)
setTile(x+1,y+1,z,51)
setTile(x-1,y+1,z,51)
setTile(z,y+1,z+1,51)
}
else if(itemId==497){
setTile(re DVD TV Yukican o,y,z,8 )
}
else if(itemId==496)
setVelY(getPlayerEnt(),5)
}
}