This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Im working on modifying a NukeTown map for my friend and I to play on together. I want to make it so that an object (in this case, a knife. (new:iron_dagger)) will give the player a strength boost if they hold it.
For ModPE:
First you gotta check if the player hold the knife.
Im working on modifying a NukeTown map for my friend and I to play on together. I want to make it so that an object (in this case, a knife. (new:iron_dagger)) will give the player a strength boost if they hold it.
For ModPE:
First you gotta check if the player hold the knife.
function modTick(){
if(Player.getCarriedItem() ==idOfYourKnife){
HERE'S YOUR CODE
}
}
Check this https://duggum.github.io/modpe-api/Entity.html#.addEffect
Hope I help you ! Feel free to ask questions