In Control!

In Control!

72M Downloads

[1.12.2] Block command not working on mobs

Closed this issue ยท 10 comments

commented

This code does nothing, there are no errors, it just does nothing
https://pastebin.com/6BWG6PXx

commented

How are you testing this? Can you describe things a bit more? How do you know it's not working?

commented

because there are no mobs spawning Where I want them to spawn
i want them to spawn on a specific block and they dont
even if i set the weight to 100
in a fresh modpack with only incontrol and fx control:
(spawn.json)
[
{
"mob": "minecraft:pig",
"block": "minecraft:emerald_block",
"result": "allow"
},
{
"result": "deny"
}
]
(potentialspawn.json)
[
{
"mobs": [
{
"mob": "minecraft:pig",
"weight": 100,
"groupcountmin": 1,
"groupconuntmax": 2
}
]
}
]

then i reloaded rules and placed down some emerald blocks
no pigs are spawning but i get this when i turn in control debug on
[Server thread/INFO] [incontrol]: Potential 0: class net.minecraft.entity.passive.EntityPig
but no pigs on emerald blocks

commented

@McJty
can you help me with this?

commented

How far are you from the emerald blocks? Mobs don't spawn near the player

commented

@McJty
it still didn't work i went all the way until it was out of my render distance then came back and no pigs
is there any other way to make a mob spawn on a block?
I copy and pasted the example on the wiki, and it didn't work
i don't know what iam doing wrong

commented

@McJty
Is there another mob I can use to make a mob spawn on a block?

commented

@McJty is 1.12.2 not supported any more?

commented

I don't work on it anymore. I simply don't have the time and 1.12 is getting old

commented

Oh ok

commented

Thanks for the help anyway