Mcresources

Latest version: v1.7.2

Safety actively analyzes 688087 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 5

1.4.6

Two small QoL changes:

- Allow `domain:path` syntax everywhere `tag!domain:path` was previously allowed.
- Prevent duplicate tag entries from being added.

1.4.5

Removed an incorrect deprecation message on `custom_item_model`.

1.4.4

- Fixed an issue where `ResourceManager.item_model`, with `textures` as a dictionary, would wrap the output in a `layer0` json tag, rather than inserting the dictionary verbatim.
- Added two new functions: `ResourceManager.custom_item_model` and `ResourceManager.custom_block_model`. These have two parameters: `loader`, and `data`. The former is a custom loader specification for Forge models. The latter is a dictionary which is inserted verbatim.
- Due to this, use of the `loader` parameters of `ResourceManager.item_model` and `ResourceManager.block_model` are now deprecated. As there was no way to insert raw json, these weren't really functional, and the new functions should serve that purpose much better.

1.4.3

Added various optional texture override parameters to `BlockContextmake_foo` methods.

1.4.2

Manually specify using UTF-8 when reading and writing files, to avoid issues with non-English character sets (i.e. those used in translation files.

1.4.1

A number of utility updates, meant on improving the file writing and introspection.

- `utils.write` (and the new `ResourceManager.write`) are now sensitive to existing files, and will not overwrite identical json data.
- `ResourceManager` now tracks files written, overwritten, modified, and errored.
- `ResourceManager` takes an optional `on_error` argument, which will consume errors if/when a file writing fails.
- `ResourceManager` no longer throws when a single file write fails.

In addition, some minor additions and tweaks:

- Added the new `world_gen.configure_decorated` which is able to apply decorated features sequentially rather than requiring nesting.
- Added a `no_textures` option to block models, to match the option on item models.
- Improved documentation comments for world gen builder methods.
- Removed the unused `BlockModel` class

Page 4 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.