How To Script Custom NPCs (1.7.10) =Part 1= The Basics

Поделиться
HTML-код
  • Опубликовано: 25 дек 2024

Комментарии • 246

  • @HeroesNFools
    @HeroesNFools  6 лет назад +17

    Hey guys! I've posted the code in the description, so you can copy paste it, then tweak the code as you like. Be sure to copy, then click the PASTE button in the script menu, not ctrl-v when pasting it in. If you ctrl-v, it will paste very weird

    • @J.Pokemon
      @J.Pokemon 6 лет назад

      the scripts i put in the npc keep dissapearing, how do i fix this????

    • @HeroesNFools
      @HeroesNFools  6 лет назад

      MrPokemon555 read the notes, I pointed that out directly in the document

    • @epicninjaliracingmmaandfps4679
      @epicninjaliracingmmaandfps4679 6 лет назад

      Can you make npcs naturally swim with this? Actively avoiding land?

    • @HeroesNFools
      @HeroesNFools  6 лет назад

      @@epicninjaliracingmmaandfps4679 maybe? It would depend on how you control pathing, I know you can detect a block

    • @Naruku2121
      @Naruku2121 5 лет назад

      I know this is late and all and I'm just getting started with the vids, but is it possible to make a script condition in that they transform at low health, but revert upon being healed or kill their target? I kind of want to build a companion type Npc and having them being permanently transformed probably won't work out in a play through.

  • @Joipenarge
    @Joipenarge 6 лет назад +18

    me when i finally figure out why the npc i was scripting wasn't doing anything: *pure happiness*

  • @qoyote
    @qoyote 5 лет назад +4

    For 1.10 and later, just use function x(event) where x is whatever hook he's using for that command, then type the command. Put event. before any command. Put any variables before the function. You also don't need to use the tempData thing anymore because there's only one console.
    To do his "health increases when the NPC's damaged" trick, for example, you'd do this.
    var curH = 20
    function damaged(event) {
    curH = curH + 1;
    event.npc.setMaxHealth(curH);
    }

  • @Roug3e_Bunny
    @Roug3e_Bunny 4 года назад +6

    its me again i wanna say thank you for the help all those years ago haha

  • @lavoc775
    @lavoc775 2 года назад +2

    Trying scripting in 1.16.5 and it doesn't list out the hooks, Idk if ya know how to fix that. Cuz that makes it a lot more annoying because idk if they expect me to smash all my code together.

  • @ItsSmove
    @ItsSmove 7 лет назад +2

    Perfect tutorial I actually need this

    • @HeroesNFools
      @HeroesNFools  7 лет назад

      Smove3323 glad to help :D

    • @ItsSmove
      @ItsSmove 7 лет назад +1

      HeroesNFools Zeshin your the man

  • @thegoodguy6496
    @thegoodguy6496 4 года назад +2

    Hey yo can you tell me how to give npc's particles? I was trying for a while now.

  • @clubkiddxx
    @clubkiddxx 5 лет назад +4

    can you make a tutorial for 1.1.2.2 ?

  • @RadhruinTarr
    @RadhruinTarr 10 месяцев назад +1

    is sad it don't work in Aternos server..

  • @juanrosas4586
    @juanrosas4586 2 года назад +1

    Tip: setTempdata does not work anymore. You have to use event.npc.getTempdata().put("[variable name]",[variable value]) and event.npc.getTempdata().get("[variable name]") when you want to change and get a temporary variable value, respectively.

  • @thenoblesolo4965
    @thenoblesolo4965 7 лет назад +1

    hmm its a little complex but its pritty ok i learnd alot thx btw TRANSFORMATIONS THAT IS WHAT I WANTps thx for this i asked you to teach me it and you pulled through

    • @HeroesNFools
      @HeroesNFools  7 лет назад

      Np, I know transforming and executing commands are big on the list

  • @thestrongestuchiharinnshar574
    @thestrongestuchiharinnshar574 7 лет назад

    i was waiting for this thx i asked you to make this in the tourny thx

    • @HeroesNFools
      @HeroesNFools  7 лет назад

      +The strongest Uchiha rinnsharingan and sharingan Np, I plan to do more :D

  • @zoerowbotham5121
    @zoerowbotham5121 6 лет назад +5

    How do you store variable in 1.12? I can't find to commands and saveStoredData / saveTempData isn't working. I want a variable to be created in the tick / update function so that it's updated every tick and to be used in the interact function, using the most up to date value of the variable..??

    • @HeroesNFools
      @HeroesNFools  6 лет назад +1

      Zoe Rowbotham ya...that stuff works very different in 1.12, some point in the future I'll need to cover it. Basically there's a data object you need to get (I forget the full name) and said object has the get/put methods for manipulating stored data

  • @redoctober2088
    @redoctober2088 6 лет назад +2

    Do you know how to add custom songs? All tutorials are outdated. Actually ive done everything, i see a song, but when i set it to npc it just doesnt play. You really could make more custom npcs tuts, couse they are awesome

  • @jamesmcdonald9802
    @jamesmcdonald9802 4 года назад

    Heya! Do you have any idea on how to script a telegraphed attack? Mostly with a sound before firing? I'm tinkering around with an NPC that uses the unused "Castle Guardian" model from Twilight Forest, and I'm trying to script it to function identically to a Guardian from "Breath of the Wild". Especially the charged laser attack.
    In case you didn't know, Guardians in "Breath of the Wild" lock on to Link with a tracking laser while playing audible beeping, indicating that the player should either run or get ready to counter. If Link fails to break a Guardian's LoS, it then fires a highly-damaging laser at Link.
    I'm trying to figure out how to script the NPC to play a sound, or multiple of the same sound over and over again, before firing.
    And if it's possible, maybe draw a laser in the form of a line of Redstone particles, or even just a recolored Monument Guardian laser from the NPC to the player. If you could help me with this, I'll be forever in your debt! :)

  • @raysyndrome7209
    @raysyndrome7209 3 года назад

    is it possible to let a npc craft something? or at least move things from one chest to another?

  • @frimuwfangand3926
    @frimuwfangand3926 3 года назад

    How do you make broly attack from short and long distance?

  • @ExplorerOfficial20
    @ExplorerOfficial20 4 года назад

    It is work in the single player but it is don't work with my server :( I put nashorn in both minecraft and server's mods folder.

  • @TheReelDetro
    @TheReelDetro 4 года назад

    How would I set the npc faction ID to a choice when the npc stopped targeting the player?

  • @Roug3e_Bunny
    @Roug3e_Bunny 5 лет назад

    How would I make a npc give tp to people within a certain block radius. I already know how to execute the command on kill

    • @HeroesNFools
      @HeroesNFools  5 лет назад

      You would need to check the players you plan to give tp to and see how far their position is to the npc. I'd recommend looking up how to calculate the distance between two vectors on goggle

  • @Ares-tx3lq
    @Ares-tx3lq 6 лет назад

    How to define the "npc" object in 1.12? When I type in something like "npc.setMaxHealth" it says "npc" isn't defined

    • @ericboi3633
      @ericboi3633 2 года назад

      did you get an answer? i'm stuck on that, can't find good tutorials for 1.12 :(

  • @StretchyMCAU
    @StretchyMCAU 5 лет назад

    i'm using 1.12.2 at the moment and when I use the NPC scripter on an NPC I only get the "settings" tab no "scripits" or "website" any idea why this could be? is it because of the version of minecraft im using or have I missed something?

    • @HeroesNFools
      @HeroesNFools  5 лет назад

      The main difference with custom NPCs post a certain version is it no longer has tabs for the events, you declare them yourself. It makes it way more efficient and cleaner. You click the 1 tab and code. I really need to do a vid explaining this since there isn't much info on it

    • @StretchyMCAU
      @StretchyMCAU 5 лет назад

      @@HeroesNFools even just a short video explaining how we can implement knowledge learned in this series to 1.12.2 if possible would be HUGE, do's and do's etc

  • @jonathanX01
    @jonathanX01 5 лет назад

    I need help, I am trying to make my npc say something using npc.say("Hello"), but nothing is working. I place it in both init and update.

    • @HeroesNFools
      @HeroesNFools  5 лет назад

      Did you add a semi colon?

    • @jonathanX01
      @jonathanX01 5 лет назад

      @@HeroesNFools I did.

    • @HeroesNFools
      @HeroesNFools  5 лет назад

      @@jonathanX01 did you double check capitalization? Also did you make sure to install the coding stuff like I speisified in ep 1 of these series of vids?

    • @jonathanX01
      @jonathanX01 5 лет назад

      @@HeroesNFools Yeah, it doesn't really matter anyways, I was just using that to test. Everything else on the other hand works.

  • @Roug3e_Bunny
    @Roug3e_Bunny 4 года назад

    how does one define a player ? but use the command intended for the player in a update tab?

    • @HeroesNFools
      @HeroesNFools  4 года назад

      I usually define the player from the damaged tab, so target player would be last one who hit the npc. Then u would store the player in the settempdata, then get that tempdata in the update, making sure to verify its not null

    • @Roug3e_Bunny
      @Roug3e_Bunny 4 года назад

      @@HeroesNFools see I've figured out a way to use a function to set the power release to 127 but I want to make sure in a certain area the player is in it constantly sets the power release to 0 but I don't know how to define the player

  • @isaaccarranza365
    @isaaccarranza365 2 года назад

    can you import animations from blockbench?

  • @nasrinsultana8427
    @nasrinsultana8427 5 лет назад

    Mod name??
    Two items in ur inventory 1 and 2nd hotbar

  • @deathfyre6631
    @deathfyre6631 5 лет назад

    How do you code explosions, such as the wither spawning?

    • @HeroesNFools
      @HeroesNFools  5 лет назад

      Take a look at my flying with explosions vid

    • @deathfyre6631
      @deathfyre6631 5 лет назад

      @@HeroesNFools thanks for replying so quickly!

  • @blazingstar3119
    @blazingstar3119 4 года назад

    The npc does everything except give the tp or run the command it is supposed to in my server, but when I try the same exact thing in a single payer world it works perfectly. I NEED HELP!

    • @HeroesNFools
      @HeroesNFools  4 года назад

      did you make sure nashorn is on the server, also did you make sure to enable custom npcs to run commands in the config on the server?

    • @blazingstar3119
      @blazingstar3119 4 года назад +1

      @@HeroesNFools Omg thank you so much, I did not notice that I had to enable custom npcs in the config. Thanks again!

  • @petey5009
    @petey5009 6 лет назад

    Where is the nashorn.jar file? I'm using a mac, so it may be different. IDK

    • @HeroesNFools
      @HeroesNFools  6 лет назад

      Petey :D should be the same, it's Java. Find where ever you installed java

  • @CMDR_Ryan
    @CMDR_Ryan 7 лет назад

    so can using scripts to alter npc stats allow you to go above the normal cnpc maximums?

    • @HeroesNFools
      @HeroesNFools  7 лет назад

      ThePS4IndieGamer I haven't tested what happens if u set the hp past the normal limit, I do know any value has a theoretical limit based on if it's an int, double, etc. HOWEVER, u can intercept the damage and manipulate it, so theoretically u could have a separate hidden hp that ticks down first before the normal hp is touched, thereby extending the life total

    • @CMDR_Ryan
      @CMDR_Ryan 7 лет назад

      My intention was to get ranged damage past the limit because i know it caps before melee damage does so for dbc servers you hit a point where players become stronger then npc ranged attacks for custom sagas and they take no dmg.

    • @HeroesNFools
      @HeroesNFools  7 лет назад

      ThePS4IndieGamer I know you can set the projectile damage, I'll have to experiment with setting the damage past the limit. Although if u wanted added danger, u could make the npc teleport next to the player so they get a swing in

    • @HeroesNFools
      @HeroesNFools  7 лет назад

      to answer your question, yes, you can set the projectile damage with npc.setRangedStrength(); And i was able to set it to 1million XD

  • @lukasprays9408
    @lukasprays9408 4 года назад

    hey, can i do a script to npc deal less damage if player has permission "defence.level" 1? for exemple to player doesn't have this permission npc will deal 1.000 of damag, in player with this permission will deal 500, how can I do this? if yes how?

    • @HeroesNFools
      @HeroesNFools  4 года назад

      Depends on the context. If it's for dbc it'd be very tricky because the dbc mod damage happens after custom npc, so you won't register the damage difference. If it's for most anything else then you can as long as you have a way for a custom npc to get that permission. You can get a players name easy enough, and might be able to pull from a database, but I'm unclear how to do that. You could have permission given through an NPC and store it that way (like a permission quest) and check if they did the quest

    • @lukasprays9408
      @lukasprays9408 4 года назад

      @@HeroesNFools no, i want like this, like a defence sistym, if player has permission "defencelevel.1" the npc.setMeleeStrenght is less

    • @lukasprays9408
      @lukasprays9408 4 года назад

      @@HeroesNFools
      I just want a way for the npc to see if the player has a permission. if it were a skrpt the skrpt plugin would look like this:
      if victim has permission "shield"

  • @Max_1581
    @Max_1581 3 года назад

    Is there a way to find nashorn on mac I'm very confused

    • @HeroesNFools
      @HeroesNFools  3 года назад

      I'm not sure, it would be where ever java is installed

    • @Max_1581
      @Max_1581 3 года назад

      @@HeroesNFools I was able to find it thanks

  • @eventsoot646
    @eventsoot646 3 года назад

    How to change own model with custom npc ?

  • @danielantony1882
    @danielantony1882 5 лет назад +3

    The data commands confuzed me, kinda.

  • @hollandia34
    @hollandia34 6 лет назад +1

    Very nice tutorial series, helped me a lot creating a boss. I have however a question, maybe you can help out. What is the class or method to use in a traderrole to buy an item? I think it's not possible, but maybe I just don't know how. For example:
    When you buy ItemStack1 or Itemdata1 it fires: executeCommand(command1)
    But when you buy itemStack5 or itemdata5:metadata it fires: executeCommand(command5)
    I checked the api from 1.7.10, but stuff you use are not defined there.
    I don't know how to write the script and if it is even possible, but that way I can make a crafting GUI in an npc that gives xp upon creating armour. Thanks in advance!

    • @HeroesNFools
      @HeroesNFools  6 лет назад +1

      hollandia34 not sure if the trade is hooked in, I'd look into the diolog events. Those tend to fire off as you interact with the npc

    • @hollandia34
      @hollandia34 6 лет назад

      Yep, just found out that since 1.8 there is a event for traders which sell/buy items, so it's definitely possible right there. I think it's not possible for 1.7.10. Unless you know perhaps another way, involving more experience to programming or magic hehe. The dialogue for 1.7.10 only contains isClosing, which is depecrated.

    • @HeroesNFools
      @HeroesNFools  6 лет назад +1

      hollandia34 well see if it fires off is closing after they shop. If ur trying to get something to trigger off a certain item purchase u could check the players inventory right after. Also, you could instead set up a "trigger" by basically making a quest set for obtaining an item, then have a command line fire off that. For example, have an NPC which triggers off damage stuffed in a hole, and when the quest is complete use a command line to summon lava on said NPC, then work off that

    • @hollandia34
      @hollandia34 6 лет назад +1

      That's a very cool en inventive way of dealing with this problem. Gonna try it immediately, will probably take a while (typo's and stuff hehe). Will post the script if it works for me, for you and others. Thanks so far!

    • @hollandia34
      @hollandia34 6 лет назад

      I have been busy for a long time. I cannot figure it out. There are classes like "getItem, getItemstack" etc. But my guess is that I have to create tempData or something, which is I think above my experience. If you would like to help me out with the script I would appreciate that. If you would make a video even more, however I understand that I am asking a lot of your time, if it's too much I understand.
      What I got so far (maybe helpful for people who want a greater market):
      if (option == 1) {npc.getRole().setMarket("Tier1");}
      if (option == 2) {npc.getRole().setMarket("Tier2");}
      I tried a lot of classes like getItem, getItemstack and even getMCItemStack, there are so many. I do not know which one to use nor do I even know what the items are called: minecraft:diamond_sword doesn't work. I tried debugging how items work out with:
      npc.getLefttItem()
      if (npc.getLefttItem() == "customnpcs:npcEmeraldGun") {
      npc.executeCommand("w @a working")};
      When "==" is replaced with "!=" it works. Also tried this with item id to no avail. I think I am getting at it the wrong way.

  • @Star-ny3fm
    @Star-ny3fm 5 лет назад +1

    Can We use Lua?

    • @Star-ny3fm
      @Star-ny3fm 5 лет назад +1

      7:47 i thought you were saying FBI open the door

    • @Star-ny3fm
      @Star-ny3fm 5 лет назад +1

      And how can I make a ki wave like final flash for Npc?

    • @Star-ny3fm
      @Star-ny3fm 5 лет назад +1

      I can’t make it throw multiple blocks

    • @HeroesNFools
      @HeroesNFools  5 лет назад

      Possibly u could use lua, as long as it's a scripting language. I'm not sure how to set that up tho

    • @HeroesNFools
      @HeroesNFools  5 лет назад

      @@Star-ny3fm ki waves are tricky, basically ud have to take one using the projectile script. There is a way to fire a projectile via script, and as such you could have a few fire every tick to give that look of a ki wave, you just need to use some object which is big and clear

  • @KTN4429
    @KTN4429 6 лет назад +2

    oh,thx!

  • @Anarch_E
    @Anarch_E 6 лет назад

    When my NPC reaches curtain hitpoints he will change to a URL skin, increase health and use different abilities. That's what I want to learn.

    • @HeroesNFools
      @HeroesNFools  6 лет назад +1

      all of my videos should cover some basic parts of the npc api, and applications such as transform, flying, stat adjustment, etc. I could cover more, im currently adjusting my schedule from streaming daily to fit in other projects like this one

    • @Anarch_E
      @Anarch_E 6 лет назад

      HeroesNFools Zeshin OK. Im using 1.12.2 by the way.

    • @HeroesNFools
      @HeroesNFools  6 лет назад

      Rashard Givens with dbc? Or base custom NPCs? 1.10 and up do things a little different, its what I wanna cover next vid

  • @avrillove11m94
    @avrillove11m94 6 лет назад

    when I open up the script, only settings is shown.... Can you tell me what I did wrong?

    • @HeroesNFools
      @HeroesNFools  6 лет назад

      no idea, would need more info then that

    • @avrillove11m94
      @avrillove11m94 6 лет назад

      HeroesNFools Zeshin So when I right click on the npc with the scripter wand, only the settings tab is shown, while the scripts and website tab are not. Its hard to explain but I will try to screenshot it and give a link of the screenshot.

    • @avrillove11m94
      @avrillove11m94 6 лет назад

      @@HeroesNFools I have a screenshot now, I hope this helps i.imgur.com/Rfi6URF.png

    • @HeroesNFools
      @HeroesNFools  6 лет назад

      @@avrillove11m94 what version are you in? in later versions you have to write everything including the events

    • @avrillove11m94
      @avrillove11m94 6 лет назад

      HeroesNFools Zeshin I’m in version 1.12.2

  • @thestrongestuchiharinnshar574
    @thestrongestuchiharinnshar574 7 лет назад

    can you make it have aura? and i want to know how to make it fly and transform

    • @HeroesNFools
      @HeroesNFools  7 лет назад

      +The strongest Uchiha rinnsharingan and sharingan you can't do a dbc aura since you can only access what the api has access to. I can see if I can figure out a tricky way to do it tho for a future episode tho :3. Also I found a way to do flight but it's not great XD

  • @marthancercal
    @marthancercal 6 лет назад +1

    Is possible to make the npc react to other npc stats?
    like the npc is set to "retaliate" so it attacks you, but if his friend,boss or something dies(hp= 0) it make him to be set to "retreat" and say something like: "shit, my boss is dead"

    • @HeroesNFools
      @HeroesNFools  6 лет назад +1

      depends on how the set target effect would work. What you can do is have an object which has a boolean retreat. When false behavior is normal. When the boss dies, set it to true and save to the world.setTempData(). On update for the minion, they could be grabing this object and checking the retreat value, and when it's true, start doing the run away behavior. You might be able to set some of the ai values to get the run away to work, but im not sure how good they work

    • @marthancercal
      @marthancercal 6 лет назад

      ow ur're fast

    • @HeroesNFools
      @HeroesNFools  6 лет назад

      i try xD

  • @branethym6330
    @branethym6330 6 лет назад

    Do you know how to make it so the npc's do more damage when your using the dbc mod with max dex, because they do no damage but i make them transform but still do no damage. Let me know if you know how to give them higher damage rather then 99999.

    • @HeroesNFools
      @HeroesNFools  6 лет назад

      Thevidosaregood it'd be one of the NPC methods which ups damage value, I'd read through the API. If an NPC doesn't do any damage even after setting the basic value, even a value of 99999 then that's an issue with your dec mod

    • @HeroesNFools
      @HeroesNFools  6 лет назад

      Looks like setMeleeStrength(int value) is the melee setting damage value

    • @branethym6330
      @branethym6330 6 лет назад

      i meant dbc mod with max dex it was auto correct so i hope that works.

    • @HeroesNFools
      @HeroesNFools  6 лет назад

      Thevidosaregood did you try my suggestion?

    • @branethym6330
      @branethym6330 6 лет назад

      it did thanks so much!

  • @thenoblesolo4965
    @thenoblesolo4965 7 лет назад

    hmm im starting it now thx for the turorial ill see if its to hard

    • @HeroesNFools
      @HeroesNFools  7 лет назад

      The Noble Solo alright, feel free to ask questions if u get stuck! :D

  • @carlotiu1308
    @carlotiu1308 4 года назад

    Can I do this in 1.12.2?
    How d u get that hair.

    • @HeroesNFools
      @HeroesNFools  4 года назад

      The hair is from dbc mod which is in 1.7.10

  • @kiovoheree
    @kiovoheree 4 года назад

    Can I make them fly and fire real ki blast?

    • @HeroesNFools
      @HeroesNFools  4 года назад

      I have a vid for flying, and I noticed as of late there was a command to fire ki blasts from the dbc mod, so that might be possible too

  • @redoctober2088
    @redoctober2088 6 лет назад

    When i put nashron in mods folder game crashes...

    • @redoctober2088
      @redoctober2088 6 лет назад

      Okey, when i launched a game by a second time it worked. Idk why, but ok!

    • @HeroesNFools
      @HeroesNFools  6 лет назад

      @@redoctober2088 no idea

  • @JonelKingas
    @JonelKingas 6 лет назад

    0:43 oh my fucking god!!!! i jsut screemed cause of hype wtf wtf wtf i need to know how to do that trasform thingy omg omg to cool i allwasy wanted to know those thigns

  • @XxsunnysisxX
    @XxsunnysisxX 2 года назад

    *Init* : ....
    *Me Who's Terrible with Mathematics & Science* : ..................................................................................................................................................................
    *How my brain is LITERALLY processing this entire thing* /\

  • @slimedragon1781
    @slimedragon1781 5 лет назад

    can anybody help me with deleting a script from within the folder instead of in game? I started writing a script but didn't realize I was using the wrong program. After trying to access the script my game crashed. When I try to load back into my world the game continues to crash but if I join another world then it's fine. The worst part is that I have put a lot of work into this world and I can't risk doing anything as simple as creating a new world.

    • @HeroesNFools
      @HeroesNFools  5 лет назад

      Delete the contents of the custom noc folder, you can't target an individual script far as I know

  • @CMGogeta
    @CMGogeta 4 года назад

    I am having a little issue on my script and i want to the npc to have "Defense" I have script activated and the console doesnt run any error message and my npc is doing: NOTHING
    This is what I wrote on the Damaged Hook:
    var dmg = npc.getMaxHealth() - npc. getHealth();
    var Defense = 200000;
    var RDmg = Defense - dmg
    if(dmg > Defense){
    event.setDamage(RDmg);
    } else {
    event.setDamage(null);
    }
    EDIT: Now i am doing no dmg to the npc wtf

    • @CMGogeta
      @CMGogeta 4 года назад

      Um i think its beacuse dbc damage is slow but idk how to fix it

    • @HeroesNFools
      @HeroesNFools  4 года назад

      @@CMGogeta so dbc damage is calculated after custom npc damage. If you check the incoming damage from the event is see the damage was like 1 or 2. I've tried doing this once and it just didn't work right. If you want a varied defence, try seeing if you can adjust the customer npc % damage reduction thing

    • @CMGogeta
      @CMGogeta 4 года назад

      Seems my npc is defending MINECRAFT damage but seems is impossible making a defense for npcs (dbc damage) and thanks for your help

  • @danielwolfe4169
    @danielwolfe4169 3 года назад

    does this work for 1.12 version

  • @triangulumnebula8167
    @triangulumnebula8167 6 лет назад +1

    I don’t know why people think binary is cool and use it in thumbnails like when a “hacker” is doing stuff
    He’s in the cmd prompt and he’s gonna use binary...

    • @HeroesNFools
      @HeroesNFools  6 лет назад

      Because binary is the basics of machine code, so it's fitting when talking about coding. Its very thematic

    • @triangulumnebula8167
      @triangulumnebula8167 6 лет назад

      HeroesNFools Zeshin true, but it’s pretty Overused when you’re scripting.
      I know binary can be a shortcut like when it comes to urls and etc. but it has been going on for a bit
      When someone’s scripting most likely for traffic and views. I’ve seen it many times before

    • @HeroesNFools
      @HeroesNFools  6 лет назад

      @@triangulumnebula8167 thats cool

    • @triangulumnebula8167
      @triangulumnebula8167 6 лет назад

      HeroesNFools Zeshin Thanks, have a good day :P

  • @noobshadi4324
    @noobshadi4324 7 лет назад

    Amazing tutorial, helped a lot. I have a question for anyone who can help me, though:
    how can you change the texture of a skin via URL because setTexture just sets it to the texture address when I want to add a URL.
    Any help would be greatly appreciated!

    • @HeroesNFools
      @HeroesNFools  7 лет назад

      i dont think you can in 1.7.10, the best way i figured a way around it is spawn a new npc with the second skin and kill the old npc. That can get complicated quick tho, but as I said, not sure if you can change the url texture. Not to say you can't, but I havn't found a way how yet

    • @noobshadi4324
      @noobshadi4324 7 лет назад

      Thanks for replying, I have another question though xD. Do you know how to get the health of an NPC? I want to check how much the health is everytime it's hit. I'm really happy you read and replied last time :D

    • @noobshadi4324
      @noobshadi4324 7 лет назад

      Also, how do you access other NPCs from one script so that I can spawn the new NPC with the second skin.

    • @HeroesNFools
      @HeroesNFools  7 лет назад

      noob Shadi432 I think it's npc.getHealth() but I would double check the API. Just check it on the damaged event

    • @HeroesNFools
      @HeroesNFools  7 лет назад

      noob Shadi432 in the world object, if u look through the API there should be a method called spawnClone. It let's u spawn NPCs u saved via the clone tool on the server side

  • @snowyvevo2173
    @snowyvevo2173 5 лет назад

    i can't find where to download nashorn

    • @HeroesNFools
      @HeroesNFools  5 лет назад

      Install Java, like I say in the vid, it'll then be in your Java folder

  • @deathfyre6631
    @deathfyre6631 5 лет назад

    Make an npc that clones himself when he dies, with less health and smaller, until the last phase has 128 tiny ones

    • @HeroesNFools
      @HeroesNFools  5 лет назад

      Totally possible to do by making them save what their health is gonna be before death, and pull their health on spawning. Tho probably need to have a separate npc to track the hp since you want to spawn multiples

    • @deathfyre6631
      @deathfyre6631 5 лет назад

      @@HeroesNFools thanks, and what are the differences between 1.7 scripting and 1.12 since im watching this tutorial but im using 1.12

  • @paytonduran8215
    @paytonduran8215 6 лет назад

    Does anyone know how to download Nashorn to minecraft on a mac?

    • @HeroesNFools
      @HeroesNFools  6 лет назад

      when you install java, it should come with the files

  • @pog9197
    @pog9197 7 лет назад

    I know I know but I cant find my nashorm file and i looked everywhere

    • @pog9197
      @pog9197 7 лет назад

      (I know its late)

  • @Yuseix300
    @Yuseix300 5 лет назад

    How do I make my model hit and shoot

  • @redoctober2088
    @redoctober2088 6 лет назад

    Could you make new tutorial for 1.12.2, pleeease? :D

    • @HeroesNFools
      @HeroesNFools  6 лет назад +1

      I plan to, just currently in the middle of other projects

    • @redoctober2088
      @redoctober2088 6 лет назад

      @@HeroesNFools Great :)

  • @Gooseman0325
    @Gooseman0325 4 года назад

    not that this will ever be seen but I dont have nashorn I used to and its gone :P

  • @kittyofpowerStudios
    @kittyofpowerStudios 6 лет назад

    i can't find nashorn i searched it nothing

    • @HeroesNFools
      @HeroesNFools  6 лет назад

      it comes with java when you install it, as the section where i explain how to install nashorn explains. Are you on a mac or somthing?

  • @redoctober2088
    @redoctober2088 6 лет назад

    Can i use c++ here?

    • @HeroesNFools
      @HeroesNFools  6 лет назад +1

      as far as i know, no, because it requires a scripting language

    • @redoctober2088
      @redoctober2088 6 лет назад

      @@HeroesNFools ok thanks

  • @justderaltgm
    @justderaltgm 5 лет назад

    i just want to know hot to add freaking particles..

    • @elstickisaac9146
      @elstickisaac9146 5 лет назад +1

      DeralTGM go to edit and body

    • @justderaltgm
      @justderaltgm 5 лет назад

      @@elstickisaac9146 i dont have these options i probably have an outdated version ima check

  • @MasterCorneilous
    @MasterCorneilous 2 года назад

    wanna hear a REALLY bad pun. "scripting is pretty hard Init?"

    • @HeroesNFools
      @HeroesNFools  2 года назад

      cringe++;
      If(cringe>limit) exit();

  • @Suo_kongque
    @Suo_kongque 4 года назад

    Is this for 1.7.10

  • @bradleybrand0
    @bradleybrand0 4 года назад +1

    Too confusing for me sadly.

  •  5 лет назад

    Nashorn is german for Rhino
    Nosehorn... yea

  • @Roug3e_Bunny
    @Roug3e_Bunny 6 лет назад

    wow it worked

  • @CMDR_Ryan
    @CMDR_Ryan 7 лет назад

    Is it possible to use a skin url to change the skin when scripting and if so how would i go about it.

    • @HeroesNFools
      @HeroesNFools  7 лет назад

      ThePS4IndieGamer I haven't found a way to yet in 1.7.10. it seems to only change the texture skin. Although the work around is to spawn a different entitity and kill the original for a transform

  • @jevico7477
    @jevico7477 7 лет назад +3

    1.7.10 version requires function. How can i write scripts easily on this version with half-java knowledge?

    • @HeroesNFools
      @HeroesNFools  7 лет назад +1

      JeViCo Show what do u mean, like there's something u can use besides function?

    • @jevico7477
      @jevico7477 7 лет назад +1

      well, on 1.7.10 version i can't write script like the video one. It'll send only error in console. Script'll work only this way: function interact(event) {event.npc.say("Hello, @p");}
      It's so long and hard to understand sometimes. I don't know how to avoid or fix this

    • @HeroesNFools
      @HeroesNFools  7 лет назад +2

      Are u talking like creating a class to use a function from? It's jank but u can have an NPC at spawn which on init creates an object containing functions and variables, stores it in the world.setTempData function, then pull that object elsewhere in any NPC with world.getTemData. I've found that helps to lessen the work load

    • @jevico7477
      @jevico7477 7 лет назад

      no-no-no-no-no. here the problem(screenshots): imgur.com/a/lLzZM However npc.say works perfect

    • @HeroesNFools
      @HeroesNFools  7 лет назад +1

      JeViCo Show don't capitalize the s, it's npc.setMaxHealth

  • @melongaming7204
    @melongaming7204 3 года назад

    i like cheese

  • @Raveniko19
    @Raveniko19 6 лет назад

    7:12

    • @HeroesNFools
      @HeroesNFools  6 лет назад

      Muhammad Syazani what about collide?

  • @pog9197
    @pog9197 7 лет назад

    found it nvm

  • @kittykitcatcat2407
    @kittykitcatcat2407 7 лет назад

    Whaaaaaaaaaaaa?

    • @HeroesNFools
      @HeroesNFools  7 лет назад

      GodCatCreator xD was it too confusing? Anything I could clarify?

    • @kittykitcatcat2407
      @kittykitcatcat2407 7 лет назад

      No no, i mean i didn't simply know you could code, i made the trelamium mod and i know how to code so :P. I understand everything in the video. Sorry, i should have clerified the meaning of the comment a bit more. I wont do this again.

    • @HeroesNFools
      @HeroesNFools  7 лет назад

      GodCatCreator xD oh XD ya I program for a living

    • @kittykitcatcat2407
      @kittykitcatcat2407 7 лет назад

      Do you know C#, if you do you could make a terraria mod yourself!

    • @HeroesNFools
      @HeroesNFools  7 лет назад

      GodCatCreator xD I do, it's the language I know the most, thing is not sure when I'd have the time to mod past the yt stuff XD

  • @deaddudeg6701
    @deaddudeg6701 Год назад

    i have an issue when i put nashorn in mods folder, minecraft says that it isnt an actual mod file

  • @silversable4825
    @silversable4825 4 года назад

    i cannot find nashorn anywhere the search bar doesnt even show anything

    • @HeroesNFools
      @HeroesNFools  4 года назад

      did you make sure to install java?

    • @silversable4825
      @silversable4825 4 года назад

      @@HeroesNFools well i think so it sould be

    • @HeroesNFools
      @HeroesNFools  4 года назад

      @@silversable4825 try reinstalling it, and if you're having trouble search up how to find nashorn for your machine. I think it differs for mac if you're using a mac, and probly differs if you're using an older version of windows

    • @silversable4825
      @silversable4825 4 года назад

      @@HeroesNFools ohok ill try that