Commit Graph

9 Commits

Author SHA1 Message Date
Teriuihi 77f9cfe0a6 Add logging to debug entity attributes
Inserted debug logs to track attribute setting and entity modifiers. This will aid in troubleshooting issues related to entity spawning and attribute application.
2024-10-18 23:21:49 +02:00
Teriuihi c8cb2309f6 Rename and enhance AttributeModifier
Renamed AttributeModifier to EntityAttributeModifier for clarity. Added Main dependency and improved attribute setting logic with namespaced keys for better error handling and debugging. Updated MobTypes to pass Main instance accordingly.
2024-10-18 22:59:47 +02:00
Teriuihi 73cfb772b1 Update debug logs to info level with debug tags
Changed log.debug calls to log.info with "DEBUG" tags for consistency and improved visibility during debugging. This will ensure that debug information appears in the logs without changing log level settings.
2024-10-18 21:49:57 +02:00
Teriuihi 941b7d0d8f Adjust spawn location coordinates for target blocks
Modified the spawnable target block location by adding 1 to the Y-coordinate. This change ensures that entities spawn above the target block, preventing them from spawning inside it or in obstructed areas.
2024-10-18 20:18:05 +02:00
Teriuihi fb2bbb70d4 Expand spawn command syntax and improve tab completion
Updated the spawn command to require an additional <mob> argument. Enhanced the tab completion functionality to provide context-sensitive suggestions based on the number of arguments.
2024-10-18 20:11:37 +02:00
Teriuihi a8ac621f51 Fix default abilities list initialization
Previously, the default value for the abilities list was null, leading to potential NullPointerExceptions. This change initializes the default list as an empty list to prevent such errors.
2024-10-18 19:50:13 +02:00
Teriuihi dad2ce21e4 Add null check for configuration section in MobTypes
Ensure that the configuration section is not null before attempting to retrieve keys. This prevents potential null pointer exceptions and adds a warning log for missing configuration sections.
2024-10-18 19:43:06 +02:00
Teriuihi bfb8c122da Add CustomMobs plugin configuration and update command logic
Introduced a new configuration file for the CustomMobs plugin, specifying its details and commands. Updated the CommandManager to use "custommobs" instead of "fish" and added an alias "cm" for command execution.
2024-10-18 19:39:07 +02:00
Teriuihi 5d843211c0 Initial commit 2024-10-18 17:49:49 +02:00