I'm at my dads house and he doesn't have good enough internet to use on the computer (if that makes sense) so I did it on mobile. I'll fix once I get home tomorrow.
Note: This is my first mod. If you notice any bugs tell me and I will try to fix them
Credit goes to (I hope these name are correct):
Dzaima
Connor4898
500 Internal Server Error
mcpemodder
Ethanol_Gaming
Arjay07
Anybody who helped me. Sorry if I didnt put you. The list was kind of long.
This mod adds new items as well as a boss. More bosses will be added soon.
Type /help ingame. It will show you a list of commands.
Anyways, here is the mod.
Be sure to read the file that says README! (obviously)
This is my first map I made. If there is any bugs, please report them here and I will try to fix them immediately. Right now I am working on a shop, Which will allow you to get sword upgrades, armor, and food. You will also be able to exchange stuff.
I am new to the forums and don't know how to do snapshots, so if you want to see the map, you are going to have to download it.
ModPE.setItem(407, 6, 6, "New Item"); // this adds a new item (id, x, y, "name");
ModPE.setFoodItem (408, 6, 7, 5, "New Food"); //this adds a new food, (id, x, y, health gained, "name");
//the x and y, is the coordinates on the texture.png every single 1 coordinate is 16 pixels.
function useItem (x, y, z,itemId, blockId, side)//useItem Code goes here
{
if(itemId == 280)//If the item used is a stick
{
addItemInventory(407, 1); //add the item into you inventory
addItemInventory(408, 1); //add the new food into your inventory
clientMessage("Gained Custom Items!"); //client message sent when you tap a stick anywhere (when you gain new items)
}
}
Here +1 If i helped
Basically it is possible, the code above shows you how to add a new Item, and a new food item
Use it if you want.
Thanks you helped me a lot. But can you give me a example on changing the damage.
function attackHook(attacker, victim) {
if (getCarriedItem() == 318) { //flint
preventDefault(); //cancel the normal attack damage
// if you want to just add damage, you
// might not need to cancel the existing damage.
Entity.setHealth(victim, Entity.getHealth(victim) - 10); //5 hearts
clientMessage("You sliced your victim open with a piece of flint");
}
}
2
The mod can be downloaded here.
1
I made the website using weebly. You can google it if you want. It's really easy to use.
1
1
AdventureCraft is a mod made by 9cookies.
Do not distribute without permission.
Note: This is my first mod. If you notice any bugs tell me and I will try to fix them
Credit goes to (I hope these name are correct):
Dzaima
Connor4898
500 Internal Server Error
mcpemodder
Ethanol_Gaming
Arjay07
Anybody who helped me. Sorry if I didnt put you. The list was kind of long.
This mod adds new items as well as a boss. More bosses will be added soon.
Be sure to read the file that says README! (obviously)
https://db.tt/0MniUw7O
To spawn Desaton, tap a sand block with the Desaton Summoner in hand.
1
2
I am new to the forums and don't know how to do snapshots, so if you want to see the map, you are going to have to download it.
Link: http://goo.gl/HEDxQn
If you like it, please leave a comment