aa thanx alot ,ya i never waited to fully grow potato, and no not gave them seeds. gona try now. What abute miners? wher can i set them up?
As far as i know there is no miners job at the moment but you can set up some npc to just walk around a mine or set them to look at the wall with a pick in hand if you want.
Do you have a deobfuscated/development version available?
I would like to try to get Pokecube to properly support Custom NPCs, but it would be much easier to do and test things with a version I can run in my development environment.
To get the mobs, install the resource pack on the github, or use the Pokécube Mobs mod below.
Sounds, Textures and additional Pokemobs can be added by also using the following mod:
note that Pokécube Core requires
Is there a way to load a flans mod vehicle model as the NPC model in 1.7.10? I desperately need Living Vehicles the size of tiny. Reason i need this so i can make Living Vehicles shoot the enemies of the Nation. And no not drivable ones. This would be a great small addition.
Is there a way to load a flans mod vehicle model as the NPC model in 1.7.10? I desperately need Living Vehicles the size of tiny. Reason i need this so i can make Living Vehicles shoot the enemies of the Nation. And no not drivable ones. This would be a great small addition.
I wouldn't think so, flans mod vehicles are a different type of entity to the ones Custom NPC's picks up. Also as far as I'm aware however Noppes stopped new content for 1.7.10 quite some time ago, so I wouldn't be expecting it to happen.
Edit: That was supposed to be "wouldn't" not "would"
If you require aid with Custom NPC's give me a shout (In the thread, not PM's). I can read a bit of error reports, know most of the NPC workings (I'm attempting to work on scripting) and have been using it since its 1.0 version. Otherwise I'll help with any questions or problems I can.
I would think so, flans mod vehicles are a different type of entity to the ones Custom NPC's picks up. Also as far as I'm aware however Noppes stopped new content for 1.7.10 quite some time ago, so I wouldn't be expecting it to happen.
If thats the case then... I am gonna have to find another way to make a tank-like humanoid that can enter the Modern World to defend the United Green's White House..
Do you have a deobfuscated/development version available?
I would like to try to get Pokecube to properly support Custom NPCs, but it would be much easier to do and test things with a version I can run in my development environment.
PM me Ill send you the source
Rollback Post to RevisionRollBack
Those who want to chat or hang out, join me on discord
Want to support me? Become one of my patrons:
How can I teleport a player to a specific location when they touch an NPC? I've been working on an RPG map, and I was planning to have pre-existing encounters, so you are teleported to the battle area when you touch the NPC.
How can I teleport a player to a specific location when they touch an NPC? I've been working on an RPG map, and I was planning to have pre-existing encounters, so you are teleported to the battle area when you touch the NPC.
Well when you say "touch" do mean run into? or interact with?
run in to Collide tab
entity.setPosition(x,y,z);
interact tab
player.setPosition(x,y,z);
This would be really simple to do. I would put this in the Attack tab of the script interface (this is for 1.8 & down)
//first you want to know what is in the attackers hand
//but first check if the hand is empty!
if (npc.getRightItem() == null ) {
//do nothing
// if not empty then what? check for a Saber
} else if (npc.getRightItem().name == "customnpcs:npcSaber") {
//then do something like set its melee strength plus 10
event.setDammage(npc.getMeleeStrength()+10);
}
Thats it, you could check for something in left hand -> npc.getLeftItem() == "??" or both with a && between two comparisons. You could copy the else if down again ( and again) to create many possible weapons the npc could have - etc etc
Really just 3 lines of code or so - the lines beginning with "//" are just comments and could be removed - change the name in the "" to what ever weapon you want.
That wasn't working so I tried something similar:
if (npc.getRightItem().name() == "minecraft:diamond_sword")
{
npc.setMeleeStrength(10);
}
else
{
npc.setMeleeStrength(1);
}
but I get the error:
TypeError: [String minecraft:diamond_sword] is not a function in <eval> at line number 1
if (npc.getRightItem().name().equals("minecraft:diamond_sword")) {
npc.setMeleeStrength(10);
} else {
npc.setMeleeStrength(1);
}
?
Just some suggestions from a guy who doesn't know a thing about CNPCs scripting (but does know a little Java).
Now I've got half of it to work, but now even if the npc is wielding nothing or if its wielding any other item it still will attack with 10 melee strength when I want it to attack with only 1 strength in that event.
if (npc.getRightItem().name = "minecraft:diamond_sword" ) {
npc.setMeleeStrength(10);
}
else
{
npc.setMeleeStrength(1);
}
I get the error:
TypeError: Cannot set property "name" of null in <eval> at line number 1
Now I've got half of it to work, but now even if the npc is wielding nothing or if its wielding any other item it still will attack with 10 melee strength when I want it to attack with only 1 strength in that event.
if (npc.getRightItem().name = "minecraft:diamond_sword" ) {
npc.setMeleeStrength(10);
}
else
{
npc.setMeleeStrength(1);
}
I get the error:
TypeError: Cannot set property "name" of null in <eval> at line number 1
Thats not working because "nothing" does not have a name! You always have to check if something is empty first before checking its name.
My script I think was not working because I don't know how to spell it looks like -- I have damage with two "m"?? With mine it increased the damage 10 above the default so you would not have to set it down when nothing was in the hand.
BTW the reason your first example was not working was the () on the end of name making it look for a function or something.
Hello, I have a quick question. Is there a way to have more than 18 trades per NPC? I am trying to make a general store but 18 trades isn't enough for a general store. Thanks
As far as i know there is no miners job at the moment but you can set up some npc to just walk around a mine or set them to look at the wall with a pick in hand if you want.
Do you have a deobfuscated/development version available?
I would like to try to get Pokecube to properly support Custom NPCs, but it would be much easier to do and test things with a version I can run in my development environment.
Thut's Mods
To get the mobs, install the resource pack on the github, or use the Pokécube Mobs mod below.
Sounds, Textures and additional Pokemobs can be added by also using the following mod:
note that Pokécube Core requires
if I get killed by neutral npc I cant attack it again after respawning.
Is there a way to load a flans mod vehicle model as the NPC model in 1.7.10? I desperately need Living Vehicles the size of tiny. Reason i need this so i can make Living Vehicles shoot the enemies of the Nation. And no not drivable ones. This would be a great small addition.
I wouldn't think so, flans mod vehicles are a different type of entity to the ones Custom NPC's picks up. Also as far as I'm aware however Noppes stopped new content for 1.7.10 quite some time ago, so I wouldn't be expecting it to happen.
Edit: That was supposed to be "wouldn't" not "would"
If thats the case then... I am gonna have to find another way to make a tank-like humanoid that can enter the Modern World to defend the United Green's White House..
http://imgur.com/vtSDfic
You have to change your damage indicator graphic to something that doesn't show a picture of the npc.
PM me Ill send you the source
Want to support me? Become one of my patrons:
How can I teleport a player to a specific location when they touch an NPC? I've been working on an RPG map, and I was planning to have pre-existing encounters, so you are teleported to the battle area when you touch the NPC.
[center][center]
Well when you say "touch" do mean run into? or interact with?
run in to Collide tab
entity.setPosition(x,y,z);
interact tab
player.setPosition(x,y,z);
i LOVE this mod!
But there is one thing im struggeling with. How do i get them to use wands with magic??
Or any other type of magic?
Would be nice to make a mage that can use magic missile or a wand to shoot with
Yes, or just let them use the wand that follows the mod if thats possible.
If not what do i do?
That wasn't working so I tried something similar:
if (npc.getRightItem().name() == "minecraft:diamond_sword")
{
npc.setMeleeStrength(10);
}
else
{
npc.setMeleeStrength(1);
}
but I get the error:
TypeError: [String minecraft:diamond_sword] is not a function in <eval> at line number 1
Now I've got half of it to work, but now even if the npc is wielding nothing or if its wielding any other item it still will attack with 10 melee strength when I want it to attack with only 1 strength in that event.
if (npc.getRightItem().name = "minecraft:diamond_sword" ) {
npc.setMeleeStrength(10);
}
else
{
npc.setMeleeStrength(1);
}
I get the error:
TypeError: Cannot set property "name" of null in <eval> at line number 1
Thats not working because "nothing" does not have a name! You always have to check if something is empty first before checking its name.
My script I think was not working because I don't know how to spell it looks like -- I have damage with two "m"?? With mine it increased the damage 10 above the default so you would not have to set it down when nothing was in the hand.
BTW the reason your first example was not working was the () on the end of name making it look for a function or something.
Any suggestions? There has to be a way to have a mage/wizzard npc
Just don't try to name it first -- use
if (npc.getRightItem() == null )
one of my top ten errors -- try to get the name of null and crash!
yeah your right (or you could just flip it), oh no wait your wrong -- if he has something in his hand besides a diamond sword nothing happens
(you can run both if's together like this) then when diamond_sword MS 10 -- empty or anything else MS 1
Hello,
Is there a way to attach a customnpc horse to a chariot with a lead, just as an aesthetic thing to look like reins?
Cheers
Hello, I have a quick question. Is there a way to have more than 18 trades per NPC? I am trying to make a general store but 18 trades isn't enough for a general store. Thanks