Skip to content

LunaNPC 0.2.0

Latest

Choose a tag to compare

@lunacore-ai lunacore-ai released this 29 Oct 09:28
  • Added Patrol job: placed NPCs walk a saved route in a loop, back and forth or in random order, and pick up at the nearest point after a fight.
  • Added Route Creator stick: click the ground to place up to 50 points, then sneak-click to name the route. Its menu edits routes, and one route can serve many NPCs.
  • Added Bodyguard job: guards chosen players, alliances or NPCs, or whoever hires it with a right-click. It stays close and fights anyone who hurts its protectee.
  • Added Bodyguard rules for retreating, teleporting to catch up (also across dimensions), protecting a player through respawn, and what to do when it gives up.
  • Added Bodyguard friendly fire switch, so the ones it guards can't hurt it by accident.
  • Added Bodyguards can be hired through new dialog actions and /lunanpc bodyguard assign|dismiss|order. The hirer can tell it to follow, stay, go home or leave.
  • Added Chunk Loader trait: keeps the chunks around the NPC loaded, so patrols and bodyguards keep going with no player nearby.
  • Added Download Skin in the Model picker: download a player's skin once by name or URL, and everyone sees it. It is saved with the world, so later skin changes never affect it.
  • Added Skin Settings for downloaded skins: rename, switch between classic and slim arms, or delete.
  • Added Edit access per NPC on the General tab: API only, in-game only, or both. API-only NPCs show a lock in the NPC lists.
  • Added Fixed accuracy slider that sets how accurate every shot is (0–100%) when dynamic accuracy is off.
  • Added Target In Sight value for advanced combat conditions, so attacks can stop firing through walls.
  • Added Spears are carried in the charge pose while running and play their vanilla sounds, with vanilla's charge bonus when gear affects stats.
  • Added More models can hold items or wear heads, skulls and blocks, and the Inventory tab only enables the slots a model can show. (Suggested By @daekthielen)
  • Added The Manage Permissions log shows player heads and records skin downloads, edits and deletes.
  • Added Ops get a red chat warning when a saved NPC's setup can't work as configured.
  • Added Setup warnings for patrol, bodyguard, Chunk Loader and spawn-area rules, such as a patrol without a route.
  • Added API: RouteRegistry, NpcRoute, NpcPatrolSubType, NpcBodyguardSettings and patrol and bodyguard controls on NpcInstance, with the onPatrolPointReached, onBodyguardLocked and onBodyguardReleased events.
  • Added API: LunaNpcApi.skins(server) with SkinRegistry to manage downloaded skins.
  • Added API: NpcEditAccess with editAccess() / setEditAccess on NpcDefinition. Changes the access forbids throw IllegalStateException.
  • Added API: AllianceRegistry.setMatchAllPlayers and setFriendlyFire.
  • Fixed NPCs stuck chasing an unreachable target ignored players hitting them.
  • Fixed Melee attacks landed through walls.
  • Fixed Melee NPCs got stuck below their target or walked back into pits instead of going around.
  • Fixed Wide NPCs needed gaps one block wider than their body.
  • Fixed NPCs knocked off their route kept pushing at the missed ledge instead of finding a new way.
  • Fixed NPCs that gave up on a target never chased it again while it stayed in view.
  • Fixed Left-clicking an item slot in a menu cleared it instead of opening it.
  • Fixed NPCs routing around a wall kept turning back and edged slowly along it.
  • Fixed NPCs hopped constantly when brushing past walls, slowing them to a crawl.
  • Fixed Fast NPCs circled around corners and obstacles instead of rounding them.
  • Fixed Alliance changes made through the API didn't reach connected players right away.
  • Changed LunaNPC now runs on Minecraft 26.3.
  • Changed Attack speeds faster than 0.5s now really hit that fast, and a new speed applies on the next attack.
  • Changed Crossbows stay raised and reload right after each shot like a pillager, and bows stay drawn for the whole fight.
  • Changed NPCs no longer flip weapons at the boundary between close and long range.
  • Changed Armed illagers use their vanilla weapon poses.
  • Changed The Main Hand and Ranged Weapon slots now explain what they do.
  • Changed Items that don't fit in a full inventory drop at the player's feet instead of toward the NPC.
  • Changed API: NpcRegistry.create and getOrCreate now take an NpcEditAccess; pass NpcEditAccess.SHARED to keep the old behavior.
  • Changed API: NpcJobSettings, NpcTraitsSettings and NpcProjectileSettings have new components, so direct constructor calls need updating. The with… methods are unaffected.

Minecraft 26.3
Download https://lunacore.dev/LunaNPC/download/0.2.0
SHA-256 5f61e304d7423f10c47ef02cbd8ac36c7021101e0d6a56911c2b15a99ea6d985