Closed mdj117 closed 7 years ago
Also there is a syntax error:
Unterminated array at line 784 column 25 path $.SpawnBlockRegions.regionsToFill[776]
Will fix the syntax error, but should I define a new type or just define it as like a corridor ? I think I'll define a new type :-)
Adding a new structure type doesn't make sense when it does not get used. Basically the structure type defines where it spawns. If you use a structure type that does not get spawned yet then your structure won't be spawned and no one will see it.
Please also have a look at my comments in the other PR. I also explain some basics there.
For example the dungeonCorridorLeftTurnSpawner.prefab has the following section that makes it spawn a random structure template of type dungeon3x3StoneCorridor at the relative location of 1 0 3 facing left:
"ScheduleStructurePlacement" : {
"placementsToSchedule": [
{
"structureTemplateType": "GooeysQuests:dungeon3x3StoneCorridor",
"front": "LEFT",
"position": [1, 0, 3]
}
]
},
If you made a new room that has a door sized entrance then use the type dungeon1x2StoneDoorFrame type. If it has a 3x3 wide entrance use dungeon3x3StoneCorridor. If it is a building for outside and a dungeon use type dungeonEntrance. You possibly then also want it to actually spawn a dungeon corridor (like with the json above) so that there is something bigger to explore.
Do you still plan to add a spawn condition?
as in ?
Like
"CheckBlockRegionCondition" : {
"checksToPerform": [
{"condition": "StructureTemplates:IsGroundLike", "region" :{"min": [-3, -1, 1], "size": [7, 7, 6]}}
]
},
And have a look at existing entrance prefab for how to check for air.
should I ?
otherwise your structure will spawn at very bad locations. Like fore example over something the player built.
Umm, Can I do that after GCI ?
If this is your task then https://codein.withgoogle.com/dashboard/task-instances/4741269605580800/ I think you started again the wrong task.
I tried it out, it still contains the old syntax error.
Once the syntax error is gone, you should be able to find it in the toolbox which can be obtained via "give toolbox" if you use the newest version of the StructureTemplates module.
I'll do that in a bit What do I have to do for the task I've currently claimed ?
I don't know what your google account is. I suggest you just look up the task description
LGTM! @flo you might want to take a look at this 🙂