Luis C.M
c3b9096295
Scripted particles can now spawn anywhere in the world, not just attached to an entity.
...
ScriptEntityParticle renamed to ScriptParticle, and EntityCustomFX renamed to CustomFX.
Re-enabled OpenGL blending for custom particles.
2022-05-06 03:38:24 -05:00
Luis C.M
2d2933e873
ScriptEntityParticle:
...
-Particles can now start or end at a certain tick, and loop or not loop.
-Added setSize(), getWidth() and getHeight() functions.
-Added setOffset(), getOffsetX(), and getOffsetY() functions.
-Added setAnimRate() and getAnimRate() functions.
2022-05-06 01:22:48 -05:00
Luis C.M
728269ff87
ScriptEntityParticle:
...
-Added width, offset, and animation rate attributes to particles.
-Added setSize(), getWidth() and getHeight() functions.
-Added setOffset(), getOffsetX(), and getOffsetY() functions.
-Added setAnimRate() and getAnimRate() functions.
2022-05-06 00:22:28 -05:00
Luis C.M
f16e2402a6
ScriptEntityParticle:
...
-Added scripted particles which can not face the player, having their angles be absolute in the world instead of relative to the camera.
-set/getFacePlayer() functions added.
2022-05-04 18:08:54 -05:00
Luis C.M
bfd872a239
ScriptEntity:
...
-Added getEntityId() function
-Moved getUniqueId() function
ScriptWorld:
-Added getPlayerByUUID(uuidstring) function
-Added several functions from World and WorldServer: isBlockFreezable,isBlockFreezableNaturally,canBlockFreeze,canBlockFreezeBody,canSnowAt,canSnowAtBody,getTopBlock,getHeightValue,getChunkHeightMapMinimum,getBlockMetadata,setBlockMetadataWithNotify,canBlockSeeTheSky,getFullBlockLightValue,getBlockLightValue,playSoundAtEntity,playSoundToNearExcept,getEntityByID,spawnEntityInWorld,getClosestPlayerToEntity,getClosestPlayer,getClosestVulnerablePlayerToEntity,getClosestVulnerablePlayer,countEntities,setTileEntity,removeTileEntity,isBlockFullCube,getSeed,setSpawnLocation,canLightningStrikeAt,isBlockHighHumidity
ScriptTileEntity:
Added a ScriptTileEntity class for MC Tile Entities, with nearly all its functions.
ScriptBlock:
-Added getTileEntity() and setTileEntity() functions using the new ScriptTileEntity class as a return value and parameter respectively.
API:
-Added playSoundAtEntity and playSoundToNearExcept functions.
-Added set/getMOTD() functions.
2022-05-03 23:09:21 -05:00
Luis C.M
d41b3b7a7e
ScriptEntity:
...
-Added setInvisible, setSneaking, setSprinting, and getUniqueID() functions.
ScriptLivingBase:
-Added getLookVec() function
ScriptPlayer:
-Added stopUsingItem(), clearItemInUse(), playSound(name,volume,pitch), mountEntity(entity), dropOneItem(shouldDropStack), canHarvestBlock(block), interactWith(entity) functions
2022-05-03 11:26:04 -05:00
Luis C.M
b309738c0b
Fixed swingHand() function for ScriptPlayer
2022-05-02 01:41:43 -05:00
Luis C.M
65bb3b5939
Important fix to some NPC hook scripts crashing, added option and dialog object fields to local NPC dialog and NPC dialog closed scripts
2022-04-09 00:17:16 -05:00
Luis C.M
50fe08ce2e
Merge branch 'KAMKEEL:master' into master
2022-03-23 03:55:08 -05:00
Luis C.M
769a574210
Fixed setHunger/Saturation using client-side functions from FoodStats
2022-03-19 22:51:39 -05:00
Luis C.M
df2e742cbb
Added overloaded spawnParticle functions for ScriptEntity
2022-03-16 23:15:30 -05:00
KAMKEEL
d867017871
Merge branch 'master' of https://github.com/KAMKEEL/CustomNPC-Plus
2022-03-15 00:21:00 -04:00
luisc
1cb27a9e7a
Implemented XYZ rotations correctly, now clearly rotate around an axis respective to the player's camera.
2022-03-04 18:08:05 -06:00
luisc
7f8246e04e
PARTICLE ROTATION
2022-03-02 18:18:03 -06:00
luisc
c2a669fbeb
The setForm() function in ScriptDBCPlayer prevents crashes from form levels that are out of bounds now.
2022-02-21 20:16:42 -06:00
KAMKEEL
e42c4cab7e
Update ScriptLivingBase.java
2022-02-05 20:35:44 -05:00
luisc
70536de655
Removed checkQuestCompleted from ScriptPlayer, now redundant with new quest checks that happen periodically.
2022-02-02 07:21:45 -06:00
luisc
1ebf747302
Optimized NBT access of player data when checking quest completion, player data variable is passed down to lower functions.
...
Player's quests are checked for completion every couple seconds now.
2022-02-02 07:18:33 -06:00
luisc
632e92f82e
Added set/getPitch to ScriptEntity
2022-02-01 05:10:38 -06:00
luisc
90ca1a0200
Added isAirborne() function to ScriptEntity
2022-02-01 02:30:50 -06:00
luisc
9109c134c1
Added more general setMotion function with x y and z parameters.
2022-01-31 23:59:15 -06:00
luisc
1af875aea9
Fixed concurrent modification bug with NPC tasks.
2022-01-31 23:01:52 -06:00
luisc
7de585843d
Added get/setHunger, and get/setSaturation functions for ScriptPlayer.
...
The player KeyPressed event now sends a list of keys that are currently pressed by the player.
2022-01-31 20:16:00 -06:00
luisc
534f716991
Implemented Scripted Overlays which stay on the player's screen. Overlays persist in the client, and can be removed from the screen as well.
2022-01-30 04:05:01 -06:00
luisc
989effb5c5
Added more a full inventory to NPCs, selectable on two tabs and double-point values for NPC droprates.
2022-01-27 03:50:36 -06:00
luisc
f14337f1bb
Added config for NPC sizes, default 100.
2022-01-25 14:54:15 -06:00
luisc
092b3ce0c1
Fixed overloaded hurt(damage,entity) function not working when an entity is to be hurt by a player
2022-01-22 22:50:01 -06:00
luisc
007660f16f
Added collision options for CNPCs.
2022-01-14 19:07:41 -06:00
luisc
555ceb741f
Added a modifiable and toggleable flying height limit to NPCs
2022-01-13 05:28:20 -06:00
luisc
04def38b63
Added dialog events to scripted player events
2022-01-12 22:59:03 -06:00
luisc
6b9cfb9d25
Implemented custom GUIs.
2022-01-12 04:44:08 -06:00
luisc
d50f51e208
Added handler support to NPC API.
2022-01-10 15:21:48 -06:00
luisc
d74a1f2bee
Added ScriptBlockPos functionality with get/setPos to ScriptEntity
2022-01-04 03:50:50 -06:00
luisc
c3541df1dc
Fix to getFormLevel() in ScriptDBCPlayer
2022-01-04 00:06:48 -06:00
luisc
32792e7d6f
Added updateClient() function to ScriptNpc.
2022-01-03 21:30:38 -06:00
luisc
de5f119fd7
Added setJob and setRole functions to ScriptNpc
2021-12-29 22:34:51 -06:00
luisc
b330678104
Added several projectile functions to ScriptNpc.
2021-12-29 17:17:06 -06:00
luisc
e6f97784ff
Added get/setRotationType to ScriptNpc. Added get/setMotion for x, y, z components to ScriptEntity. Fixed an NPC wand crash.
2021-12-29 16:22:05 -06:00
luisc
e676c808e3
Fixed getFormLevel not working when player form NBT is "pty". ScriptBlock now correctly sets its tile field, allowing players to access blocks as chests, crates, etc.
2021-12-26 21:08:35 -06:00
luisc
69b7a9aab4
Fixed errors in remove and clear functions for bonusAttribute in ScriptDBCPlayer
2021-12-15 06:46:27 -06:00
luisc
9d9c481bdd
Added alternative bonusAttribute function for just get remove and clear, as well as dedicated functions for all bonus attribute functions.
2021-12-15 06:19:16 -06:00
luisc
98d2d943ae
Added bonusAttribute function, which works the same as the command.
2021-12-15 05:43:07 -06:00
luisc
e9a4471cd2
Added getSkills and setSkills functions to ScriptDBCPlayer
2021-12-15 03:19:34 -06:00
luisc
934d5a69d6
Added getFormLevel and setFormLevel to ScriptDBCPlayer
2021-12-15 03:14:48 -06:00
luisc
12cb6a2937
Added blocking() function to ScriptPlayer to check whether the player is blocking.
2021-12-15 00:02:27 -06:00
luisc
cad275e845
Added isBlocking, set/getHairCode, set/getExtraCode, and getInventory functions to ScriptDBCPlayer
2021-12-14 21:41:57 -06:00
luisc
cf91d8638f
Fixed getDBCPlayer not returning a DBC Player instance.
2021-12-13 18:33:20 -06:00
luisc
03395ad750
Added getWorld() function to ScriptEntity.
2021-12-13 16:47:15 -06:00
luisc
eac3d2c214
Added getSpeed() and setSpeed(speed) functions to ScriptNpc
2021-12-12 23:10:55 -06:00
luisc
ba0f21dc26
Revert "Added npc.setPoweredTexture(directory) and npc.getPoweredTexture() functions, along with a new powered texture resource."
...
This reverts commit ba4bf107b5 .
2021-12-11 08:41:54 -06:00