#Making a custom map for my structure

14 messages · Page 1 of 1 (latest)

fiery ivy
#

Hi so i have a structure and i was wondering how i can make a make even if it is a loot table like for a vault or something locate the structure

stray sinew
#

Please check your english, I can't understand xd

pulsar basin
#

Off hand I haven't messed with maps as I'm relatively new to modding, but if you are looking to create one for a specific location that does not change this mod does that:

https://modrinth.com/mod/treasuremap

You can check out the source code to learn how it implements it.

#

I assume (hopefully correctly) they meant make a map

fiery ivy
fiery ivy
#

so what i need help with is making a wandering trader trade that can locate a structure with a map like buried treasure or the new villager trade rebalence that locates villages and thing can you help @stray sinew ?

stray sinew
#

Ah, I get it now. Maybe look into what Xethas mentioned. I don't really know how those work. The mc code would be good to look into as well.

fiery ivy
# stray sinew Ah, I get it now. Maybe look into what Xethas mentioned. I don't really know how...

what Xethas mentioned i dont think would work becuase the postition can change and that uses comands and i can't find where minecraft does its villager trades so even if anyone could provid the class that shows how villager trades are done that would be much help. I tried to look at this https://github.com/TelepathicGrunt/RepurposedStructures/tree/1.21-Arch/common/src/main/java/com/telepathicgrunt/repurposedstructures/misc/maptrades but some of the classes used don't even exist?

GitHub

Reusing and modifying vanilla structures for extra variety! - TelepathicGrunt/RepurposedStructures

fiery ivy
#

hey @pulsar basin do you have any other ideas?

pulsar basin
#

In that case your best bet would be to make a custom item that runs a command when used then consumes itself

#

probably doesn't translate 1 to 1 but it should be something to go off of

fiery ivy
#

yay...

#

but im pised at myself because all i was missing was a json file telling it in the tag/worldgen/structure telling what structure it goes to...