What I'm trying to say is Entity.setHealth kills it but not completely - I want the death drops and animation, this would especially be helpful in more swords mod.
Suffocate it. Or what you can do it set invisible bedrock on the entity for a brief moment then remove it. It causes damage and it will allow it to die normally.
Yes, but I'm working on a /kill command for multiplayer and that wouldn't work for creative, and I can't use Entity.setHeakth as that wouldn't make a sound.
Just do Entity.setHealth(entity, 0); then in deathHook play the sounds and set the drops.
Just do Entity.setHealth(entity, 0); then in deathHook play the sounds and set the drops.
I think the best and most sure way is to kill it at the same position, like set its health to 1 and suffocate it with a block and then schedule after a tick to remove the suffocater. This would surely be effective, and nothing about programming (with the .so binaries) controversial.
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
500ISE Im suggesting to add a function that will edit the current crafting recipe
E.g:
ModPE.changeCraftRecipie(slot int, etc);
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! ---------------->
500ISE Im suggesting to add a function that will edit the current crafting recipe
E.g:
ModPE.changeCraftRecipie(slot int, etc);
I think you should just want delete and add, not change.
Rollback Post to RevisionRollBack
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
I think you should just want delete and add, not change.
I'm really thinking on changing the recipe. But deleting will be good too.
ModPE.deleteCraftRecipe(int slot);
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! ---------------->
Condemn it, I specifically tried to avoid this! Does the server force close or something?
No it doesn't force close but the guest gets to saving chunks and then it says on their client disconnected from server. It's like they login and disconnect straight away. Like when you don't login on a server in time.
Um 500ISE can I suggest to add functions that allows custom projectiles/throwable items and spawning of projectiles/throwable items? And a function that detects an entity being hit by a projectile? That will be awesome! It will allow more creative maps! Thanks a lot! You are AWESOME!
Functions:
ModPE.setThrowableItem(Id, texture, par1int, name);
Level.spawnThrowableItem(x,y,z,power,direction,Id,amount); //where power is how far the projectile travels, direction is where it flies to, amount is how many projectiles to spawn
function struckHook(attacker, victim, projectile) //attacker can be null, if spawned by Level.spawnProjectile()
Um 500ISE can I suggest to add functions that allows custom projectiles/throwable items and spawning of projectiles/throwable items? And a function that detects an entity being hit by a projectile? That will be awesome! It will allow more creative maps! Thanks a lot! You are AWESOME!
Functions:
ModPE.setThrowableItem(Id, texture, par1int, name);
Level.spawnThrowableItem(x,y,z,power,direction,Id,amount); //where power is how far the projectile travels, direction is where it flies to, amount is how many projectiles to spawn
function struckHook(attacker, victim, projectile) //attacker can be null, if spawned by Level.spawnProjectile()
Look at my experimental projectiles library at modpe.enjin.com
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
Suffocate it. Or what you can do it set invisible bedrock on the entity for a brief moment then remove it. It causes damage and it will allow it to die normally.
Just do Entity.setHealth(entity, 0); then in deathHook play the sounds and set the drops.
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]
E.g:
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! ---------------->
I'm really thinking on changing the recipe. But deleting will be good 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! ---------------->
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumCondemn it, I specifically tried to avoid this! Does the server force close or something?
Link:
http://www.minecraft.../#entry29816329
Items, not blocks.
Yes thats exactly what I meant.
Link:
http://www.minecraft.../#entry29816329
round.setOnClickListener(new android.view.View.OnClickListener(
{
onClick: function(viewarg)
for when the button is held rather than clicked? And what is the code please?
There is a GitHub wiki in my signature. OnTouchListener is there. 0 is when held, 1 is when released.
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]
Functions:
ModPE.setThrowableItem(Id, texture, par1int, name);
Level.spawnThrowableItem(x,y,z,power,direction,Id,amount); //where power is how far the projectile travels, direction is where it flies to, amount is how many projectiles to spawn
function struckHook(attacker, victim, projectile) //attacker can be null, if spawned by Level.spawnProjectile()
Look at my experimental projectiles library at modpe.enjin.com
Then use my template of defining entities at https://github.com/connor4898/modpe-scripts/wiki to define the throwable entity and project it with the projectiles library.
And structHook can use entityRemovedHook
Because a projectile is also an entity.
blockAddedHook will be called whenever a block is added to the world.
blockRemovedHook will be called whenever a block is removed. (When air is set as well)