The Lost Cities

The Lost Cities

58M Downloads

[Asset System Question] Can I use commands such as CreateBuilding or CreatePart to generate custom assets?

PeterBennyFooda opened this issue ยท 7 comments

commented

Hi, I really like the new Asset DataPack System so far.

However, it seems that only buildings or parts in the standard asstets can be generated by commands.
Currently, I need to override the standard citystyle with custom buildings and try to find them in the world.

It would be more convenient if I can use the commands to generate custom asstes immediately.

Version: lostcities-1.18-5.3.14

commented

For example, I have a custom asstes folder and the modid is "mycities" and there is a custom building "data\mycities\lostcities\buildings\mybuilding1.json".

If I type the command like "/lostcities createbuilding mybuilding1 1 8", I'll get the error message "Error trying to get resource lostcities:mybuilding1!".

if I change the command to "/lostcities createbuilding mycities:mybuilding1 1 8", I'll get the error message "expected whitespace to end one argument but found trailing data" right after I type the colon.

commented

You need " around mycities:mybuilding

commented

Hmm you can generate any part you want? Why do you think that isn't working?

commented

Unfortunately it's still not working.
image

image

commented

Hmm weird. I'll have to check it out

commented

Okay, thanks for your help!
I'll just override the standard citystyle to check my custom buildings for now.

commented

I implemented proper command support now. Including tab completion like vanilla commands