The title says it all how do we customize mob droppings?
Rollback Post to RevisionRollBack
Make sure you follow me on twitter! @DarkDiaMiner IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
Inside deathHook:
use the function Level.dropItem(); <--- enter the parameters. I think.
Can you post a example script for me?
Rollback Post to RevisionRollBack
Make sure you follow me on twitter! @DarkDiaMiner IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
function deathHook(murderer, victim){
if(Entity.getEntityTypeId(victim) == 13){//If victim is a sheep
Level.dropItem(Entity.getX(victim), Entity.getY(victim), Entity.getZ(victim), 0, 280, 1);//Drop a stick
}
}
function deathHook(murderer, victim){
if(Entity.getEntityTypeId(victim) == 13){//If victim is a sheep
Level.dropItem(Entity.getX(victim), Entity.getY(victim), Entity.getZ(victim), 0, 280, 1);//Drop a stick
}
}
Where do we get the mob id's?
Rollback Post to RevisionRollBack
Make sure you follow me on twitter! @DarkDiaMiner IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
And how do we detect if the custom mob we made using modscrpit is dead ?
Ya thats was i wanted to ask too.
Rollback Post to RevisionRollBack
Make sure you follow me on twitter! @DarkDiaMiner IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
The Meaning of Life, the Universe, and Everything.
Join Date:
8/21/2011
Posts:
286
Member Details
"How do we customize mob droppings?"
the amount of wat i have is not enough for the derpage i see in that title
Rollback Post to RevisionRollBack
God bless ye soul.
"Hark! Dost thou hear with thine ears what I hear with mine? Interloper! No quarter shall be shown hither, fiend! Anon! Show thyself, churl! Have at thee! *fires, misses, gets shot at* Fie upon thee! What-ho, the laser on mine rocket launcher be not a mere target, but a guidance system! Where art thou? Come hither, that I may smite thee! *shoots the Apache down* Thou shalt not be missed."
"How do we customize mob droppings?"
the amount of wat i have is not enough for the derpage i see in that title
\????
Rollback Post to RevisionRollBack
Make sure you follow me on twitter! @DarkDiaMiner IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
And how do we detect if the custom mob we made using modscrpit is dead ?
When you spawn it, set the mob itself as a variable. This will allow you to edit it in any way later.
var myMob;
//Later
myMob = Level.spawnMob(x, y, z, mob);
//Later again
function deathHook(attacker, victim) {
if(victim == myMob) {
doPoop(); //Just enter somethng to do here.
}
}
When you spawn it, set the mob itself as a variable. This will allow you to edit it in any way later.
var myMob;
//Later
myMob = Level.spawnMob(x, y, z, mob);
//Later again
function deathHook(attacker, victim) {
if(victim == myMob) {
doPoop(); //Just enter somethng to do here.
}
}
What does
doPoop();
Do?
Rollback Post to RevisionRollBack
Make sure you follow me on twitter! @DarkDiaMiner IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
To post a comment, please login or register a new account.
IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumuse the function Level.dropItem(); <--- enter the parameters.
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 PremiumYou're right!
Can you post a example script for me?
IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
function deathHook(murderer, victim){ if(Entity.getEntityTypeId(victim) == 13){//If victim is a sheep Level.dropItem(Entity.getX(victim), Entity.getY(victim), Entity.getZ(victim), 0, 280, 1);//Drop a stick } }Where do we get the mob id's?
IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
Ya thats was i wanted to ask too.
IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
the amount of wat i have is not enough for the derpage i see in that title
"Hark! Dost thou hear with thine ears what I hear with mine? Interloper! No quarter shall be shown hither, fiend! Anon! Show thyself, churl! Have at thee! *fires, misses, gets shot at* Fie upon thee! What-ho, the laser on mine rocket launcher be not a mere target, but a guidance system! Where art thou? Come hither, that I may smite thee! *shoots the Apache down* Thou shalt not be missed."
IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
var myMob; //Later myMob = Level.spawnMob(x, y, z, mob); //Later again function deathHook(attacker, victim) { if(victim == myMob) { doPoop(); //Just enter somethng to do here. } }Back to modding! Follow me on Twitter @byteandahalf
You can find the mob ids here ...
What does Do?
IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->