You can easily do this without commands. Villagers will only breed when willing and when there is enough space in the village. So, you can either get rid of a couple houses or edit the houses so they no longer count as houses by putting glass in place of some blocks. A second way is to just get rid of all the gardens, and don't trade with the villagers. They will never become willing and then won't breed.
You can easily do this without commands. Villagers will only breed when willing and when there is enough space in the village. So, you can either get rid of a couple houses or edit the houses so they no longer count as houses by putting glass in place of some blocks. A second way is to just get rid of all the gardens, and don't trade with the villagers. They will never become willing and then won't breed.
If the map being played isn't a controlled adventure map and the player manages to obtain a villager and creates a village themselves, then it's not controllable in that manner (hence why this is in the "command blocks" and not "survival" section).
/scoreboard players tag @e[type=Villager,tag=!willing] add willing {Willing:1b}
/entitydata @e[type=Villager,tag=willing] {Willing:0b,Tags:[]}
how and what exactly do I type in? I think I'm doing something wrong.
also is there a gamerule to stop npcs from even spawning in the first place, I know when I play offline minecraft I can go into the files and keep npcs from spawning so is there a gamerule?
Rollback Post to RevisionRollBack
praise be to God the Father, Son, and Holy spirit. the world is a beautiful place get out and see Gods creation. john 3 :16
/scoreboard players tag @e[type=Villager,tag=!willing] add willing {Willing:1b}
/entitydata @e[type=Villager,tag=willing] {Willing:0b,Tags:[]}
how and what exactly do I type in? I think I'm doing something wrong.
also is there a gamerule to stop npcs from even spawning in the first place, I know when I play offline minecraft I can go into the files and keep npcs from spawning so is there a gamerule?
Both commands run on a clock exactly as they are written. Keep in mind it's using 1.9 features.
If its for all villagers in the world couldn't you just apply the second command on a clock (maybe a hopper clock which runs once per minute) but remove the tag:
Running /entitydata constantly is a big contributor to server lag and should be avoided as much as possible. By using the "tags" feature, /entitydata only runs when needed (which would be when a villager is willing) and thus can be attached to a 20t/s clock.
I placed each in its own command block and the first one says,[04:36:00] The dataTag does not match for 042f0152-5973-478a-9559-be1fa9c73d48
so whats going on I know you guys said this is for 1.9 but I assumed you tried it in the snapshots.
It's going to say that until the villager's "Willing" tag is set to 1. It will otherwise be 0, hence the error message. Also keep in mind that the last output will only show you the last-targeted entity from the selector, which does not necessarily have to be the successful target. And even if there was only one target, it will only show a success message for a single tick because it's going to set "Willing" back to 0.
i need a command to prevent villagers from breeding in either 1.8 or 1.9, or any way to keep them from doing so
praise be to God the Father, Son, and Holy spirit. the world is a beautiful place get out and see Gods creation. john 3 :16
The "Willing" byte tag states whether or not the villager is willing to mate. Setting that to 0 should prevent mating. Example using 1.9 features:
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
when I typed in that scoredboard part it didn't work
I typed it in the same way you wrote it
praise be to God the Father, Son, and Holy spirit. the world is a beautiful place get out and see Gods creation. john 3 :16
You need to include the error message or what unexpected thing happened as to why it "didn't work".
Keep in mind the "tags" feature is for 1.9; you'd use objectives otherwise.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
You can easily do this without commands. Villagers will only breed when willing and when there is enough space in the village. So, you can either get rid of a couple houses or edit the houses so they no longer count as houses by putting glass in place of some blocks. A second way is to just get rid of all the gardens, and don't trade with the villagers. They will never become willing and then won't breed.
Image Removed
If the map being played isn't a controlled adventure map and the player manages to obtain a villager and creates a village themselves, then it's not controllable in that manner (hence why this is in the "command blocks" and not "survival" section).
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Well, if you were looking to use villagers as decoration, then this might solve your problems.
Image Removed
using these command
/scoreboard players tag @e[type=Villager,tag=!willing] add willing {Willing:1b}
/entitydata @e[type=Villager,tag=willing] {Willing:0b,Tags:[]}
how and what exactly do I type in? I think I'm doing something wrong.
also is there a gamerule to stop npcs from even spawning in the first place, I know when I play offline minecraft I can go into the files and keep npcs from spawning so is there a gamerule?
praise be to God the Father, Son, and Holy spirit. the world is a beautiful place get out and see Gods creation. john 3 :16
Both commands run on a clock exactly as they are written. Keep in mind it's using 1.9 features.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Keep in mind it's using 1.9 features.
Running /entitydata constantly is a big contributor to server lag and should be avoided as much as possible. By using the "tags" feature, /entitydata only runs when needed (which would be when a villager is willing) and thus can be attached to a 20t/s clock.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
does this work in the current 1.9 snapshots?
I placed each in its own command block and the first one says,[04:36:00] The dataTag does not match for 042f0152-5973-478a-9559-be1fa9c73d48
so whats going on I know you guys said this is for 1.9 but I assumed you tried it in the snapshots.
praise be to God the Father, Son, and Holy spirit. the world is a beautiful place get out and see Gods creation. john 3 :16
It's going to say that until the villager's "Willing" tag is set to 1. It will otherwise be 0, hence the error message. Also keep in mind that the last output will only show you the last-targeted entity from the selector, which does not necessarily have to be the successful target. And even if there was only one target, it will only show a success message for a single tick because it's going to set "Willing" back to 0.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
so what your are essentially saying is this is normal, it is suppose to say that and I don't have to do anything else to these commands?
praise be to God the Father, Son, and Holy spirit. the world is a beautiful place get out and see Gods creation. john 3 :16
That's correct.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
if you want to test out the commands Skylinerw gave you spawn a willing villager:
in a pit then use the commands given to you.
thanks for putting up with my constant questions, I'm a man with a million questions inside of me, I like getting it right. thanks to all of you.
God bless
praise be to God the Father, Son, and Holy spirit. the world is a beautiful place get out and see Gods creation. john 3 :16