StructurePlacerAPI

StructurePlacerAPI

Mod

An API made for fabric mod developers to spawn NBT structures

Server LibraryUtility

3,136 downloads
9 followers
Follow Save
Filter loader...
Filter versions...
Filter channels...

Added

#getTemplate()
getTemplatePreview()

methods to get an instance of the structure that is going to be placed. Can be useful to get its size and other info.

Fixed issues when using this mod on 1.19.2

Updated to 1.21

EDIT: Still works in 1.21.7

  • Switched from using ServerWorld to StructureWorldAccessor so you can use it earlier, from this suggestion
  • Fixed an issue with loadAndRestoreAnimated where executing it in rapid succession made a loop of regenerating blocks (like so)
  • Added javadoc & sources
  • I had accidentally removed the setblockstate for the animated method, so it didn't work. It is now fixed, sorry!
  • Added a way to regenerate the old terrain after a structure has been placed, optionally with a small animation! Check the description or github page for more info! You can also look at the javadocs.
  • Updated the javadocs between 1.1.0 and 1.1.1
  • Hopefull fixed the maven mess i made
  • FabricAPI is now required as a dependency
  • I made a mess with modrinth versioning, so 1.1.0 won't with maven, use 1.1.1 please!
  • Updated to 1.20.x

Oops forgot to change the modid, it showed the one from potionrecipesmod


Project members

Emafire003

Owner

Details

Licensed CC0-1.0
Published 3 years ago
Updated 3 days ago