Skip to content

Commit

Permalink
Improve decay of tiny spiders
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Dec 20, 2023
1 parent e63c840 commit 253b8cf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion beet.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: One Hundred Tiny Spiders
author: Misode
version: 1.0.0
version: 1.1.0

require:
- bolt
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
scoreboard players add @s one_hundred_tiny_spiders 1

scoreboard players add @s[scores={one_hundred_tiny_spiders=100..140},predicate=one_hundred_tiny_spiders:stay_alive] one_hundred_tiny_spiders 1
scoreboard players set @s[scores={one_hundred_tiny_spiders=100..140},predicate=one_hundred_tiny_spiders:kill] one_hundred_tiny_spiders 144

execute if entity @s[scores={one_hundred_tiny_spiders=144},predicate=one_hundred_tiny_spiders:play_sound] run playsound minecraft:entity.chicken.egg master @a ~ ~ ~ 0.5 2
execute if entity @s[scores={one_hundred_tiny_spiders=150},predicate=one_hundred_tiny_spiders:spawn_particle] run particle minecraft:poof
tp @s[scores={one_hundred_tiny_spiders=150..}] ~ ~-1000 ~
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"condition": "minecraft:random_chance",
"chance": 0.5
"chance": 0.1
}
4 changes: 4 additions & 0 deletions src/one_hundred_tiny_spiders/predicates/spawn_particle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"condition": "minecraft:random_chance",
"chance": 0.2
}

0 comments on commit 253b8cf

Please sign in to comment.