Releases: AndrewScripter587/Customizable-Dragon-AI
v1.3.0
Just a "simple" release to support 25w02a.
Notice: This datapack is now public on Modrinth, and this will be the last GitHub release as it's much easier to stop releasing on GitHub and only release on Modrinth. The source code will still be updated here, though. To get releases, visit the Modrinth page.
Changes
- Added support for 25w02a's text component format changes as on the previous version the config functions just didn't load at all because you can't newline with "\n" anymore in /tellraw because text components now use SNBT instead of JSON, and you can't newline with "\n" in SNBT string values.
- Embedded my Version Detector datapack into this one because its needed in order to detect 25w02a to use the patched SNBT-based config ui element functions.
- Some UI changes as for whatever reason after the changes for supporting 25w02a made the config screens not perfectly aligned with the max open-chat height, which is extremely unsatisfying, so I added a few things to make it fill the chat perfectly again.
Customizable Dragon AI v1.2.0
Additions
Config Pages
- There is now 2 pages, that you can access using the buttons at the config screen.
- Moved "Enable Debug Visuals" to page 2 to make room for the page buttons.
New Setting: Disable Vanilla Charging
- Found in page 2 of normal config
- Disables the vanilla charging that occurs when the dragon leaves the perch if it didn't use its breath attack during the perch because there was no player close enough to attack, and there's a player close enough to charge at.
- Overridden by "Replace Vanilla Charging".
- Currently isn't locked in the config when "Replace Vanilla Charging" is enabled, but it will lock in the future, just wanted to get this release out.
Customizable Dragon AI v1.1.3
No more annoyances update
Additions
- You can now disable the startup text
- You can either disable it globally, or for yourself only.
- Doesn't make much of a difference except after a reload or in singleplayer as you usually won't see the message otherwise because you likely won't be on the server when the message is scheduled to appear.
Customizable Dragon AI v1.1.2
Whoops forgot about the startup text
Changes
- Changed the text that shows up when the pack loads to use the new name
Customizable Dragon AI v1.1.1
Name Change Update
New Branding
- Changed name from "Old Dragon Mechanics" to "Customizable Dragon AI"
- Changed IDs from "olddragons" to "dragonai" to accommodate the name change.
- This name change is because "Customizable Dragon AI" now better suits the datapack than "Old Dragon Mechanics" does.
Other Changes
There might be other changes to the datapack, I don't know. I can't remember if I changed anything since last release or not
Old Dragon Mechanics v1.1.0
Additions:
More function-based tools:
- olddragons:tools/forcechargeatentity {selector: "target selector here"}
- makes the invoker (if it's an Ender Dragon) charge at the entity specified in the "selector" macro ( /function olddragons:tools/forcechargeatentity {selector: "string, should be a player name, stringified uuid, or a target selector"} )
- olddragons:tools/goto {x: (number), y: (number), z:(number)}
- makes the invoker charge at the specified position specified using the x, y, and z macros
- olddragons:tools/gotorandom {xl: (number), xh: (number), yl: (number), yh: (number), zl: (number), zh: (number)}
- makes the invoker charge at a random position inside the box specified by the parameters, where the parameters ending in "l" mean "lower", meaning the lower bound of that axis of the box, where the parameters ending in "h" mean "higher", representing the higher bound of that axis of the box. Think of it as xl, yl, and zl being a corner of the box, and xh, yh, and zh being the opposite corner of the box.
The chat-based config menu now has thre buttons at the bottom, one to refresh the config menu, another acting as a shortcut for /reload, to make developing the datapack easier, and the last being a button to open a new config screen (see below)
New config screen!
- Found in a button at the bottom of the main config
- Meant for storing beta and unstable settings
- Stores only one setting as of now (see below)
- Button to return to the normal config is at the bottom of the beta config menu.
New beta setting, Use Custom AI
- Makes all ender dragons use a custom ai that uses olddragons:tools/gotorandom to move the dragon around.
- Currently only makes the dragon move around randomly, but using it, it now acts even more like 1.8 with the 1.8 preset on
- Locks the settings "More Perching" (to false) and "Mimic Vanilla Charging" (to true) because these settings would break the custom ai when set to anything other than the values that it locks them to.
- These settings are grayed out and unchangable in the config screen, and attempting to use /scoreboard to change them will just make them be set back immediately after.
Changes:
Clicking on something in the config now refreshes the config menu automatically to show the updated value, like an actual config menu.
- This is made even more seamless by the fact that the main config menu is also the exact amount of lines that you can have on the screen in chat at once.
- A side effect of this is that running a preset function directly (for example /function olddragons:settings/1.9 for the 1.9 preset) will open the config menu once it runs
Settings in the config screen can be locked!
- Only More Perching and Mimic Vanilla Charging can be locked (by the Use Custom AI beta setting) as of right now.
- Locked settings will appear grayed out in the config screen and the buttons to change them don't do anything while the setting is locked.
Boolean settings with invalid values (values that aren't 1 or 0) will now warn the user.
- There will be a warning icon next to the setting with the invalid value.
- The hover text will warn the user that the setting is set to an invalid value.
- Both the true and false buttons will show as red (or dark gray if the setting is also disabled) in the config screen because the value is neither true or false.
Fixes:
Boolean settings with an invalid value no longer completely vanish from the config menu.
- Settings WITHOUT a value (aka /scoreboard players reset setting Settings was run on them or the value wasn't initialized) will still be hidden from the config.
Old Dragon Mechanics v1.0.0
First Github release; download the source code zip and extract the folder inside the zip to your world datapacks folder, and run /reload (or /minecraft:reload if it's a bukkit server) if you're in the world while adding the pack.