#how do I get custom trial spawners to work?
1 messages · Page 1 of 1 (latest)
What kind of trouble exactly?
I've tried setting the data for the trial spawner with commands, but it doesn't have the mobs inside it, and when I test it, it's either inactive and doesn't spawn anything, or spawns regular mobs and uses the normal trial spawner loot table
this is the command I used if it helps:
/give 31ht minecraft:trial_spawner[minecraft:block_entity_data={"id":"trial_spawner","spawn_data":{"entity":"minecraft:skeleton"}}]
actually it's this one
/give 31ht minecraft:trial_spawner[minecraft:block_entity_data={"id":"trial_spawner","normal_config":"31end:end_skeleton","ominous_config":"31end:end_skeleton","spawn_data":{"entity":"minecraft:skeleton"}}]
i sent the wrong one
Well issue #1 is you can and should omit the spawn_data field entirely. That's setting the data of the next mob that the spawner is going to try to spawn, but that will get set automatically from your normal config, so including it here is just gonna pre-load a mob with data you may not want
For not spawning at all, you'll need to keep in mind that trial spawners are a little quirky compared to regular spawners. Unlike regular spawners, not only do you need to not be in peaceful, but you also need to be in survival mode, and the doMobSpawning gamerule needs to be enabled
Check on/fix both of those, show your new command and explain what exactly happens when you try to place it and activate it, and we'll go from there
ok, I did those, and it had the same problem as before
But it turns out I just forgot to add the datapack (with the loot table) to the world I was creating the datapack in, so when I placed the spawner it placed as empty.
I'm not sure what loot table you're referring to here
oh
so, I made a custom json for the spawners, but since the world I was placing the spawners in didn't have the jsons it needed to work, it just placed it empty (or at least I think that's how it worked?)
I'm gonna test it to see if it actually fixed it or not and get back to you.
Yes, the data pack with the JSONs does of course need to be in the world for it to work. Those JSONs also are not loot tables, so if you have them in the loot_table folder, they need to be in the correct trial_spawner folder
yes, it fixed it
thanks for you help!