Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Templates 2

Templates 2

Retexturable blocks powered by the Fabric Rendering API

34.5k
48
Decoration
AboutGalleryChangelogVersions

2.5.1

by quat on Mar 29, 2025
Download
  • Fix faces on the Slope disappearing with Sodium (i had a wrong cullface set)
  • Try to fix AO on the slope but fail

2.5.0

by quat on Mar 9, 2025
Download
  • Rewrite a lot of the retexturing logic.
    • Now, only one ready-to-retexture Mesh is used per bakedmodel, which is probably how it should have been in the first place. Should save memory and improve chunk-baking performance a little bit.
    • Some ABI breaks are related to this. See Git or let me know if you need more information.
  • Permute the faces of fewer types of Templates. (This might rotate blocks inside some Templates.)

2.4.1

by quat on Mar 8, 2025
Download
  • Remove mixin that did nothing and broke Sinytra Connector
  • Tag template button with wooden_buttons again
  • Load nbt tag clientside (preventing flicker of regular template when you place one)

2.4.1

by quat on Mar 8, 2025
Download

2.3.2

by quat on Mar 8, 2025
Download
  • Remove mixin that did nothing and (probably) broke Sinytra Connector
  • Tag template button with wooden_buttons again

2.4.0

by quat on Mar 7, 2025
Download

hi 1.21.

NOTE: Somewhat slapdash. Let me know if there's trouble.

2.4.0

by quat on Mar 7, 2025
Download

1.20.4 port

2.3.1

by quat on Mar 7, 2025
Download
  • Add recipes to craft Slab Templates into Vertical Slab Templates and vice versa.
  • If a Template can't decide on a texture, it'll now fall back to the block's particle texture (instead of displaying the glitchy scaffolding texture)

2.3.0

by quat on Mar 6, 2025
Download
  • Fix messed up Fence Template and Post Template items from last update.
  • Add a tooltip to the Slope and Tiny Slope templates reminding you that they can be placed sideways on walls by holding Shift.
  • Retexturable models (for "json" and "auto" types), as well as item model overrides, can now be loaded out of a resource pack.
    • See the json files lurking in assets/templates/.
    • This isn't too useful, since the models only make sense when applied to a block from Templates.
    • The existing code-registration API still works. These are dubbed "permanent" mappings (since they aren't cleared on resource reload).
    • Permanent mappings can be overridden with resource-pack ones.
  • More datagen.
  • Potential ABI break: Use fabric-block-view-api-v2 instead of the deprecated fabric-rendering-data-attachment-v1.
    • This means I use RenderDataBlockEntity instead of the deprecated RenderAttachmentBlockEntity to read information about templates from the world.
    • If you implement ThemeableBlockEntity, please implement ThemeableBlockEntity2 instead. However, the old interface has been changed to extend the new interface and forward calls from fabric-rendering-data-attachment-v1, so addons should still work.
  • Potential ABI break: Use fabric-model-loading-api-v1 instead of the deprecated fabric-models-v0.
    • Due to shortcomings of this API (no ability to directly set an UnbakedModel for items), Template items now need an arbitrary json item model to suppress "missing model" logspam.
    • In the future I intend to make fuller use of the features afforded by this library.

2.2.1

by quat on Mar 3, 2025
Download
  • People were rightfully wary of my sketchy TNT data-tracker mixin, so I put a priority on it. It should hopefully apply in a consistent ordering and not cause problems.
    • Please remember to apply this update to the client AND server
  • TNTemplate now feels more like a tnt block (breaks instantly, etc)
  • Fix recipe unlocking! It now only unlocks when you get bamboo for the first time. Nobody noticed.
  • A significant portion of the mod's assets and data files are now automatically generated. Let me know if something feels off.

2.2.0

by quat on Feb 25, 2025
Download

Old changes (~2023, unreleased until now):

  • Start sketching out an API, accessible through TemplatesClientApi.getInstance()
    • (Note from the future: This API will break hard in 1.21 due to Mojang fuckery)
  • Code cleanups that hopefully didn't break ABI compat
  • Remove some unused stuff from the jar
  • Vertical slab placement is a little better
  • Fix a bug where templates that look like blocks with randomized models, such as stone, could reroll their blockstate on every resource load
    • Forgot to specify a random seed.
    • Templated blocks always use the same model -- templated stone will still not be randomly rotated/flipped -- but at least now it uses the same same model.

New changes:

  • New template: "Post Cross" - a plus shape that fits squarely on fences or the Post template. Can be placed in three different orientations.
  • New template: "TNTemplate". This will end well.
  • Connected textures should work! I tested with Chisel Reborn. Other blocks should be OK as long as they implement FabricBlock#getAppearance.
  • Mushroom blocks now work (as well as any other blocks with "multipart" models).
  • Very slightly reduce memory usage of TemplateAppearance?
  • Only declare dependencies on the Fabric API modules I actually use.

TODO list:

  • I still depend on two deprecated modules, fabric-rendering-data-attachment-v1 (has ABI implications) and fabric-models-v0 (the replacement seems to be fabric-model-loading-api-v1, and this also has ABI implications)

2.1.1

by quat on Aug 2, 2023
Download

Enable ambient-occlusion (and "smooth lighting") on all Templates except for the slopes, which are still buggy with it

2.1.0

by quat on Jul 31, 2023
Download
  • new Template: Vertical Slab
  • new Template: Tiny Slope
  • Significantly reduce size of Template block entity NBT tags
    • Blocks will be automatically upgraded when loaded, creative ctrl-picked templates from before this update will not, and may act funny
    • "BlockState" -> "s", like 5 separate boolean flags -> a single bitfield "b"
  • Reduce memory footprint of Template block entities
  • Respect doTileDrops
  • Improve creative ctrl-pick behavior on glowing Templates
  • Adding a Barrier block to a Template makes it invisible (does NOT make it unbreakable btw)

2.0.4

by quat on Jul 25, 2023
Download

Add more block tags, and add item tags

2.0.3

by quat on Jul 24, 2023
Download
  • Add doors and iron doors
  • cool rivulet

2.0.2

by quat on Jul 21, 2023
Download
  • Add an Iron Trapdoor template
  • Fix mod metadata and add more metadata

Thanks Patbox for noticing/suggesting

2.0.1

by quat on Jul 11, 2023
Download

First public version. (2.0.0 was yanked for a duplication glitch.)

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+
Filter

Show all versions

Modrinth is open source.

main@a0bd011

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.