-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Replaced the loot function's Serializer with a Codec - Added painting to the Wandering Trader's rebalanced trade pool - Added missing credits
- Loading branch information
Showing
7 changed files
with
57 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,10 @@ | |
# against bad commits. | ||
|
||
name: build | ||
on: [pull_request, push] | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,30 @@ | ||
# Invariable-Paintings | ||
# Invariable Paintings | ||
|
||
Turns paintings into collectibles, by making them harder to obtain, and have the paintings in you inventory remember which variant they are. | ||
## Overview | ||
Turns paintings into collectibles. | ||
|
||
## Changes | ||
When a painting is broken, the dropped item will remember which variant it was, and will only ever allow this variant to be placed. Those variant-locked items are the same as the ones available in the vanilla creative menu, so no new item type was added to the game. | ||
|
||
Paintings are no longer craftable and must be obtained through other means, such as trading, fishing and chest loots. | ||
|
||
|
||
## All Changes | ||
### Server-side | ||
- When a painting is broken, the dropped item will remember which variant it was. Those variant-locked items are the same as the ones available in the vanilla creative menu; the vanilla variantless painting still exists in the code, but is no longer obtainable in survival. If you were to obtain one, it would still drop a variant-locked item after being placed and broken. | ||
- Paintings can no longer be crafted, but can be acquired through other means. | ||
- Wandering Traders may sell paintings as their last trades. Master shepherd will sell variant-locked paintings instead of the variantless one. (This will not retroactively apply to existing master shepherds). | ||
- Broken paintings drop a variant-locked item instead of variantless ones. | ||
- Placement of variant-locked paintings in tight spaces is more forgiving. | ||
- Paintings are no longer craftables. | ||
- Wandering Traders and Master Shepherds can sell variant-locked paintings. Shepherds no longer sell variantless paintings. (This will not retroactively apply to existing master shepherds). | ||
- _(Requires [Patched](https://modrinth.com/mod/patched))_ Paintings will be added to several loot tables: fishing, monster-rooms, buried treasures, shipwrecks, woodland mansions, pillager outposts, and stronghold libraries. | ||
The drop rate for these loots was chosen aphazardly, and is subject to be rebalanced. | ||
- Added a new function `lock_variant_randomly`, which can applied to painting items in loot tables. | ||
|
||
### Client-side | ||
- Fixes a vanilla bug whereby using variant-locked items in too small a space would consume the item without placing the painting. | ||
- _(Requires [CIT Resewn](https://modrinth.com/mod/cit-resewn))_ Makes the vanilla painting items have a unique texture for each variant. | ||
- Fixes a vanilla bug whereby using variant-locked items in too small a space would consume the item without placing the painting. A warning message is shown instead. | ||
- _(Requires [CIT Resewn](https://modrinth.com/mod/cit-resewn))_ Provides unique inventory icon for every vanilla variant. Icons for modded variants can be provided via a resource pack. (See the sources for examples, and CIT resewn for documentation.) | ||
- Makes the painting tooltip a bit more compact, and display the painting's title in the item name. | ||
|
||
|
||
## Compatibility | ||
Any other mods that add new paintings in accordance with the vanilla system should be compatible, and their paintings should be available in the loot and trade pools. | ||
|
||
This will not work properly with mods such as [Custom Paintings](https://modrinth.com/mod/custom-paintings-mod) or [Client Paintings](https://modrinth.com/mod/client-paintings), which bypass the vanilla variant system and implement their own. | ||
On the other hand, mods that add new paintings in accordance with the vanilla system should not pose any problem, and their paintings should be available in the loot and trade pools. | ||
Mods that bypass the vanilla system and implement their own, like _Custom Paintings_ or _Client Paintings_, will prevent InvarPaint from working properly. [More Canvases v2](https://modrinth.com/mod/more-canvases) is their equivalent that respects the vanilla variant system. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 13 additions & 12 deletions
25
src/main/java/tk/estecka/invarpaint/LockVariantRandomlyLootFunction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters