Skip to content

Releases: Stevertus/objD

0.3.3

23 Jun 13:02
Compare
Choose a tag to compare

0.3.3-1

Sorry for the inconvenience with the newly reworked Item part. <3

  • fixed missing toString method for Item
  • fixed missing implementation for Item.copyWith with model, name, hideFlags, lore and nbt
  • fixed that fromJson and clone were not static
  • removed unnecessary collection package

PLEASE use objd: ^0.3.3-1 to install the latest version!

BREAKING

  • added Item.type replacing ItemType and made it unmutable
  • divided Blocks.all and Items.all in 1.15 items and newer [snapshot] items
  • removed named parameters for Range. If you want to set a upper or lower limit use Range.to or Range.from now on.
  • changed Comment.Seperate to Comment.Separate
  • changed Advancement cricterium to cricteria in Advancement.grant() parameters

Widgets

  • added PlayerJoin Widget
  • added Enchant Widget
  • added experimental CustomBlock Widget
  • added Spawnpoint Widget
  • added Attribute Widget

Fixes

  • added new 1.16 blocks, items, particles and entities
  • added Attribute Type and an Attribute List to support Minecraft attributes
  • added useTag argument in the If Widget to allow custom tags marking the else statement
  • added Item.copyWith() to clone Items more easily
  • added Color.fromInt and Color.fromRGB to support new color spaces
  • added an optional bool property to Slot.chest to support Enderchests
  • fixed Data.modify rejecting a List as value
  • fixed missing increment for Ifs objd_is_true tag
  • fixed if an else option is provided for If, encapsulate would not have an effect
  • fixed crash when leaving the generate parameter of Project empty
  • fixed bug with Trigger.enable
  • fixed Do Widget to also execept null as translate parameter
  • fixed errors when trying to use gson component in a give command
  • fixed that Entity.not used to reset all previous applied tags
  • removed all deprecated and unessary parts

Thanks to kadmuffin for contributing and fixing typos!

0.3.2

27 Jan 16:39
Compare
Choose a tag to compare
  • added setToCondition to the Score to allow values based on a condition
  • added an Item.SpawnEgg constructor to allow generating spawn eggs more quicker
  • added Predicates subpackage, that allows to create all major types of predicates right in objD
  • added Predicate Widget to register a new Predicate with content
  • added VersionCheck and ServerVersionCheck
  • added Storage.toData to convert to a Data Widget
  • added global Scoreboard.prefix and Tag.prefix that get applied to all created Scoreboards and Tags
  • added the [] operator to scoreboard to quickly retrieve its scores
  • added Comment.seperate to generate a comment line
  • added Comment.fileHeader to generate a file header with author, description, context and calledin
  • added header field to File to be able to add a header to a file directly
  • added Spectate and Gamemode Widgets
  • added a PassTrait widget, that uses the Context to provide Data across the successive widget tree
  • added support for Dart Web, enabling online generators powered by objD
  • added Zip Exporter that can be enabled with the --zip flag or by builing the project in production mode
  • added --no-zip flag to allow usual file generation
  • added an web example
  • added getArchive and saveAsZip methods to manually create and modify the Zip encoder
  • added HideFlags method that calculates the hideFlags for you
  • added getAllFiles and getJsonMap functions to allow 3rd party developers and the web to use objDs output
  • updated the gson library to also support Dart Web
  • updated Condition.predicate and If to allow for Predicates(and automatically register them)
  • updated Block class to allow public insight into nbt and states
  • changed If Then and Else to then and orElse, old syntax is deprecated
  • extended the ForEach widget to support translation location for each step
  • moved Block, ItemType, EntityType and ParticleTypes constants to seperate Blocks, Items, Entities and Particle classes
  • moved the file generator to a new file seperating it from the system io
  • fixed the conversionFlags parameter for TextComponents, accepts TextComponents now
  • fixed crash when Scoreboard was used without any load File
  • fixed Tag toggle wrong negation
  • fixed text options with the conversionFlags in TextComponent.translate
  • refactoring code

Credit goes to Andante(https://github.com/AndanteDevs) who initially built the VersionChecker and ServerVersionChecker

0.3.1

28 Sep 19:00
Compare
Choose a tag to compare
  • added Schedule.append, Schedule.appendFile and ScheduleMode for the upcoming 1.15 release
  • added Support for Predicates in Entity
  • added Condition.predicate
  • added Storage Widget to handle global nbt storage
  • added Data target DataStorage to store nbt globally
  • added TextComponent.storageNbt to display nbt from Storage
  • added RawFile to allow generation of any kind of file in a pack(for upcoming Predicates, LootTables...)
  • added Operators & and >> to Tag to enable faster Conditions and Assignments
  • updated Kill to include just an optional target
  • code refactoring, issue fixing

0.3.0

08 Sep 15:54
Compare
Choose a tag to compare
  • added updated documentation site at https://objd.stevertus.com
  • added completly new gson parser capable of types, see more here: https://pub.dev/packages/gson
  • added operators to Score: +, -, *, /, %, <, >, <=, >=. >>, &
  • added Entity.Self Constructor as a shortcut
  • added Entity kill, raycast, teleport, give, replaceitem, particle, crash, tellraw, tp, execute, exec, execStrait, asat, as, at, joinTeam, leaveTeam and forEach Methods.
  • added Data Manipulation within Entity with dataMerge, dataGet, dataRemove and dataModify methods
  • added Selector
  • added Tp Widget
  • added RestAction, RestActionAble and StraitWidget to support underlying structure
  • added Area.rel
  • added Area.fromRanges
  • added exact parameter for Range to support single matches
  • added EntityType operator == to match same Types
  • added Builder & ItemBuilder Widgets
  • added IndexedFile to update the old complicated Group functionality.
  • added --out argument to change the output directory with the CLI
  • rewritten Execute with StraitWidget
  • rewritten Entity addTag, addTags, removeTag, removeTags
  • moved the cli commands and related files to a new package here: https://pub.dev/packages/objd_cli
  • removed gson parser in TextComponent, Bossbar, Title and Tellraw
  • changed Entity.self to Entity.Self
  • changed Range(exact:...) to Range.exact(...)
  • changed all args to fit the CLI
  • updated Group to IndexedFile. BREAKING: Removed fileId and generateIDs
  • fixed missing seperator when using multiple scores in Entity
  • fixed missing items and added documentation references
  • fixed that global Location does not cut of last double digit(1.0)
  • fixed unnessesary required value with Tag
  • fixed that Entity.copyWith just returned null´
  • fixed bug that Execute generated a List instead of just execute
  • refactored code

A big thanks goes to Minimine who actually did most of the new additions, the new gson package and bug fixes. Thanks for contributing!
Check out his projects here: https://github.com/MinimineLP
Thanks as well for the critical bugs reports by Mastermori!

0.3.0-beta1

23 Aug 15:20
Compare
Choose a tag to compare
0.3.0-beta1 Pre-release
Pre-release
  • added completly new gson parser capable of types, see more here: https://pub.dev/packages/gson
  • added operators to Score: +, -, *, /, %, <, >, <=, >=. >>, &
  • added Entity.Self Constructor as a shortcut
  • added Entity kill, raycast, teleport, give, replaceitem, particle, crash, tellraw, tp, execute, exec, execStrait, asat, as, at, joinTeam, leaveTeam and forEach Methods.
  • added Data Manipulation within Entity with dataMerge, dataGet, dataRemove and dataModify methods
  • added Selector
  • added Tp Widget
  • added RestAction, RestActionAble and StraitWidget to support underlying structure
  • added Area.rel
  • added Area.fromRanges
  • added exact parameter for Range to support single matches
  • added EntityType operator == to match same Types
  • rewritten Execute with StraitWidget
  • rewritten Entity addTag, addTags, removeTag, removeTags
  • moved the cli commands and related files to a new package here: https://pub.dev/packages/objd_cli
  • fixed missing seperator when using multiple scores in Entity
  • fixed missing items and added documentation references
  • fixed that global Location does not cut of last double digit(1.0)
  • fixed unnessesary required value with Tag
  • fixed that Entity.copyWith just returned null

A big thanks goes to Minimine who actually did most of the new additions, the new gson package and bug fixes. Thanks for contributing!
Check out his projects here: https://github.com/MinimineLP
Thanks as well for the critical bugs reports by Mastermori!

0.2.4

19 Jul 20:54
Compare
Choose a tag to compare
  • added ClickEvent Module
  • added copyWith on Entities
  • added setValues on Entity to change selections afterwards
  • added Location.clone
  • added desc to Log
  • changed Color to const to allow defaults
  • changed Particle to use a double type for speed and no requirement for a location
  • fixed Particle.item to use ItemType instead of Item
  • fixed CommandList Type Error
  • fixed Raycast Error when not using stop in the ray property
  • fixed missing Invisible Nbt on ArmorStand

0.2.3

03 Jul 13:14
Compare
Choose a tag to compare
  • added new Module type to allow registering tick functions and files with a convenient api
  • added modules property to Pack to inject new modules
  • added ScoreTimerModule that implements a Timer using Scoreboards
  • changed Widget class to be abstract
  • tweaked Raycast to work properly
  • improved Entity.not
  • fixed TextComponent.space with negative numbers

0.2.2

10 Jun 12:23
Compare
Choose a tag to compare
  • added Item.clone, Entity.clone and similar Methods with ItemType and Slot to enrich changeable inputs
  • added Entity.not to negate arguments
  • added Slot.craft
  • added Clear Wrapper
  • added Condition.Data
  • added Block.nbt to include Nbt-data and Blockstates
  • added Score.findSmallest and Score.findBiggest
  • updated Item.getGiveNotation to include Damage
  • changed Slot utilities to use seperate row and column arguments
  • fixed missing minecraft: on Item nbt
  • fixed wrong order of scale and datatype for Data.fromScore

0.2.1

10 May 16:43
Compare
Choose a tag to compare
  • added experimental hotreload to boost performance
  • added new -hotreload and -full build arguments
  • added new Slot class with helper functions
  • added Advancement Widget
  • added Data.fromScore
  • added Rotation utilities like Rotation.n and Rotation.north
  • added Rotation.getDirection
  • added isRotated value on entities to test for a Rotation object
  • reworked ReplaceItem for Blocks and using the new Slot
  • updated Item Slot requirements to match the Slot datatype
  • updated project generator without File path
  • updated Getting Started to fit new requirements and systems
  • fixed Location.storeResult

0.2

27 Apr 13:09
Compare
Choose a tag to compare
0.2

There it is finally! The second official version of objD. Along with a big performance update and a completly new building technique there are many new features:

  • Completly reworked build algorithms that run the generate method just once.
  • improved performace
  • added new build arguments in createProject
  • new build arguments -min -prod and -debug
  • access to the prod property on context to change widget behaviour in productive build
  • comments and line breaks get automatically removed in productive build
  • added Raycast Widgets with many options to choose from
  • added ForEach Loop that iterates through each score
  • added Do.Until and Do.While Loops
  • added a Book Generator with Item.Book that allows to use BookPages and TextComponents to fill a book
  • added a TextComponent for the negative Spaces Font by AmberW. This automatically calculates the customs chars for a specified pixel value.
  • added a TextComponent for Custom Fonts
  • added a TextComponent for Linebreaks
  • added number and boolean arguments for Log
  • added new Block Condition which tests the current Position after the block
  • updated Say Wrapper to either use a String or Entity in one argument
  • fixed missing encapsulate property on If.not
  • fixed double and unmatching group ids with multiple packs and widgets
  • fixed multiple scoreboard related bugs. All declared Scoreboards from all packs should generate in the load functions now
  • fixed TextClickEvent.runCommand to include a slash (Thanks Dommi)
  • fixed data modify command generator (Thanks Vinicius Rangel for pull)

As always you can install the new version by changing your pubspec.yaml and getting the packages pub get
ATTENTION! Due to new arguments in the File and Say Widget you have to replace path: and msg: to get it working. Visual Studio Code should give you highlighting there.