Commit Graph

19 Commits

Author SHA1 Message Date
Teriuihi 9d39e4cc7a Add GiveSpawner command and enhance spawner functionalities
Implemented the GiveSpawner command to allow players to receive specific mob spawners. Added validation and namespaced key handling for mob types and entities to ensure proper functionality when placing spawners. Refactored existing code to use the new EntityTypeChecker utility.
2024-10-19 19:10:37 +02:00
Teriuihi 8d804c95ba Fix incorrect attribute modification calculation
Correct the calculation of the value to be added to an attribute. Adjusted the logging statement to reflect the new calculation method, ensuring accurate debug information.
2024-10-19 00:10:23 +02:00
Teriuihi 85bafe43a8 Fix incorrect attribute modification calculation
Correct the calculation of the value to be added to an attribute. Adjusted the logging statement to reflect the new calculation method, ensuring accurate debug information.
2024-10-19 00:08:34 +02:00
Teriuihi 54fa8c2f81 Fix incorrect attribute modification calculation
Correct the calculation of the value to be added to an attribute. Adjusted the logging statement to reflect the new calculation method, ensuring accurate debug information.
2024-10-19 00:06:34 +02:00
Teriuihi 7704d75960 Update debug log message in EntityAttributeModifier
Changed the debug log message to reflect the addition operation for attributes, providing clearer information during debugging and better tracing of value changes.
2024-10-19 00:02:20 +02:00
Teriuihi 2c3174d24f Fix retrieving attribute from config
The code now uses String.format for constructing attribute and value keys in configuration sections. This change improves readability and maintainability of the code. It ensures consistency in the construction of these strings.
2024-10-18 23:58:21 +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 85af552f47 Rename event command to custommobs in plugin.yml
Updated the 'event' command key and its respective attributes in plugin.yml to 'custommobs'. This includes changing the description, permission field, and usage syntax to align with the new command name.
2024-10-18 19:56:19 +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 989873247a Fix main class path in plugin.yml
Corrected the main class path from com.alttd.event.Main to com.alttd.custommobs.Main in the plugin.yml file. This change ensures the plugin loads the correct main class when initialized.
2024-10-18 19:40:42 +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 2127933b0a Update Gradle build command in Jenkinsfile
Changed the Gradle build step to use 'bash' for executing the gradlew script. This ensures compatibility across different environments where the script might need a specific shell interpreter.
2024-10-18 19:30:54 +02:00
Teriuihi 89122cfa4b Update Gradle build command in Jenkinsfile
Revised the Gradle stage to use 'gradlew build' instead of 'gradlew shadowJar' for better compatibility. This change ensures the build process aligns with the default Gradle task and simplifies the Jenkins pipeline configuration.
2024-10-18 19:27:23 +02:00
Teriuihi 2345f3b9a3 Fix Gradle build command in Jenkinsfile
Changed the Gradle command to explicitly run with bash. This ensures compatibility across different environments where the default shell might cause issues. The stage remains the same, focusing only on command execution improvement.
2024-10-18 17:53:18 +02:00
Teriuihi 5d843211c0 Initial commit 2024-10-18 17:49:49 +02:00