if (hitEntity !=null) {
hitEntity.setFireLevel(200)
if (!hitEntity.getClassType('X')){
hitEntity.Texture = "/Hurt/" + hitEntity.getClassType() + ".png"
}
}
What do I need to replace 'X' with so that it doesn't change the slime texture? If I put slime there, it says 'slime' is undefined.'
(if you remove the 'if' and the brackets it changes the texture normally)
Why isn't there any adfly link:(? I want click one!:biggrin.gif: Cool mod.
edit:Why do i get so small fps and laggy:S?
Your render is distance is probably on "very far". Go into video settings and change "vaery far" to "far" and turn "auto far clip" on. That should fix it.
EDIT: MCP for 1.7.2 is out. Hopefully you can work on getting it updated now.
Hmmm... I don't think that there is scripting support for flying mobs. I could be wrong, you might want to ask a more experienced scripter for help, but I don't think you can as of now. Maybe in a future update?
Perhaps have it randomly set its velocity in any direction? Anyway.
Try using ent.settexture(""). I don't know if it will work, but I would assume that it would update the boss's texture, rather than just changing the texture path. As far as I can tell, AdventureCraft loads all resources needed for the game at loadup, and doesn't change them unless you "refresh" the resources (reload them). I don't know if this will work, I am pretty much just basing this off of a guess.
Thanks, that worked! Just asking, is there any way to make it fly instead of walk?
(It's a scripted zombie)
Ooh, also, I wanted to spawn little clones of it (that use a different script) when I hit it. But I didn't know what function to use for the hitting (Is it getHurt()?) and I didn't know what function to use for spawning the additional scripted mobs...
Cyrect (i hope i spell that right) i know this would be a pain to right but could you add like some little mini mob maker where we could edit the skins put it in and its like a whole new mob and we can set the hearts and how much damage and then where we can make it protect you and Good NPCs and then have like a city be attacked by wolves and such but then have defenders help protect the city this would make games so much more unique because players get to add their own monster ideas.
You can already do that, you just have to know how to do it with scripting.
speaking of which, I have a problem with scripting (because I suck at it). I want the boss this script makes to change textures as it's health gets lower, but it won't work. This is the script:
for (var i = 0; i < spawnedEntities.length; i++) {
var ent = spawnedEntities[i];
if (h = 200) ent.texture = "/npc/boss4.png";
ent.attackStrength = 20;
ent.heldItem = Item(268);
ent.maxHealth = 200;
ent.health = 200;
ent.setMoveSpeed(10);
var h = ent.getHealth();
if (h < 101) ent.texture = "/npc/boss4_hurt.png";
if (h < 51) ent.texture = "/npc/boss4_crumble.png";
}
well, take a look at my signature, and you would see what i mean.
Thank GOD i didnt edit my signature.
How are we going to show support now? And some people like to put their bio in their signature, actually.
Ok, I don't get it.
Why the hell are we only aloud to have 1 image, 1 link, and 2 lines of text in our signature?
I mean really?
I get the feeling this was a mistake. But if it wasn't a mistake...
I mean seriously! We used to only have a maximum 500 char for our signature!
But now, this...?
Talk about control freak!
I wonder how many people out there pissed off by this.
So, you quit minecraft because 3rd party modifications not created and maintained by Mojang werent working? Despite the fact that you need to wait for mods to update sometimes? Even when Notch said that mods are not supported by him?
That's like saying you committed suicide because you couldn't get steroids.
0
Can't you just take the music from his music folder and credit him?
Also, I need some help with that script above.
0
What do I need to replace 'X' with so that it doesn't change the slime texture? If I put slime there, it says 'slime' is undefined.'
(if you remove the 'if' and the brackets it changes the texture normally)
0
Your render is distance is probably on "very far". Go into video settings and change "vaery far" to "far" and turn "auto far clip" on. That should fix it.
EDIT: MCP for 1.7.2 is out. Hopefully you can work on getting it updated now.
0
0
Perhaps have it randomly set its velocity in any direction? Anyway.
0
Thanks, that worked! Just asking, is there any way to make it fly instead of walk?
(It's a scripted zombie)
Ooh, also, I wanted to spawn little clones of it (that use a different script) when I hit it. But I didn't know what function to use for the hitting (Is it getHurt()?) and I didn't know what function to use for spawning the additional scripted mobs...
0
You can already do that, you just have to know how to do it with scripting.
speaking of which, I have a problem with scripting (because I suck at it). I want the boss this script makes to change textures as it's health gets lower, but it won't work. This is the script:
0
I will now evaluate Your request:
Umbrella. Really hard to do, OR easy if they substitute an existing item for it.
No mob damage for a class. Well, there is a plugin that already makes all mobs friendly, so just take that code and apply it to a class.
10-block chat radius? There is a already a plugin that does that, just change the 1000 in the properties to 10.
0
EDIT: ninja'd
0
Just saying, I don't agree with any of those viewpoints!
My viewpoint in the poll would just get me banned.
0
Thank GOD i didnt edit my signature.
How are we going to show support now? And some people like to put their bio in their signature, actually.
0
Why the hell are we only aloud to have 1 image, 1 link, and 2 lines of text in our signature?
I mean really?
I get the feeling this was a mistake. But if it wasn't a mistake...
I mean seriously! We used to only have a maximum 500 char for our signature!
But now, this...?
Talk about control freak!
I wonder how many people out there pissed off by this.
0
That's like saying you committed suicide because you couldn't get steroids.
0
Ya Rly.
EDIT: Ninja!
0
air blocks means air.