Hello guys, MimecraftGermanModBoy2003 is here with my first mod!
What this mod does: The name say it!
Tested: Yes!
Tipp: Copy it and save as WhateverYouWill.js
Mod:
function useItem(x, y, z, itemId, blockId, side)
{
if(itemId==280&&blockId==1)
{
Player.addItemInventory(264,64);
Player.addItemInventory(56,64);
Player.addItemInventory(57,64);
Player.addItemInventory(276,64);
Player.addItemInventory(277,64);
Player.addItemInventory(278,64);
Player.addItemInventory(279,64);
Player.addItemInventory(293,64);
Player.addItemInventory(310,64);
Player.addItemInventory(311,64);
Player.addItemInventory(312,64);
Player.addItemInventory(313,64);
}
}
function modTick()
{
}
Instead of being given armour in their inventory, they should be given armour to wear now.
Player.setArmorSlot(0, ***); // Computer scientists always start counting at zero. So the first armour slot which is a helmet would be represented as zero.
Please don't tell other forum members what they can and can't post, unless it's something that breaks the forum rules (in which case, see the rules section regarding mini-modding). There is no minimum complexity required for a mod.
Hello guys, MimecraftGermanModBoy2003 is here with my first mod!
What this mod does: The name say it!
Tested: Yes!
Tipp: Copy it and save as WhateverYouWill.js
Mod:
function useItem(x, y, z, itemId, blockId, side)
{
if(itemId==280&&blockId==1)
{
Player.addItemInventory(264,64);
Player.addItemInventory(56,64);
Player.addItemInventory(57,64);
Player.addItemInventory(276,64);
Player.addItemInventory(277,64);
Player.addItemInventory(278,64);
Player.addItemInventory(279,64);
Player.addItemInventory(293,64);
Player.addItemInventory(310,64);
Player.addItemInventory(311,64);
Player.addItemInventory(312,64);
Player.addItemInventory(313,64);
}
}
function modTick()
{
}
Special thanks to: TreeBl
Pls klick on the green button below →→→→→→→→→→→→→
Also, why did you use
Player.addItemInventory
When you can just use
addItemInventory
THANKS for the Tipp! Your ModPack is really really good but it isn't working for 0.8.0
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
-
View User Profile
-
View Posts
-
Send Message
Retired StaffThe golden age: it's not the game, it's you ⋆ Why Minecraft should not be harder ⋆ Spelling hints