1whohears
5740519ed2
ScriptRoleTrader.getSellOption returns the item being sold instead of the currency
2022-06-08 12:12:18 -05:00
1whohears
825c42fc52
npc.isSoulStoneinit
2022-06-07 12:31:49 -05:00
1whohears
17fa6328c9
fixed crash when hovering over a trader item slot
...
HashMap.put doesn't work the way I thought it did
2022-06-06 14:38:33 -05:00
1whohears
a675033d62
String data can't be null
2022-05-29 14:42:28 -05:00
1whohears
fb0ff50994
added get set refuse soul stone
...
one may want an npc to not be able to be picked up by soul stone in any circumstance
2022-05-29 02:46:24 -05:00
1whohears
9fef65b194
get the name of the player who spawned this npc with soulstone
2022-05-28 23:40:01 -05:00
1whohears
b18d0965f2
script player.sendMessage uses String as color parameter
2022-05-28 22:53:57 -05:00
Luis C.M
0028328db4
More fixes to setting NPC model types.
2022-05-28 07:06:38 -05:00
Luis C.M
968b43a321
setModelType() only takes 0 for Steve, or 1 for Alex as values.
2022-05-28 06:31:52 -05:00
Luis C.M
76802d1926
Pushed IDBCPlayer interface.
2022-05-27 15:55:15 -05:00
Luis C.M
8d4a7ea0b6
More merge fixes
2022-05-27 15:54:12 -05:00
Luis C.M
ec5fc71413
Merge branch 'master' into dev
...
# Conflicts:
# src/main/java/noppes/npcs/scripted/ScriptFaction.java
# src/main/java/noppes/npcs/scripted/ScriptWorld.java
# src/main/java/noppes/npcs/scripted/entity/ScriptNpc.java
# src/main/java/noppes/npcs/scripted/entity/ScriptPlayer.java
# src/main/java/noppes/npcs/scripted/interfaces/IEntity.java
# src/main/java/noppes/npcs/scripted/interfaces/IWorld.java
# src/main/java/noppes/npcs/scripted/interfaces/entity/ICustomNpc.java
# src/main/java/noppes/npcs/scripted/interfaces/entity/IPlayer.java
2022-05-27 15:31:02 -05:00
Luis C.M
301e113be2
Added quest tracking, need to add objectives list and turn in info too.
2022-05-27 14:32:24 -05:00
1whohears
f83487f67b
removed setblock with the Minecraft block class as a parameter
2022-05-27 11:28:01 -05:00
1whohears
0d2011b2ba
added some doc comments
2022-05-26 20:55:11 -05:00
1whohears
81033e5a9c
renamed getFactionEnemies to getEnemyFactionIds
...
IFaction[] getFactionEnemies();
I think this should be implemented in PR #50 because IFaction is setup better there
2022-05-26 20:47:46 -05:00
1whohears
a49dfff86a
added world.rayCastBlock(IPos, IPos, int)
2022-05-26 20:44:44 -05:00
1whohears
3cf780d9a2
add get reset disable purchase num by slot number and IPlayer
...
needed to add get/setStringIntegerArrayMap to NBTTags so save the player purchases and disabled slots with a String int[] hashmap
2022-05-26 15:57:24 -05:00
1whohears
e7250158ac
Update ScriptFaction.java
2022-05-26 03:52:44 -05:00
1whohears
3d02ce3ce0
world.rayCastBlock uses double[] for parameters
2022-05-26 03:04:13 -05:00
1whohears
77ee403720
RoleFollowers will not despawn if they have an owner
...
RoleFollowers canDespawn field will be changed back to the value set by the player in the gui/api if they stop following a player
2022-05-26 03:00:49 -05:00
1whohears
6698e8619c
world.getNearestAir returns IPos and takes IPos as parameter
2022-05-26 02:10:25 -05:00
1whohears
bc85756476
player.getLookingAtBlock returns IBlock
2022-05-26 01:51:05 -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
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
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
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
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
71aff8f78f
Fix for updating overlay and powered textures.
2022-05-16 01:22:33 -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
115b66d0c6
NPC flight fixes and a minor change to the createIItemStack function.
2022-05-13 23:14:55 -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