Can comeone help me add the chickens health to this command. They have a max health of 8 but there still 1 hit so it seems there max health might be 8 but not the health they actually have? I need to add ,HealF:8} somewhere someone with the max health but i cant seem to get it right.
I know that but it doesnt seem to be working. I even tried 10 hearts (20) and i killed them in 1 shot with wooden sword. 4 hearts should be two kits by wooden sword so im not exactly sure whats wrong with it
I just replied not sure if it will notify you so im replying on this as well
I completely forgot that spawners work a bit differently than commands. Sorry about that; to modify its current health, the "HealF" tag gets placed at the root of the entity (same level as "CustomName"):
THANK YOU SO MUCH. I can finally get to working on some more parts of this map. Mind if i inbox you if i have more questions about other things? I used to be good with command blocks but i took a break off minecraft so im trying to get back into it,
THANK YOU SO MUCH. I can finally get to working on some more parts of this map. Mind if i inbox you if i have more questions about other things? I used to be good with command blocks but i took a break off minecraft so im trying to get back into it,
anyway thanks!
Sure, though I do recommend asking questions publicly first. That way there's a quicker response and varied solutions.
Can comeone help me add the chickens health to this command. They have a max health of 8 but there still 1 hit so it seems there max health might be 8 but not the health they actually have? I need to add ,HealF:8} somewhere someone with the max health but i cant seem to get it right.
Heres the command i have:
/setblock ~ ~1 ~ mob_spawner 0 replace {SpawnCount:1,MaxNearbyEntities:6,SpawnRange:4,Delay:20,MinSpawnDelay:60,MaxSpawnDelay:120,RequiredPlayerRange:6,EntityId:Chicken,SpawnData:{CustomName:"[Lvl:01] Chicken",CustomNameVisible:1,Attributes:[{Name:"generic.maxHealth",Base:8}],DropChances:[0.25F,0F,0F,0F,0F],Equipment:[{id:"minecraft:emerald",tag:{display:{Name:Coin,Lore:["Coin to buy stuff with!"]}},Count:1},{},{},{},{}]}}
Their current health will match their maxHealth when created. Keep in mind that health is stored in half-hearts (1 = 0.5 hearts, so 8 is 4 hearts).
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/
I know that but it doesnt seem to be working. I even tried 10 hearts (20) and i killed them in 1 shot with wooden sword. 4 hearts should be two kits by wooden sword so im not exactly sure whats wrong with it
I just replied not sure if it will notify you so im replying on this as well
I completely forgot that spawners work a bit differently than commands. Sorry about that; to modify its current health, the "HealF" tag gets placed at the root of the entity (same level as "CustomName"):
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/
THANK YOU SO MUCH. I can finally get to working on some more parts of this map. Mind if i inbox you if i have more questions about other things? I used to be good with command blocks but i took a break off minecraft so im trying to get back into it,
anyway thanks!
Sure, though I do recommend asking questions publicly first. That way there's a quicker response and varied solutions.
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/