The Meaning of Life, the Universe, and Everything.
Join Date:
10/13/2014
Posts:
175
Location:
1 Mine St, Minecraftia
Minecraft:
Andr3w246
Xbox:
Andr3w246
PSN:
None
Member Details
I'm afraid not.
The diamond swords would have to be different damages to work.
This is the only known way to change the item name:
function modTick(){
//Get carried item id and damage
var item= Player.getCarriedItem()
var damage= Player.getCarriedItemData()
If(item==[item id]){
//Add more damages for more
If(damage==0){
ModPE.editLang("item.item name.???", "New Name");
//Forgot end part of this text field ^ ^ ^
}
}
}
Rollback Post to RevisionRollBack
Seeing this reference here... It fills you with determination!
"Knowlage is Power!"- School House Rock "Codeing is the best power in the world!"- Me
Have fun and code on!
Rocket Science: -Mg=(M-R*t)a+R*t(Ve-g)
The diamond swords would have to be different damages to work.
This is the only known way to change the item name:
function modTick(){
//Get carried item id and damage
var item= Player.getCarriedItem()
var damage= Player.getCarriedItemData()
If(item==[item id]){
//Add more damages for more
If(damage==0){
ModPE.editLang("item.item name.???", "New Name");
//Forgot end part of this text field ^ ^ ^
}
}
}
This is right but it will eventually be too much work, I suggest this
function modTick(){
var orginName = "tile.BlockName.name";
var item = Player.getCarriedItem();
var dat = Player.getCarriedItemData();
if(item == YourItemID){
switch(dat){
case 0:
ModPE.langEdit(originName, " New Block Name");
break;
case 1:
ModPE.langEdit(originName, "Another Block Name!);
break;
}
}
}
Rollback Post to RevisionRollBack
The heck is this for
To post a comment, please login or register a new account.
I'm currently working on some mods
But, im can't test the mods because im asus user and i dont have tester lol
Ok lets go my question
My Question : How to change the player carried item name ?
Example :
They have two diamond sword in inventory
and the carry one. then i want change the name to be "Diamond Sword (1)" without change the not carried diamond sword
Is that possible to use
??
I'm going to say I have no clue if it's possible yet.
I don't think that function exists yet, but correct me if I'm wrong. If it did exist, wouldn't it be better to setup a variable for the carried item?
I'm afraid not.
The diamond swords would have to be different damages to work.
This is the only known way to change the item name:
function modTick(){ //Get carried item id and damage var item= Player.getCarriedItem() var damage= Player.getCarriedItemData() If(item==[item id]){ //Add more damages for more If(damage==0){ ModPE.editLang("item.item name.???", "New Name"); //Forgot end part of this text field ^ ^ ^ } } }Seeing this reference here... It fills you with determination!
"Knowlage is Power!"- School House Rock
"Codeing is the best power in the world!"- Me
Have fun and code on!
Rocket Science: -Mg=(M-R*t)a+R*t(Ve-g)
This is right but it will eventually be too much work, I suggest this
function modTick(){ var orginName = "tile.BlockName.name"; var item = Player.getCarriedItem(); var dat = Player.getCarriedItemData(); if(item == YourItemID){ switch(dat){ case 0: ModPE.langEdit(originName, " New Block Name"); break; case 1: ModPE.langEdit(originName, "Another Block Name!); break; } } }The heck is this for