Hexdro, i wanted to make that block apear near the victim. But "Entity.getX()" dont work here. Can you say what is wrong with this:
function attackHook(attacker, victim, itemId) {
if (attacker == Player.getEntity() && itemId == 280); {
setTile(Entity.getX(), Entity.getY() + 1, Entity.getZ(), 3);
}
}
itemId is for the useItem hook. Use getCarriedItem();
So your code should be;
var mob = null;
function attackHook(attacker,victim)
{
if(getCarriedItem()==280 && victim == mob)
{
preventDefault(); //prevents damage on the victim
setTile(Entity.getX(victim), Entity.getY(victim) + 1, Entity.getZ(victim), 3);
}
}
pretty sure that should work, if not ill fix it (if theres any errors).
oh. Yeah. well yolo, It's good practice if he's going to use custom mobs (eg victim == pikachu) etc. anyway, i need to test out the new Pokecube PE with the Blocklauncher made for the 0.9.0 tests.
oh. Yeah. well yolo, It's good practice if he's going to use custom mobs (eg victim == pikachu) etc. anyway, i need to test out the new Pokecube PE with the Blocklauncher made for the 0.9.0 tests.
Hexdro, Maybe you could try out your mod with this Block Launcher: http://www.minecraft...einstall/
I tried a mod but doesn't work...Maybe you could...It's for Block Launcher Beta Build...
Or this: http://bit.ly/1rO5ISk
And I tried your mod but...It doesn't work on 0.9.0 ... But the TooManyItems mod does..what's wrong??
Or this: http://bit.ly/1rO5ISk
And I tried your mod but...It doesn't work on 0.9.0 ... But the TooManyItems mod does..what's wrong??
Pokecube PE v2.7 with the new version of block launcher? Probably a few functions that are not working, maybe things like adding craft recipes, etc. Ill take a look for myself. Also - Entei has been added.
Pokecube PE v2.7 with the new version of block launcher? Probably a few functions that are not working, maybe things like adding craft recipes, etc. Ill take a look for myself. Also - Entei has been added.
It's not new but it's compatible with the beta build...And yes it does mess up the 0.9.0 texture pack and also RageElixer made a video about it a few hours ago : http://bit.ly/1q9bK0z
Alright, choosing starters has now been changed to be done with GUI, a ton of pokemon has been released. Im just working on some original art for the GUI. Choose starters carefully as you can only have one.
Hey, Hexdro! Can you help me out with something real fast :3?
As you can see on the attachment below, all the pokemon on the left, are...well on the map xD. However on the fight side, all you see are cows ._. ? When u reconnect, that happens to all pokemon on the map. Please fix >.<
Also, in the background, you may notice how the original Minecraft texture Is gone, replaced by random blocks. Dunno what happened to that o.o.
Finally, as you can see in my inventory, it shows blank boxes....
(If it helps to solve my problem, I'm using minecraft 0.9.2 and block launcher 1.7.1)
Thanks, and good luck with the mod ^-^ Can't wait for next update :D!
Hey Hexdro, I want to ask you something. You know about the dungeons and portals and everything that generates in 0.9.0 but do you know how my mod can generate something like temples. If you know pls tell me
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumitemId is for the useItem hook. Use getCarriedItem();
So your code should be;
var mob = null; function attackHook(attacker,victim) { if(getCarriedItem()==280 && victim == mob) { preventDefault(); //prevents damage on the victim setTile(Entity.getX(victim), Entity.getY(victim) + 1, Entity.getZ(victim), 3); } }pretty sure that should work, if not ill fix it (if theres any errors).
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 PremiumCheck out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
For daily Textures, and Graphics visit and follow my Twitter: https://twitter.com/KnifeFTW
I tried your mod but didn't work...Maybe you could try...It's for the Beta Build...
<a href="http://www.danasoft.com"><img src="http://www.danasoft.com/citysign.jpg" border="0"></a><p><div style="font-family:Arial,sans-serif;font-size:11px;">Sign by Danasoft - <a href="http://www.danasoft.com">Get Your Sign</a></p></div>
<a href="http://www.danasoft.com"><img src="http://www.danasoft.com/vipersig.jpg" border="0"></a><p><div style="font-family:Arial,sans-serif;font-size:11px;">Sign by Danasoft - <a href="http://www.danasoft.com">Get Your Sign</a></p></div>
Or this: http://bit.ly/1rO5ISk
And I tried your mod but...It doesn't work on 0.9.0 ... But the TooManyItems mod does..what's wrong??
<a href="http://www.danasoft.com"><img src="http://www.danasoft.com/citysign.jpg" border="0"></a><p><div style="font-family:Arial,sans-serif;font-size:11px;">Sign by Danasoft - <a href="http://www.danasoft.com">Get Your Sign</a></p></div>
<a href="http://www.danasoft.com"><img src="http://www.danasoft.com/vipersig.jpg" border="0"></a><p><div style="font-family:Arial,sans-serif;font-size:11px;">Sign by Danasoft - <a href="http://www.danasoft.com">Get Your Sign</a></p></div>
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumCheck out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
<a href="http://www.danasoft.com"><img src="http://www.danasoft.com/citysign.jpg" border="0"></a><p><div style="font-family:Arial,sans-serif;font-size:11px;">Sign by Danasoft - <a href="http://www.danasoft.com">Get Your Sign</a></p></div>
<a href="http://www.danasoft.com"><img src="http://www.danasoft.com/vipersig.jpg" border="0"></a><p><div style="font-family:Arial,sans-serif;font-size:11px;">Sign by Danasoft - <a href="http://www.danasoft.com">Get Your Sign</a></p></div>
For daily Textures, and Graphics visit and follow my Twitter: https://twitter.com/KnifeFTW
For daily Textures, and Graphics visit and follow my Twitter: https://twitter.com/KnifeFTW
Mewtwo is so easy! Just one box to add!
Minun and Plusle are done too. Wait a bit
Game dev and Minecraft modder.
Twitter: @jv110br_
I would do them. And I work fast
Game dev and Minecraft modder.
Twitter: @jv110br_
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumhttps://twitter.com/hexdro_
Images are on my twitter, i will post them here soon.
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 PremiumIt'll be out when its out, currently reworking Bikes. 0.9.1 is currently buggy as hell, btw.
Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
As you can see on the attachment below, all the pokemon on the left, are...well on the map xD. However on the fight side, all you see are cows ._. ? When u reconnect, that happens to all pokemon on the map. Please fix >.<
Also, in the background, you may notice how the original Minecraft texture Is gone, replaced by random blocks. Dunno what happened to that o.o.
Finally, as you can see in my inventory, it shows blank boxes....
(If it helps to solve my problem, I'm using minecraft 0.9.2 and block launcher 1.7.1)
Thanks, and good luck with the mod ^-^ Can't wait for next update :D!