Jump to content

daot

Members
  • Posts

    7
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

daot's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. What version are you using - this is in 1.10 /setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {SpawnData:{id:"customnpcs.CustomNpc",Pos:[1214,56,879],StartPosNew:[1223,56,879,],MovingState:1,WalkingRange:10,ReturnToStart:0,Texture:"customnpcs:textures/entity/humanmale/Evil_Gold_Knight.png"},SpawnPotentials:[{Weight:1,Entity:{id:"customnpcs.CustomNpc",Pos:[1214,56,879],StartPosNew:[1221,56,879,],MovingState:1,WalkingRange:10,ReturnToStart:0,Texture:"customnpcs:textures/entity/humanmale/Evil_Gold_Knight.png"}},{Weight:1,Entity:{id:"customnpcs.CustomNpc",Pos:[1214,56,879],StartPosNew:[1221,56,879,],MovingState:1,WalkingRange:10,ReturnToStart:0,Texture:"customnpcs:textures/entity/humanmale/FireSteve.png"}},{Weight:1,Entity:{id:"customnpcs.CustomNpc",Pos:[1214,56,879],StartPosNew:[1219,56,879,],MovingState:1,WalkingRange:10,ReturnToStart:0,Texture:"customnpcs:textures/entity/humanmale/RobesBlackSteve.png"}}],SpawnCount:1,SpawnRange:10,MinSpawnDelay:10,MaxSpawnDelay:100,MaxNearbyEntities:10,RequiredPlayerRange:30}
  2. you could do it with scripting -- what version?
  3. you could use scripting -- put a npc.world.setBlock(144,68,397,"minecraft:redstone_torch"); in the killed tab to make a door open
  4. Well interaction and hitting are two different things. To hit a NPC it would have to be either hostile or neutral - and the easiest way to have it just walk away when hit would be to change its faction to friendly and and this would be done with scripting then set its home to a new position. refer how to set up scripting here http://www.kodevelopment.nl/minecraft/customnpcs/scripting 1) in the scripting damage tab npc.setFaction(0); npc.setHome(x,y,z); //x y z are the new positon Actually this works better when he starts as aggressive ?? - sometimes the neutral don't want to give up !!!!! and I am working in 1.8 but should work in 1.7 and maybe lower
  5. That is a good question because if you do it separately it dose not seem to be global. But if you clone them it seems to be the same timer?
  6. this might help function interact(event) { var item = event.player.getHeldItem(); event.npc.say(item.name); }
  7. Well every player has a relation ship to a npc through their faction. I tried to explain this in this video
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.