COWMODSКаталог модов

More Canvases

(Obsolete since MC 1.21) Lets you add custom painting variants using a configuration file and a resource pack.

Автор: Estecka1,5 тыс.5обновлён 19 июн. 2024 г.
ДекорБиблиотеки

Описание

More Canvases

Overview

Lets you register new painting variants via a configuration file, in compliance with the vanilla variant system.

This mod only handles the registration part of the paintings and their addition to the placeable tag. All other aspects (textures, names and authors) must be provided via a resource pack, using the same format as for vanilla paintings.

This should work in multiplayer, so long as everyone uses the same set of paintings as the server.

I recommend also installing No Kebab. If you accidentally remove a variant from the config, No-Kebab will prevent it from being removed from the world.

Configuration files

Painting sets

In order to easily manage multiple painting sets from different sources, this mod can accomodate for any number of configuration files, each containing multiple paintings. The files are located in .minecraft/config/more-canvases/*.json, and may use any name you want; the filename has no bearing on the functionality.

Each key in the root object is the ID of a painting. It should contain both the namespace and the path, separated by a semicolon.

Each value has the following properties:

  • size : An array of two integers, the dimensions of the painting measured in blocks. Width first, then height.
  • placeable (Optional; defaults to true) : Whether this painting should be included in the "placeable" tag. Paintings that are excluded can only be obtained through commands.

For example, here's a config file that would reproduce the behaviour of v1.0 of the mod:

{
	"mocan:blank2x3": { "size":[2,3] },
	"mocan:blank2x4": { "size":[2,4] },
	"mocan:blank3x2": { "size":[3,2] },
	"mocan:blank3x3": { "size":[3,3] },
	"mocan:blank3x4": { "size":[3,4] },
	"mocan:blank1x3": { "size":[1,3], "placeable":false },
	"mocan:blank1x4": { "size":[1,4], "placeable":false },
	"mocan:blank3x1": { "size":[3,1], "placeable":false },
	"mocan:blank4x1": { "size":[4,1], "placeable":false }
}

(The painting's ID does not need to contain its size; this is just the naming convention I was using back then.)

If you're familar with CLI, here is a tiny script capable of generating a config file from an unzipped texture pack.

Error handling

By default, any error in the painting sets will cause the game to crash. Minecraft removes missing paintings from the world with no warning, so this is to prevent any accidental loss.

If you know what you're doing, those restrictions can be laxed in a separate configuration file: .minecraft/config/more-canvases.properties.

All the properties are true by default

  • failHard.onPaintings crashes if a painting couldn't be created, either because it has an invalid definition, or because a configuration file could not be read.
  • failHard.onDuplicata crashes if multiple definitions exist for the same id. This only applies to the paintings defined within the scope of More-Canvases, or vanilla paintings. Redefining a painting from another mod may still lead to a crash even with this option set to false, depending on the mod-loading order.
  • failHard.onPlaceable crashes if the mod fails to populate the placeable tag with the generated paintings.

Related mods

No Kebab

Prevents uninstalled custom paintings from being removed from the world.

Invariable Paintings

Turns paintings into collectibles.

Extra credits

Client Paintings

V1 was designed as a companion mod for Client-Paintings. V2 can still coexist with it, and can still be used to make more painting sizes available to it. However v2 makes Client-Paintings redundant, unless you really like the principle behind its ETF-like variant system.

The readme for v1 can still be found on the corresponding tag of the repository.

Dataified paintings

For most means and purpose, Mo-Can achieves the same results as my other mod Dataified Paintings, with the exception of being config-driven instead of datapack-driven. Mo-Can is infinitely easier to maintain and more stable, whereas Dataified is still experimental and not fully functional.

Галерея

v1.0v1.1

Последние версии

Все версии →
release

v2.1.1+1.19.4

2.1.1+1.19.4
19 июн. 2024 г.392Minecraft: 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6fabric
Скачать
Что нового
- Marked as incompatible with MC 1.21 - Archiving the project in favor of MC's data-driven paintings. You served us well. 🇫 If youre familiar with CLI, I may still interest you in [this small script](https://gist.github.com/Estecka/9d40808aafb0607316c98aa146950dcc) that will generate a datapack from a texture pack.
release

v2.1.0+1.19.4

2.1.0+1.19.4
7 мая 2024 г.158Minecraft: 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6fabric
Скачать
Что нового
- If the config folder `more-canvases/` is missing, it will be initialised with an example config equivalent to v1.0. - Laxed dependency on minecraft version. Same jar works for all supported versions of MC. (And will probably work for a few older versions.) With data-driven paintings coming to MC 1.21, this is likely going to be the last update to this mod.
release

v2.0.0+1.20

2.0.0+1.20
30 авг. 2023 г.232Minecraft: 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6fabric
Скачать
Что нового
Repurposed the mod into a fully fledged custom-painting mod, which can work independently from Client-Paintings. Check Readme for details. - New config files allows to register any arbitrary painting ID of any size. - The old config file format and functionalities have been disused.
release

v2.0.0+1.19.4

2.0.0+1.19.4
30 авг. 2023 г.119Minecraft: 1.19.4fabric
Скачать
Что нового
Repurposed the mod into a fully fledged custom-painting mod, which can work independently from Client-Paintings. Check Readme for details. - New config files allows to register any arbitrary painting ID of any size. - The old config file format and functionalities have been disused.
release

v1.2.0+1.20

1.2.0+1.20
22 авг. 2023 г.113Minecraft: 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4fabric
Скачать
Что нового
Generated paintings may now automatically be marked as `placeable`. This means an external datapack is no longer required to use all the defined sizes. This is can be controlled in the config file by setting `placeable` to either `true` or `false`.
release

v1.2.0+1.19.4

1.2.0+1.19.4
22 авг. 2023 г.125Minecraft: 1.19.4fabric
Скачать
Что нового
Generated paintings may now automatically be marked as `placeable`. This means an external datapack is no longer required to use all the defined sizes. This is can be controlled in the config file by setting `placeable` to either `true` or `false`.
release

v1.1.0+1.20.0

1.1.0+1.20.0
13 июн. 2023 г.139Minecraft: 1.20, 1.20.1, 1.20.2fabric
Скачать
Что нового
- More canvas sizes can be generated using a config file. Those sizes still need to be enabled via datapacks in order to be placeable
release

v1.1.0+1.19.4

1.1.0+1.19.4
9 июн. 2023 г.123Minecraft: 1.19.4fabric
Скачать
Что нового
- More canvas sizes can be generated using a config file. Those sizes still need to be enabled via datapacks in order to be placeable
release

v1.0.0

1.0.0
29 мая 2023 г.128Minecraft: 1.19.4fabric
Скачать
Что нового
Initial release