Like I said if anybody wants custom sounds, use soundpool and load sounds from the sdcard.
Like i said zhuowei should add proper soundpack support. Im not writing myself a modscript to change every single sound. plus im pretty sure soundpool only plays over the original sounds so u could still hear them.
Guys i can add a new sound in a texture pack like noteblock sounds and use in Level.playSound?
And why addCraftRecipe with custom items are not working for me?My cellphone is lg optimus l3 II rooted and i have the beta.
Okay so this is getting annoying so I've been making my Command Block mod and Its been lagging like hell. It works fine while the mod is off but when it's enabled it lags. Does anyone have a fix for this lag?
I think it may be my newLevel hook and my modTick hook but I'm not entirely sure.
What's in your modTick? I'll take a look.
Edit: it seems that when the mod loads, you're loading a whole webpage?! Can't you avoid loading that until you need it so that it doesn't take up CPU time?
I'll test this later, but I think that this might be the problem.
Edit: it seems that when the mod loads, you're loading a whole webpage?! Can't you avoid loading that until you need it so that it doesn't take up CPU time?
I'll test this later, but I think that this might be the problem.
Well that may be the problem for my SuperGamer mod but I'm talking about my command block mod. I will send you the file.
I know you could just use Entity.setHealth(), but that just doesn't fully kill an entity, so could you add Entity.kill()? By not fully killing, I mean no noise, no drops, doesn't call the deathHook() hook, etc. It just sets the health to 0 and that's it.
I know you could just use Entity.setHealth(), but that just doesn't fully kill an entity, so could you add Entity.kill()? By not fully killing, I mean no noise, no drops, doesn't call the deathHook() hook, etc. It just sets the health to 0 and that's it.
What about Entity.setOnFire()? (or whatever function haven't coded in js for a long time)
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 know you could just use Entity.setHealth(), but that just doesn't fully kill an entity, so could you add Entity.kill()? By not fully killing, I mean no noise, no drops, doesn't call the deathHook() hook, etc. It just sets the health to 0 and that's it.
The Meaning of Life, the Universe, and Everything.
Location:
Houston
Join Date:
12/19/2013
Posts:
81
Location:
H-Town
PSN:
CAIDENBACON
Member Details
You should add something like ModPE.setArmorItem(id, "enchanting_bottle", armor points, "Armor"); for example. It would be a hook to make custom armor in JavaScript
Entity.remove() exists, but just removes an entity, not actually kill it. It's not that I'm trying to remove an entity, just kill it.
Why do you need to kill it? What do you need that Entity.remove() does not give you? Entity.remove silently removes the entity from the world, without the death animation, drops, or deathHook callback.
As in the original post, he said setting health to 0 won't kill it. If true then the best method is to set it to 1 hp (halfheart) and then suffocate it.
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:
Like I said if anybody wants custom sounds, use soundpool and load sounds from the sdcard.
Well if someone makes the mod I'll make the texture pack, I really don't understand anything about making mods now...
Like i said zhuowei should add proper soundpack support. Im not writing myself a modscript to change every single sound. plus im pretty sure soundpool only plays over the original sounds so u could still hear them.
Link:
http://www.minecraft.../#entry29816329
And why addCraftRecipe with custom items are not working for me?My cellphone is lg optimus l3 II rooted and i have the beta.
Player.getHealth = function(){ return Entity.getHealth(Player.getEntity()); }Thanks!
Link:
http://www.minecraft.../#entry29816329
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumWhat's in your modTick? I'll take a look.
Edit: it seems that when the mod loads, you're loading a whole webpage?! Can't you avoid loading that until you need it so that it doesn't take up CPU time?
I'll test this later, but I think that this might be the problem.
Well that may be the problem for my SuperGamer mod but I'm talking about my command block mod. I will send you the file.
That's why there is the entityRemovedHook
-
View User Profile
-
View Posts
-
Send Message
Curse Premium-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYeah instead of killing on deathHook you can preventDefault() and Entity.remove(ent);
Caiden "Eihthype" Crawfish
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumWhy do you need to kill it? What do you need that Entity.remove() does not give you? Entity.remove silently removes the entity from the world, without the death animation, drops, or deathHook callback.
theres a beta test group for blocklauncher betas for pro version. just ask zhuowei for the link (also nice profile pic