Roguelike Dungeons

Roguelike Dungeons

33M Downloads

Trouble with configs

EnderStar opened this issue ยท 6 comments

commented

Hi, with looting:0 mobs drop loot (normal and armor/weapons) and how can i remove some mobspawners from all the dungeons, i added _mobs.json to the settings folder with the names of the mobs that i want to be spawned but that isnt affecting the dungeons, other mobs still spawn, do i have to add other files? Is possible to do what i want to do without changing any other feature of the mod?
Also i tryed to add nbt data to the mobs, this is how i did it:

{
	"name" : "mobs",
	"levels" : {
		"all" : {
			"spawners" : {
				"SILVERFISH" : [
					{"name" : "Silverfish"}
				],
				"CAVESPIDER" : [
					{"name" : "CaveSpider"}
				],
				"SPIDER" : [
					{"name" : "Spider"}
                                        {"meta" : "{Attributes:[{Name:"generic.maxHealth",Base:100.0}]}"}
				]
			}
		}
	}
}

Is everything right there?
Thanks!

commented

Have you tried overriding?

commented

Now i added the main.json file with override, here it is:

{
	"name" : "main",
	"inherit" : [
		"mobs"
	],
	"overrides" : [
		"SPAWNERS"
	]
}

I only have this file and _mobs.json, i dont know if "SPAWNERS" is the right name
Edit: i saw a youtube tutorial and he spawns the dungeon to see the changes using the name of this file at the end of the command, do this config affect all the naturally generated dungeons or only the ones that i spawn with this name?
Thanks!

commented

I think inherit might be broken when spawning specific dungeons so any dungeon spawned without the name should have it.

commented

Im realy confused about how the settings work so possibly i did smething wrong, can you tell me what i have to do to only disable some mobspawners and add nbt data to the mobs without touching anything more? (i know how to add nbt data with command blocks but i dont know where where i have to add it with this mod)
Thanks!

commented

I think you can only disable all of the mob spawners or add them so if you want full control, you have to re-add them after you override.

commented

Thanks for your answer, i just found a one hour tutorial video that explains a lot , now i know how to disable some mobs, but the nbt part is a mistery XD, i tryed this to add atributes to the mobs:

{
	"name" : "spawners",
	"criteria" : {},
	"levels" : {
		"all" : {
			"spawners" : {
"CREEPER" : [
{
                                       "name" : "Blaze",
					"meta" : {
						"Attributes" : [
							{
							"Name" : "generic.maxHealth",
							"Base" : "100.0"
							}
						]
						}
}
]
}}}}

thisdoesnt work but if i remove the meta it works and replaces the creeper spawners with blaze spawners :D Do you know how is the format to add nbt data?
Thanks!
Edit: i tryed adding SpawnData in the case that this config affect mob spawners directly but it doesnt work.