Commit Graph
2463 Commits
Author SHA1 Message Date
1whohears bc85756476 player.getLookingAtBlock returns IBlock 2022-05-26 01:51:05 -05:00
1whohears 067dafdbfa removed setting npc.stats.canDespawn to false in follower role
this was pointless
what I actually want to do is disable despawning if the npc has an owner
2022-05-26 01:47:51 -05:00
Luis C.M 2895f7a76a Removed overridden getDimension() function, and an unused HashMap for skin overlays from ScriptPlayer. 2022-05-26 01:46:38 -05:00
1whohears 84973a025a moved projectilesKeepTerrain to DataStats 2022-05-26 01:45:10 -05:00
1whohears 422dd3fc90 added trader.slotdisabled to trader gui
I just copied what was done to display the trader.insufficient and added trader.slotdisabled to en_US.lang
2022-05-26 01:43:17 -05:00
1whohears aba637be14 removed redundant faction functions
Luis C.M. will add API.getFactions() which returns the FactionController. All these functions use the faction controller anyway.
Also Luis PR already has entity.getDimension and world.spawnEntity
2022-05-25 23:56:36 -05:00
1whohears b97d4eeeb2 added resetPurchaseNum(int slot) 2022-05-25 18:38:54 -05:00
Kamron Vaswani 3b1172a284 Merge pull request #49 from StrangeMan1580/master
Full russian retranslation of the mod with additional localization and fixes
2022-05-25 11:58:03 -04:00
Luis C.M 38e960d475 x32 textures now compatible with x64 models. 2022-05-24 19:30:24 -05:00
1whohears a4361b8420 Added various things to the API and other small changes
This adds some useful functions to the api and a few other changes.
I had been creating a custom build of this mod while working on stuff because I couldn't figure out how to do certain things without changing the mod. So this is a collection api features that I think everyone would find useful.

Api additions:
-purchase counting, and disabling trades for the trader role. (if a trade is disabled the gui still says insufficient funds, maybe allow a custom message to appear) added get the traders currency items and sell items.
-if an npc's projectile does explosive damage, you can disable it destroying blocks even if mob griefing is on
-int arrays as stored data for entities
-entity.playSound(...)
-get set if npcs can drown
-player read and unread dialog
-player set faction points
-extra player.sendMessage functions to add custom colors/bold/underline
-player clear inventory
-get set if a follower npc is following a player or waiting
-a bunch of stuff to script faction
-is an item food and how many food points?
-get scoreboard team by it's name
-get and create factions from the script world
-world.rayCastBlockPos is used for getting what block a player is looking at.
-world.getNearestAir is meant to get the block of air above or around the result of world.rayCastBlockPos, or at least that's how I've been using it.

Changes:
-in NoppesUtilServer I feel like if an npc is cloned it's ticksExisted or age should bee zero
-follower npcs should have the canDespawn field automatically set to false...? maybe make it an option
2022-05-24 03:06:16 -05:00
Luis C.M 95bc4bf42d Renamed TransformData to DataTransform. 2022-05-24 01:08:23 -05:00
Luis C.M 33bb0307e9 Separated data objects and data controller objects in the noppes.npcs.controllers package. 2022-05-24 01:07:50 -05:00
Luis C.M d040fa3da7 Overlays blend with alpha values whether glowing or not. 2022-05-24 00:58:12 -05:00
Luis C.M 991635f4cc Sped up how fast hotbar items are switched when players have a skin overlay on. 2022-05-24 00:48:33 -05:00
Luis C.M 532180f00f Fixed NBT issue with player overlays. 2022-05-24 00:36:47 -05:00
Luis C.M 82938fe5cd Fixed NBT issue with player overlays. 2022-05-24 00:11:34 -05:00
Luis C.M b6c62332ed Fixed SkinOverlay objects not having their parent object initialized correctly. 2022-05-23 20:47:32 -05:00
Luis C.M 6220a8ce14 -Overlays for players and NPCs are now grouped in an "overlay handler" object, similar to how you retrieve timers.
-Fixed client NPC overlay updates.
2022-05-23 20:41:32 -05:00
Luis C.M 6fa5d0d8de Improved alpha blending for skin overlays 2022-05-23 00:45:32 -05:00
Luis C.M 40fce63734 Skin overlays render on top of Saiyan tails. 2022-05-22 05:17:01 -05:00
Luis C.M d93ffc859c Skin overlays render on top of Namekian antennae now. 2022-05-22 05:14:13 -05:00
Luis C.M fd9e0d8ead Skin overlays when viewed in first person now correctly apply moving texture updates. 2022-05-22 05:08:43 -05:00
Luis C.M 0a067eceb5 Added DBC support for overlays. 2022-05-21 20:00:45 -05:00
Luis C.M 7bd0155dbf Implemented player skin overlays to be compatible with other mods' custom player renderers (Renders on top using events instead of registering a new renderer). 2022-05-20 05:02:18 -05:00
Luis C.M b9266c3cc5 Added plenty more documentation for the javadoc. 2022-05-17 18:02:09 -05:00
Luis C.M af4b467931 Updated the arrangement of interfaces and functions of ScriptParticle to be more readable for future javadoc filling. 2022-05-17 05:35:08 -05:00
Luis C.M 57ce6b7a26 Removed plenty of unnecessary setters from ScriptParticle. 2022-05-17 05:26:45 -05:00
Luis C.M fd1aa40456 Added some documentation to a few interfaces for the javadoc. 2022-05-17 05:24:57 -05:00
Luis C.M 648206f5ba Updated interfaces to have the new skin overlay functions. 2022-05-17 04:53:41 -05:00
Luis C.M 41401d0521 Removed redundant ScriptSkinOverlay, using SkinOverlayData in place of it, which now implements ISkinOverlay. 2022-05-17 04:46:06 -05:00
Luis C.M 8bc3190295 Implemented multiple overlay layers for CNPCs, replaces powered textures. 2022-05-17 04:34:46 -05:00
Luis C.M e8a3eb8344 Implemented offsets for player skin overlays 2022-05-17 00:01:31 -05:00
Luis C.M f9fcd6b9f8 Added alpha, size, scale, and speed attributes to player skin overlays. 2022-05-16 23:27:11 -05:00
Luis C.M 83fbccdf55 Added setAlpha to skin overlays 2022-05-16 22:14:11 -05:00
Luis C.M 6f9358c1ca Glow can be disabled/enabled on skin overlays 2022-05-16 22:04:54 -05:00
Luis C.M dbfbab7be2 Players can now have multiple skin overlays, just like GUI overlays. 2022-05-16 18:47:16 -05:00
Luis C.M 9a0aae50e0 Implemented custom player overlays. 2022-05-16 05:45:00 -05:00
Luis C.M d6b1dba9bc Overlays and powered effects now also share visibility with NPCs. 2022-05-16 04:11:31 -05:00
Luis C.M a4a013387e Cloaks are now share visibility with NPCs main model. 2022-05-16 04:08:22 -05:00
Luis C.M 71aff8f78f Fix for updating overlay and powered textures. 2022-05-16 01:22:33 -05:00
Luis C.M d82b9c972e Fix for enabling/disabling global scripts. 2022-05-16 00:53:07 -05:00
Luis C.M 89ac9f5225 Fix for the global script GUI menu. 2022-05-16 00:42:40 -05:00
Luis C.M aa9a9499aa Implemented custom powered textures for NPC's, overlays that can have their textures move. 2022-05-15 16:47:48 -05:00
Luis C.M ec9466c011 Diagonal flight path options now require the two horizontal and vertical path options in an NPCs way to also be clear. 2022-05-15 01:56:00 -05:00
Luis C.M 1f79b52176 More fixes for flight pathing 2022-05-15 01:21:06 -05:00
Luis C.M 44459a23a7 More fixes to flight pathing:
PathNavigateFlying:
Flight pathing checks if it's stuck every 10 ticks now, and clears the path to be able to path again if so.

FlyPathFinder:
If a point on the path is air, the path finder checks if the NPC will run into any blocks above that point due to its height.
2022-05-14 01:52:20 -05:00
Luis C.M f9f73a75d2 More fixes to flight pathing. 2022-05-14 01:15:54 -05:00
Luis C.M 115b66d0c6 NPC flight fixes and a minor change to the createIItemStack function. 2022-05-13 23:14:55 -05:00
Luis C.M 02d225a269 Fix for the "npc" field in npc events/scripts. 2022-05-11 22:55:26 -05:00
Luis C.M b20babbb35 Added implementations for ScriptItemArmor, ScriptItemBlock, and ScriptItemBook, which all extend ScriptItemStack. 2022-05-11 22:42:31 -05:00