So I'm trying to make 1.8 fun without mods by using command block mechanisms similar to mods so my younger brother will actually want to play with me (I'm extremely lonely) and i a wanted to know is it possible to make certain entities have loot and others have no loot. (Note: not custom loot.) It would prefer if its not a gamerule, and a summon, but if not its fine. If yes please explain how, and if it needs 1.8 or the 1.8.1. I hope someone knows how ^_^.
So depending on what you want to put on the entity replace <item> with minecraft:item (whatever you want it to be)
So what you would do, is execute at a random entity, and give it a dummy score of 1.
/scoreboard objectives add loot dummy loot
Then you would randomly set a entity (a zombie say) to that scoreboard value
/scoreboard players set @r[type=Zombie] loot 1
Then you give it the loot
/replaceitem entity @r[type=Zombie,score_loot_min=1] slot.armor.chest minecraft:<item> (say you wanted zombies to randomly drop gold, you would use minecraft:gold_ingot)
Then you have to make it always drop that with the drop chances tag. In that tag, the '1.0F' is the chest slot
This would give a random zombie gold ingot, and make sure it drops it.
You would have to make this type of schematic for each entity, so for skeletons and stuff, and make more for each item you want it to randomly drop.
You'd want to do this periodically, maybe every minute or so, and you'd just have it on repeaters so do the first command, then go into a repeater into the next command, and then the next one, since when you power a command block with a repeater, you can get a signal out of it from the other side.
I hoped this helped, and if you need more help, you can ask!
So depending on what you want to put on the entity replace <item> with minecraft:item (whatever you want it to be)
So what you would do, is execute at a random entity, and give it a dummy score of 1.
/scoreboard objectives add loot dummy loot
Then you would randomly set a entity (a zombie say) to that scoreboard value
/scoreboard players set @r[type=Zombie] loot 1
Then you give it the loot
/replaceitem entity @r[type=Zombie,score_loot_min=1] slot.armor.chest minecraft:<item> (say you wanted zombies to randomly drop gold, you would use minecraft:gold_ingot)
Then you have to make it always drop that with the drop chances tag. In that tag, the '1.0F' is the chest slot
This would give a random zombie gold ingot, and make sure it drops it.
You would have to make this type of schematic for each entity, so for skeletons and stuff, and make more for each item you want it to randomly drop.
You'd want to do this periodically, maybe every minute or so, and you'd just have it on repeaters so do the first command, then go into a repeater into the next command, and then the next one, since when you power a command block with a repeater, you can get a signal out of it from the other side.
I hoped this helped, and if you need more help, you can ask!
i know that would give a zombie a custom drop but thats not what i meant D: so lets say i wanted every mob in the game to drop their items except an iron golem. how would i do that without have iron ingots or rose items being killed.
Thats not that easy, though you can check if a player has recently killed an iron golem, and then kill all iron ingot and rose entities in an small radius around them.
So what you would do, is execute at a random entity, and give it a dummy score of 1.
/scoreboard objectives add loot dummy loot
Then you would randomly set a entity (a zombie say) to that scoreboard value
/scoreboard players set @r[type=Zombie] loot 1
Then you give it the loot
/replaceitem entity @r[type=Zombie,score_loot_min=1] slot.armor.chest minecraft:<item> (say you wanted zombies to randomly drop gold, you would use minecraft:gold_ingot)
Then you have to make it always drop that with the drop chances tag. In that tag, the '1.0F' is the chest slot
/entitydata @e[type=Zombie,score_loot_min=1] {DropChances:[0.0F,1.0F,0.0F,0.0F]}
Then you would just set it back to 0.
/scoreboard players set @a[type=Zombie] loot 0
This would give a random zombie gold ingot, and make sure it drops it.
You would have to make this type of schematic for each entity, so for skeletons and stuff, and make more for each item you want it to randomly drop.
You'd want to do this periodically, maybe every minute or so, and you'd just have it on repeaters so do the first command, then go into a repeater into the next command, and then the next one, since when you power a command block with a repeater, you can get a signal out of it from the other side.
I hoped this helped, and if you need more help, you can ask!
i know that would give a zombie a custom drop but thats not what i meant D: so lets say i wanted every mob in the game to drop their items except an iron golem. how would i do that without have iron ingots or rose items being killed.