Hello, my name is GoldenApple123 and here are my mods!
these mods might not work. PM me if you know how to do the part of the mod that I messed up)
Mods:
Super sword
UPDATE: when you tab the red mushroom on the ground you get the super sword potatos.
This mod will add a sword to your game. It's called super sword. How to use:
Get a red mushroom and tap it on the ground, you get the super sword. Tap super sword on the ground and you get suited for battle (it's a suprise what you get) the super sword does not yet do 1 hit kills, as I know how to do (thanks to kyurem838) but I am trying to implement in code but I do not yet know how to add new lines of code to code.
Download: https://dl.dropboxus...C2S3veo5JFGb_ow
Bacon on a stick
This mod adds bacon on a stick. To obtain tap raw pork on the ground. Tap the bacon on a stick on the ground to get dirt (future plan to get dirty bacon on a stick instead of dirt)
Put this code into blockluancher to use:
ModPE.setFoodItem(451, "stick", 0, "Bacon on a stick"); //create the new item
function useItem (x, y, z,itemId, blockId, side) //useItem hook
{
if(itemId == 319)//if your holding bacon and tap the ground
{
addItemInvetory(451, 1); //add one Bacon on a stick to your inventory ( so you can gain/obtain the item)
}
else if(itemId == 451)//if the item you tap on the ground is bacon on a stick
{
addItemInventory(3,1); //add one dirt to your inventory, future plan to add dirty ham
}
}
Item ID's
Super sword: 451
Bacon on a stick: 451
If this does not 1 hit kill all mobs please PM me telling me how to do so.
CREDITS:
Hexdro (main start with coding)
you23456789 (making me work on the mod)
Kyurem838 (helping me with code)
SamonLovesMC (making me work on the mod)
MattDaveMatt (helping me with code)
thanks to everybody who has done this!
also, if you want to join a simple but really fun team, click on this link!
V 1.0
First release
=========
V 1.1
Makes the mod work
===================
V 1.2
When you tap the ground with the super sword you get some stuff that gets you ready for battle!
===========================================================================
V 1.3 when you tap a red mushroom on the ground you get the super sword
==========================================================
What do you mean?
And I want the new sword to do 100 damage.
hard to explain but the ModPEsetItem just creates a new item with a texture and a new id.
Besides that it does nothing.
There are other functions called
attackHook in which you can set what happens when you hit a mob with your new item.
deathHook in which you can set what happens when a mob dies.
useItem in which you can set what happens when you tap anywhere with your new item.
example of code:
ModPE.setItem(451, "slimeball", 0, "Hex's Sword"); //create the new item
function useItem (x, y, z,itemId, blockId, side) //useItem hook
{
if(itemId == 0)//if your holding nothing and tap the ground
{
addItemInvetory(451, 1); //add one hex's sword to your inventory ( so you can gain/obtain the item)
}
else if(itemId == 451)//if the item you tap on the ground is Hex's Sword
{
addItemInventory(265,1); add one diamond to your inventory
}
}
I used to develop mods, I started modding before modpe and blocklauncher was even a thing. I have retired from the forums. I will no longer be active as of February 18 2015. I will miss my forum friends :(.
function useItem(x,y,x,itemId,blockId,side)
{
if(itemId==diamond&&itemId==craftingtable&&side==1)//if a diamond on a crafting table top
{
addItemInventory(diamond,2);
clientMessage("You now have a SUPER sword!");
addItemInventory(customSword,1);
}
}
The parameters for ModPE.setItem are ID, textureName, additionalTextures, and itemName. You can find the textureName and additionalTextures in the items.meta. The ID for the Super Sword is NOT 187, but 457. And the huge number for the additionalTexture parameter won't do anything. Here is the correct code:
Sorry about how I typed it, but the enter button on my Android doesn't work properly on the Minecraft Forums. And the reason I used the ModPE.setItem() with the newLevel() hook is because unless youwere in the world while enabling the script, it would crash when you would try to obtain the item (I once had a bad experience with this). When the victim is attacked, it just kills it, but if you wanted it to do a specific amount of damage, use Entity.setHealth(victim, Entity.getHealth(victim) - amount).
Ya... my keyboard wont work. I have a samsung galaxy tablet 3. And thanks for the advice!
these mods might not work. PM me if you know how to do the part of the mod that I messed up)
Mods:
Super sword
UPDATE: when you tab the red mushroom on the ground you get the super sword potatos.
This mod will add a sword to your game. It's called super sword. How to use:
Get a red mushroom and tap it on the ground, you get the super sword. Tap super sword on the ground and you get suited for battle (it's a suprise what you get) the super sword does not yet do 1 hit kills, as I know how to do (thanks to kyurem838) but I am trying to implement in code but I do not yet know how to add new lines of code to code.
Download:
https://dl.dropboxus...C2S3veo5JFGb_ow
This mod adds bacon on a stick. To obtain tap raw pork on the ground. Tap the bacon on a stick on the ground to get dirt (future plan to get dirty bacon on a stick instead of dirt)
Put this code into blockluancher to use:
ModPE.setFoodItem(451, "stick", 0, "Bacon on a stick"); //create the new item
function useItem (x, y, z,itemId, blockId, side) //useItem hook
{
if(itemId == 319)//if your holding bacon and tap the ground
{
addItemInvetory(451, 1); //add one Bacon on a stick to your inventory ( so you can gain/obtain the item)
}
else if(itemId == 451)//if the item you tap on the ground is bacon on a stick
{
addItemInventory(3,1); //add one dirt to your inventory, future plan to add dirty ham
}
}
Super sword: 451
Bacon on a stick: 451
If this does not 1 hit kill all mobs please PM me telling me how to do so.
CREDITS:
Hexdro (main start with coding)
you23456789 (making me work on the mod)
Kyurem838 (helping me with code)
SamonLovesMC (making me work on the mod)
MattDaveMatt (helping me with code)
thanks to everybody who has done this!
also, if you want to join a simple but really fun team, click on this link!
http://www.minecraft...in-at-any-time/
Super sword change log:
Bacon on a stick Change log:
yet! Link: http://www.minecraft...in-at-any-time/
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumattackHook()
{
}
and code what it will do when it hits something, and you can set the damage in the hook :L
Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
And I want the new sword to do 100 damage.
yet! Link: http://www.minecraft...in-at-any-time/
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumyou do
helpful hexdro
Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
Do
[spoiler]
Blammaama some stuff here
[Slash spoiler]
Lol
yet! Link: http://www.minecraft...in-at-any-time/
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumBesides that it does nothing.
There are other functions called
attackHook in which you can set what happens when you hit a mob with your new item.
deathHook in which you can set what happens when a mob dies.
useItem in which you can set what happens when you tap anywhere with your new item.
example of code:
ModPE.setItem(451, "slimeball", 0, "Hex's Sword"); //create the new item function useItem (x, y, z,itemId, blockId, side) //useItem hook { if(itemId == 0)//if your holding nothing and tap the ground { addItemInvetory(451, 1); //add one hex's sword to your inventory ( so you can gain/obtain the item) } else if(itemId == 451)//if the item you tap on the ground is Hex's Sword { addItemInventory(265,1); add one diamond to your inventory } }Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumtry this:
take it out of the code section and you get:
write stuff here
Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
Thanks!
function attackHook(attacker, victim)
{
if(getCarriedItem==/customSwordId\)
{
Entity.setHealth(victim, Entity.getHealth(victim)-1000);
}
}
Hope this helps!
Use:
function useItem(x,y,x,itemId,blockId,side)
{
if(itemId==diamond&&itemId==craftingtable&&side==1)//if a diamond on a crafting table top
{
addItemInventory(diamond,2);
clientMessage("You now have a SUPER sword!");
addItemInventory(customSword,1);
}
}
Replace all the names with id's
yet! Link: http://www.minecraft...in-at-any-time/
Thank you!
Yes I will, thanks to the people that take there time helping me and making me work on this mod more.
Ya... my keyboard wont work. I have a samsung galaxy tablet 3. And thanks for the advice!
yet! Link: http://www.minecraft...in-at-any-time/
yet! Link: http://www.minecraft...in-at-any-time/
yet! Link: http://www.minecraft...in-at-any-time/