Cobbleloots ALPHA-2.0.6
IMPORTANT: Alpha versions of the mod may contain bugs and unfinished features. Use them at your own risk. If you find any issues, please report them on the Discord server.
Changes
- Added new configurations:
loot_ball.xp.enabled
: Whether to enable loot ball XP when a player opens a loot ball. Default:true
.loot_ball.xp.amount
: The amount of XP to give when a player opens a loot ball. Default:5
.
- Changed configuration keys:
loot_ball.despawn.*
configurations are now underloot_ball.spawning.despawn.*
.
- Now, the boolean NBT tags for loot balls are always saved regardless of the value. This affects the
Invisible
andSparks
tags. - Reduced the default configuration value for loot ball generation chance from
0.0625
to0.0513
.- This means that the chance for a chunk to generate a loot ball or more (with 2 attempts per chunk) is now
~10%
instead of~12%
.
- This means that the chance for a chunk to generate a loot ball or more (with 2 attempts per chunk) is now
- Updated loot balls weights:
- Heal:
25
->20
- Great:
25
->20
- Dive:
25
->30
- Heal:
Fixes
- Fixed a bug where the loot ball despawn enabling/disabling configuration didn't work properly. The game would always use the default value of
true
regardless of the configuration. - Fixed a bug where the game would crash if the configurations were of the wrong type. Now the game will log an error message and use the default value instead.
- Fixed a bug where loot ball invisibility didn't work properly and were losing their tag on world reloads and generations.
- Fixed a bug where setting the loot ball uses to negative values (infinite uses) would not work properly, removing its contents and making it unusable. Now, negative values effectively make the loot ball infinite.
- Fixed a bug where loot balls would show a name tag when the language keys were different from default values. Now, it will only render its tag if a custom name is set with NBT.
Cobbleloots ALPHA-2.0.5
IMPORTANT: Alpha versions of the mod may contain bugs and unfinished features. Use them at your own risk. If you find any issues, please report them on the GitHub repository.
Changes
- Replaced the external library for configuration with a custom one.
- This should improve performance and reduce the number of dependencies (preventing mod conflicts).
- No changes to the configuration format. It's still a YAML file in the same location as before.
- This change is experimental and may cause issues. Please report any problems you encounter.
Fixes
- Fixed a bug where the mod would crash when other mods were importing the same YAML library. Now it uses a custom library that should not conflict with other mods.
Known Issues
- Bonus loot balls invisibility is not working as intended.
Cobbleloots ALPHA-2.0.4
IMPORTANT: Alpha versions of the mod may contain bugs and unfinished features. Use them at your own risk. If you find any issues, please report them on the GitHub repository.
Changes
- Updated the creative loot ball item.
- Now, they have a custom model and texture depending on the loot ball data they hold.
- Updated its tooltip to show the loot ball data attached to it.
CustomData
item component is now used to store the loot ball data that will be added to the loot ball placed with this item.- Added some default loot balls to the cobbleloots tab in the creative inventory.
Fixes
- Fixed a bug where the mod would export config libraries without masking the namespace, causing conflicts with other mods.
- Fixed a bug where the game would crash because of an inconsistent float parsing in the mod configuration.
Known Issues
- Bonus loot balls invisibility is not working as intended.
Cobbleloots ALPHA-2.0.3
IMPORTANT: Alpha versions of the mod may contain bugs and unfinished features. Use them at your own risk. If you find any issues, please report them on the GitHub repository.
Changes
- Added a configuration file to customize the mod's features.
- A new configuration file is generated in the
config/cobbleloots
folder when the mod is loaded for the first time. - At the moment, the configuration file is missing a lot of features, but it will be expanded in future versions.
- A new configuration file is generated in the
- Added a chunk cap to loot ball generation which can be configured in the configuration file.
Configurations
NOTE: The configuration file is in YAML format, so keys are referenced using a dot notation.
Loot Ball Bonus
loot_ball.bonus.enabled
: Enables/disables the bonus feature for loot balls (default: true)loot_ball.bonus.chance
: Chance for a loot ball to provide a bonus (0-1, default: 0.1)loot_ball.bonus.multiplier
: Multiplier applied to loot when bonus is active (default: 2.0)loot_ball.bonus.invisible
: Whether bonus loot balls are invisible (default: true)
Loot Ball Generation
loot_ball.generation.enabled
: Enables/disables loot ball generation in chunks (default: true)loot_ball.generation.chance
: Chance for loot ball generation on each attempt (0-1, default: 0.0625)loot_ball.generation.attempts
: Number of attempts to generate loot balls per chunk (min: 1, default: 2)loot_ball.generation.chunk_cap
: Maximum number of loot balls that can be generated per chunk (min: 1, default: 4)
Loot Ball Spawning
loot_ball.spawning.enabled
: Enables/disables periodic loot ball spawning near players (default: true)loot_ball.spawning.chance
: Chance for a loot ball to spawn near a random player (0-1, default: 0.25)loot_ball.spawning.cooldown.min
: Minimum ticks between loot ball spawn attempts (min: 0, default: 6000)loot_ball.spawning.cooldown.max
: Maximum ticks between loot ball spawn attempts (min: 0, default: 36000)
Loot Ball Despawn
loot_ball.despawn.enabled
: Enables/disables loot ball despawning (default: true)loot_ball.despawn.time
: Time in ticks before a loot ball despawns (min: 0, default: 24000)
Fixes
- Fixed a bug where the server would crash when a loot ball spawn attempt happened without players connected.
- Fixed an error in the calculation of nearby chunks for loot ball spawning.
- Fixed a visual bug where loot balls would always render with poké ball texture instead of the correct loot ball texture from custom data.
Known Issues
- Bonus loot balls invisibility is not working as intended.
Cobbleloots ALPHA-2.0.2
IMPORTANT: Alpha versions of the mod may contain bugs and unfinished features. Use them at your own risk. If you find any issues, please report them on the GitHub repository.
Changes
- Added an offset for loot ball spawns and generations, so they don't spawn on block borders.
Fixes
- Fixed a bug where the mod would crash when trying to open a loot ball with mods that need access to loot ball items like the Jade mod.
Cobbleloots ALPHA-2.0.1
IMPORTANT: Alpha versions of the mod may contain bugs and unfinished features. Use them at your own risk. If you find any issues, please report them on the GitHub repository.
Changes
Loot Ball Generation and Spawning
- Loot balls can now be generated with new chunks in the world. The generation is based on biome tags filters and height filters.
- The generation can be configured in data packs and enabled or disabled for individual loot balls. By setting the
type
entry togenerated
in a source definition, the loot ball will be generated in the world. - The generator will try to spawn a loot ball in a section of a chunk. By default, 3 attempts are made to spawn a loot ball in a chunk.
- Reduced the performance impact of loot ball generation compared to the previous mod, by checking smaller sections of the world.
- The generation can be configured in data packs and enabled or disabled for individual loot balls. By setting the
- Loot balls can now spawn nearby a random player. The spawning uses the same biome tags filters and height filters as generation, but they can be configured separately in data packs.
- Every certain amount of time, the mod will try to spawn a loot ball near a random player. By default, the mod will try to spawn a loot ball every 5-30 minutes.
Loot Ball
- Reverted changes to item obtaining in survival. Now, the item will be directly added to the player's inventory instead of dropping it on the ground. If the player's inventory is full, the item will be dropped on the ground.
- In the future, I will add a config option to choose between these two behaviors.
Loot Ball NBT
- Added new nbt tag
DespawnTick
. This tag is used to store the tick when the loot ball will despawn. This tag is used to prevent spawned loot balls from staying in the world indefinitely. Generated loot balls doesn't have this tag, so they will not despawn.
Tags
- Added new internal biome and block tags for loot ball generation and spawning.
Loot Ball Data
- Changed
biome
entry data type insources
definitions fromResourceLocation
toTagKey<Biome>
for better performance. From now on, biome filters should point to biome tags instead of biome IDs. If no biome filter is specified, the loot ball will be available in all biomes. - Added an experimental boolean
announce
entry. If set totrue
, when the loot ball is spawned, a message will be sent to all players on the server.
Cobbleloots ALPHA-2.0.0
IMPORTANT: Alpha versions of the mod may contain bugs and unfinished features. Use them at your own risk. If you find any issues, please report them on the GitHub repository.
Note: This mod replaces my previous mod
Cobblemon: Loot Balls
, but it is not compatible with the old loot balls from the other mod, so I suggest backing up items from previous worlds.
Changes from previous mod
- The Loot Balls code was completely redone from scratch. From now on, the mod will be called Cobbleloots, to avoid confusion with the old incompatible versions.
- Loot Balls are now entities instead of blocks.
- Loot Ball generation and survival sources aren't implemented yet. They will be added in future alpha versions.
- Loot Balls now doesn't disappear after being opened. They will stay in the world until they are destroyed by the players. This change was made to allow players to use the loot balls as decorations in future versions.
- Loot Balls doesn't drop themselves when destroyed. This will be added in future versions.
- Loot Balls items now drop into the world instead of being directly added to the player's inventory.
New Features
- Loot Balls now have new sounds and animations.
- The opening sound was updated to be more in line with the original Pokémon games.
- The opening animation was updated to be more fluid and visually appealing.
- Various sounds were added/updated for different actions on the loot balls.
Mapmaking
- The mod now has a documentation to help mapmakers use the mod objects and features in their custom maps. This will be updated as new features are added.
- At the moment of this release, the documentation is still a work in progress. If you have any questions, feel free to ask on my discord server. I will update the documentation as soon as possible.
- Added a new
Loot Ball Data
system to help mapmakers create custom loot balls with different properties.- You can now create custom loot balls trough datapacks! Check the documentation for more information.
- The system is still a work in progress, and it may change in future versions.
- The system is not yet implemented in survival sources nor generation. It will be added in future alpha versions.
- You can customize the loot table, texture, sources, rarity, biomes and more. Some of these features are not yet implemented, but you can write the data for future use.
- Reworked the
Openers
tag to allow more flexibility for mapmakers.- The system is still a work in progress, and it may change in future versions.
- It now stores the
UUID
and theTimestamp
of the player that opened the loot ball. This will be used in future versions to add more features to the mod, like cooldowns and re-usable loot balls.
Changes
- Crítical: Modified
Openers
NBT save/loading. It works as a list of strings now, to avoid issues with larger UUIDs strings.
NOTE: The old code was left in place to deserialize this NBT key for compatibility reasons. It is recommended to load the chunks containing loot balls already generated to be updated to the new system. This may be removed in the future.
- Removed
perPlayerLootBalls
config. It was redundant and now loot balls can only be opened 1 time per player by default.
NOTE: In single player worlds, loot balls have 1 use by default, and loot balls will be destroyed when used. In multiplayer worlds, the new
ignoreLootBallUses
setting must be changed totrue
so that everyone can claim the loot (see below) or adjust thenaturalLootBallUses
setting to allow more than 1 use in natural loot balls.
- Replaced
ignorePerPlayerLootBallUses
config withignoreLootBallUses
config. Whentrue
, the remaining uses of a loot ball will be ignored (infinite uses), but will still be limited to 1 loot per player. Defaults tofalse
. - Added
randomizeAfterUse
config. Whentrue
, loot balls with an assigned loot table (like the natural ones) will grant random loot to each player. Iffalse
, all players will get the same loot. Defaults totrue
. - Updated the docs.
Fixes
- Fix:
Infinite
NBT tag in loot balls ignoresOpeners
NBT.
Changes
- Generated Loot Balls are now a bit rarer.
- Added 2 new configs:
minLootBallsPerChunk
: You can now set the minimum amount of lootballs generated per chunk. (Defaults to0
)generationChance
: You can now set the chance for a lootball generation attempt to be successful. (Defaults to0.08
)
Changes
- Updated all existing loot tables. You can check the new loots in the lootball docs.
- Added loot ball fishing, archaeology and drop sources.
- Added 5 new loot balls:
- Lure: Obtainable only by fishing in cold oceans.
- Heal: Naturally generated in biomes with villages.
- Dive: Naturally generated in oceans at the bottom and by fishing in deep ocean biomes.
- Repeat: Obtainable only by brushing suspicious sand in desert pyramids and wells.
- Luxury: Obtainable only by breaking Budding Amethyst.
- Added config file in
config
folder with 10 new configurations.- From now, you can configure loot balls to allow loot for multiple players (works similar to Lootr mod).
- You can tweak the max amount of loot balls generated per chunk.
- You can disable loot ball fishing, archaeology, natural generation and other sources.
- Check the details in the config docs
- Added new NBT tags to lootballs for mapmakers:
Uses
: Indicates the uses remaining in a loot ball. When it reaches 0, the lootball is destroyed.Infinite
: Boolean byte that indicates if loot ball has infinite uses.Multiplier
: Float that indicates the bonus loot multiplier for a loot ball. (defaults to 2.0 for natural hidden loot balls)
- Tweaked loot ball generation and particles.
- By default, 3 attempts will be made per chunk (configurable) to spawn loot balls.
- Hidden loot balls will now generate 3 sparks instead of 1.
- Added Loot Ball Finder item.
- Currently, it only helps to find hidden loots in a
64x64x64
area centered in the player. - It can be obtained by crafting. See the features docs
- This is WIP. I appreciate your feedback on discord!
- Currently, it only helps to find hidden loots in a
- Updated language files and text formatting.
- Removed unused
doLootBallFishing
gamerule and replaced with a new config.
Fixes
- Critical fix to NBT saving/loading for loot balls.
- Manually placed loot balls should now remember the items inside correctly.
- Fixed: Loot balls aren't generating in y-levels below 0.
- Fixed: generated hidden loot balls not giving double loot after world reload.
- Only newly generated hidden loot balls will have double loot.