Mcresources

Latest version: v1.6.1

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

Scan your dependencies

Page 3 of 5

1.5.1

Fix imports not using the fully qualified module name.

1.5.0

Due to a number of underlying changes to world generation, and some larger internal refactors with loot tables, there's a fair amount of changes in this version.

World Generation

- Added new world generation methods to `ResourceManager`: `dimension`, `dimension_type`, `noise_settings`, `processor_list`, `template_pool`, `configured_structure_feature`, `placed_feature`
- Reworked `biome` for pack version 8
- Renamed:
- `feature` -> `configured_feature`
- `carver` -> `configured_carver`
- The `world_gen` module was removed, as it's methods were largely made redundant by the move from decorators to placed features. The useful methods were moved to `utils`, such as `expand_configured` (builds a `{"type": "", "config": {}}` like structure)
- Added the `surface_rules` module, with comprehensive methods for building surface rules in a builder-like nested pattern.

Loot Tables

- Added `entity_loot` and `loot`, and redirected `block_loot` to use `loot`.
- Loot tables were tweaked: `loot` based functions now take variadic arguments, assuming each argument is a loot pool. Sequences of entries are automatically inferred as a sequence of entries in a `minecraft:alternatives` pool.
- Several loot table helper functions were made smarter, and able to discern between pools and entries, making it easier to add functions or conditions at the right logical level without relying on helper functions.
- Improved and added some more loot conditions and loot functions to the `loot_tables` module.
- As part of loot table improvements, fixed a few cases where default loot conditions (`minecraft:survives_explosion`) wasn't getting added, or getting added at the wrong level.
- In both loot tables and recipes (anywhere that accepts item stacks), counts are able to be automatically expanded into a `minecraft:set_count` function. See below note
- `utils.item_stack` (and consumers) now accepts count specifiers:
- `'namespace:path'` to indicate a item
- `'namespace:path'` to indicate a tag
- `'3 namespace:path'` to add an optional count to a item (works in loot tables and in recipes).
- `'4-6 namespace:path'` to add an optional count range to an item (works in loot tables, with the `minecraft:uniform` distribution).
- These changes work in addition to the existing tuple syntax, `(3, 'namespace:path')`, which has been expanded to be order-independent (meaning `('namespace:path', 3)` now is also accepted).

Misc

- Removed deprecated parameters in `block_model` and `item_model`
- The `tag!namespace:path` syntax is no longer supported, instead `namespace:path` should be used instead as it's more consistent with vanilla data.
- Fixed `utils.clean_generated_resources` not removing completely empty folders that it didn't visit.

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.

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.