Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocks will still be destroyed when a creeper is far away from a player and is angry at a snow golem or skeleton #1

Open
MrPotatoezzz opened this issue Jul 5, 2024 · 2 comments

Comments

@MrPotatoezzz
Copy link

Steps to reproduce:

  1. summon a creeper
  2. summon a snow golem
  3. move away from both the mobs
  4. the creeper will still destroy blocks
@hallettj
Copy link
Owner

hallettj commented Jul 8, 2024

Thanks for the feedback! I'll see what I can do about fixing this.

@GabFran
Copy link

GabFran commented Dec 12, 2024

Hi, this can be fixed by including snow golems and other mobs that can aggro creepers into a entity_type list located at <main folder>/tags/entity_type/file.json, and then adding the command below to tick.mcfunction:

execute as @a at @e[type=<#main_folder/file.json>] if entity @e[type=minecraft:creeper,distance=..3,limit=1] run scoreboard players set #explosionCountdown explosionCountdown 60

or, if you don't want to add multiple mobs:

execute as @a at @e[type=<minecraft:mob>] if entity @e[type=minecraft:creeper,distance=..3,limit=1] run scoreboard players set #explosionCountdown explosionCountdown 60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants