jsp
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
# Overworld-only override for infinity_cave 5 second timer
|
||||
execute in minecraft:overworld as @e[type=#infinity_cave:aggro,tag=ic.ability] at @s run function infinity_cave:abilities/aggro
|
||||
|
||||
schedule function infinity_cave:abilities/5_seconds 5s
|
||||
@@ -0,0 +1,4 @@
|
||||
# Overworld-only override for infinity_cave second timer
|
||||
execute in minecraft:overworld as @e[type=area_effect_cloud,tag=ic.fireball_damage] at @s run function infinity_cave:abilities/magician/fireball/fireball_damage
|
||||
|
||||
execute if score #magician_active ic.int matches 1 run schedule function infinity_cave:abilities/second 10t replace
|
||||
@@ -0,0 +1 @@
|
||||
# FTB Evolution override - Rocklops mob disabled (intentionally empty)
|
||||
+1
@@ -0,0 +1 @@
|
||||
# FTB Evolution override - Rocklops mob disabled (intentionally empty)
|
||||
@@ -0,0 +1 @@
|
||||
# FTB Evolution override - Rocklops mob disabled (intentionally empty)
|
||||
+1
@@ -0,0 +1 @@
|
||||
# FTB Evolution override - Rocklops mob disabled (intentionally empty)
|
||||
@@ -0,0 +1 @@
|
||||
# FTB Evolution override - Rocklops mob disabled (intentionally empty)
|
||||
+1
@@ -0,0 +1 @@
|
||||
# FTB Evolution override - Rocklops mob disabled (intentionally empty)
|
||||
@@ -0,0 +1,20 @@
|
||||
# FTB Evolution override - Rocklops spawn line removed (mob disabled)
|
||||
$data merge entity @s {CustomNameVisible:1b,DeathLootTable:"infinity_cave:$(biome)/$(tag)/$(id)",Team:"ic.mob_team",PersistenceRequired:$(persistence)b,Silent:$(silent),CanPickUpLoot:0b,Health:9999f,Fuse:32767,Size:4,IsImmuneToZombification:1b,AngerTime:99999,AngryAt:$(AngryAt),Tags:["ic.ability","$(prefix)$(ability)",$(type),"$(tag)"],CustomName:'[$(tier),"$(Name)"]',HandItems:[$(mainhand)],HandDropChances:[-327.670F,-327.670F],ArmorItems:[$(feet),$(legs),$(chest),$(head)],ArmorDropChances:[-327.670F,-327.670F,-327.670F,-327.670F],active_effects:[{id:"minecraft:unluck",amplifier:$(ranged),duration:-1,show_particles:0b},$(invis),{id:"minecraft:fire_resistance",amplifier:1,duration:-1,show_particles:0b}],attributes:[{id:generic.max_health,base:$(health)},{id:generic.knockback_resistance,base:$(knockback)},{id:generic.movement_speed,base:$(speed)},{id:generic.attack_damage,base:$(attack)},{id:generic.scale,base:$(scale)},{id:generic.follow_range,base:60},{id:generic.step_height,base:1},{id:"minecraft:zombie.spawn_reinforcements",base:0}],VillagerData:{profession:"minecraft:nitwit",type:"minecraft:jungle"}}
|
||||
|
||||
loot replace entity @s weapon.offhand loot infinity_cave:refs/offhand
|
||||
|
||||
# Bossbars
|
||||
execute if entity @s[tag=ic.ability.1] run function dynamic_bossbars:entity/add_bossbar {identifier:"health",color:"red",style:"progress",value_setter:"data get entity @s Health",max_setter:"attribute @s generic.max_health get",player_setter:"execute as @a[distance=..64] run",name_setter:'{"selector":"@s"}'}
|
||||
execute if entity @s[tag=ic.ability.2] run function dynamic_bossbars:entity/add_bossbar {identifier:"health",color:"pink",style:"progress",value_setter:"data get entity @s Health",max_setter:"attribute @s generic.max_health get",player_setter:"execute as @a[distance=..64] run",name_setter:'{"selector":"@s"}'}
|
||||
execute if entity @s[tag=ic.ability.3] run function dynamic_bossbars:entity/add_bossbar {identifier:"health",color:"blue",style:"progress",value_setter:"data get entity @s Health",max_setter:"attribute @s generic.max_health get",player_setter:"execute as @a[distance=..64] run",name_setter:'{"selector":"@s"}'}
|
||||
execute if entity @s[tag=ic.ability.4] run function dynamic_bossbars:entity/add_bossbar {identifier:"health",color:"yellow",style:"progress",value_setter:"data get entity @s Health",max_setter:"attribute @s generic.max_health get",player_setter:"execute as @a[distance=..64] run",name_setter:'{"selector":"@s"}'}
|
||||
execute if entity @s[tag=ic.ability.5] run function dynamic_bossbars:entity/add_bossbar {identifier:"health",color:"white",style:"progress",value_setter:"data get entity @s Health",max_setter:"attribute @s generic.max_health get",player_setter:"execute as @a[distance=..64] run",name_setter:'{"selector":"@s"}'}
|
||||
execute if entity @s[tag=ic.ability.6] run function dynamic_bossbars:entity/add_bossbar {identifier:"health",color:"green",style:"progress",value_setter:"data get entity @s Health",max_setter:"attribute @s generic.max_health get",player_setter:"execute as @a[distance=..64] run",name_setter:'{"selector":"@s"}'}
|
||||
|
||||
function infinity_cave:technical/hit_match/player_hurt_entity/setup/setup_id
|
||||
|
||||
$item modify entity @s[tag=$(tag)] armor.head infinity_cave:enchants/mob/$(ench)
|
||||
$item modify entity @s[tag=$(tag)] armor.chest infinity_cave:enchants/mob/$(ench)
|
||||
$item modify entity @s[tag=$(tag)] armor.legs infinity_cave:enchants/mob/$(ench)
|
||||
$item modify entity @s[tag=$(tag)] armor.feet infinity_cave:enchants/mob/$(ench)
|
||||
$item modify entity @s[tag=$(tag)] weapon infinity_cave:enchants/mob/$(ench)
|
||||
@@ -0,0 +1,22 @@
|
||||
# Overworld-only override - only spawn infinity cave mobs in overworld
|
||||
execute unless dimension minecraft:overworld run return 0
|
||||
|
||||
advancement revoke @s only infinity_cave:enter_spawn_area
|
||||
|
||||
execute if score $frequency ic.int matches -1 run fill ~-5 ~2 ~5 ~5 ~-2 ~-5 air replace minecraft:void_air
|
||||
execute if score $frequency ic.int matches 0 run fill ~-3 ~2 ~3 ~3 ~-2 ~-3 air replace minecraft:void_air
|
||||
execute if score $frequency ic.int matches 1 run fill ~-1 ~2 ~1 ~1 ~-2 ~-1 air replace minecraft:void_air
|
||||
|
||||
execute if score #disable_double_spawn ic.int matches 0 if predicate {"condition":"minecraft:random_chance","chance":{"type":"minecraft:score","target":"this","score":"ic.progression","scale":0.0002}} if block ~ ~1 ~ air run setblock ~ ~1 ~ void_air
|
||||
|
||||
execute if entity @s[scores={ic.progression=..99}] store result score #ic.tier ic.int run random value 1..700
|
||||
execute if entity @s[scores={ic.progression=100..249}] store result score #ic.tier ic.int run random value 1..908
|
||||
execute if entity @s[scores={ic.progression=250..499}] store result score #ic.tier ic.int run random value 200..950
|
||||
execute if entity @s[scores={ic.progression=500..999}] store result score #ic.tier ic.int run random value 300..988
|
||||
execute if entity @s[scores={ic.progression=1000..2499}] store result score #ic.tier ic.int run random value 400..1000
|
||||
execute if entity @s[scores={ic.progression=2500..4999}] store result score #ic.tier ic.int run random value 600..1000
|
||||
execute if entity @s[scores={ic.progression=5000..}] store result score #ic.tier ic.int run random value 600..1010
|
||||
|
||||
execute store result storage ic:y y int 1 run data get entity @s Pos[1] 0.95
|
||||
|
||||
execute summon area_effect_cloud run function infinity_cave:marker with storage ic:y
|
||||
@@ -0,0 +1,12 @@
|
||||
# Overworld-only override for infinity_cave tick
|
||||
# Only run mob abilities in the overworld
|
||||
|
||||
execute in minecraft:overworld run data modify storage dynamic_bossbars:entity_database temp.invalid_entries set from storage dynamic_bossbars:entity_database data.current
|
||||
|
||||
execute in minecraft:overworld as @e[type=#infinity_cave:mobs,tag=ic.ability] at @s run function infinity_cave:abilities/tick
|
||||
|
||||
#---remove bossbars with no entity---
|
||||
execute in minecraft:overworld if data storage dynamic_bossbars:entity_database temp.invalid_entries[0] run function dynamic_bossbars:storage/entity_database/remove_orphan_bossbars
|
||||
|
||||
#---clear temp---
|
||||
execute in minecraft:overworld run data modify storage dynamic_bossbars:entity_database temp set value {}
|
||||
Reference in New Issue
Block a user