
scoreboard players set temp_gamerules_modified refresh_gamerules 0

execute unless score minecraft:show_advancement_messages refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:command_block_output refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:elytra_movement_check refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:raids refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:advance_time refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:entity_drops refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:fire_spread_radius_around_player refresh_gamerules matches 128 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:immediate_respawn refresh_gamerules matches 0 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:spawn_phantoms refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:limited_crafting refresh_gamerules matches 0 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:mob_drops refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:spawn_mobs refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:spawn_patrols refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:block_drops refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:spawn_wandering_traders refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:spawn_wardens refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:advance_weather refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:drowning_damage refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:fall_damage refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:fire_damage refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:forgive_dead_players refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:freeze_damage refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:keep_inventory refresh_gamerules matches 0 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:log_admin_commands refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:max_command_sequence_length refresh_gamerules matches 65536 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:max_entity_cramming refresh_gamerules matches 24 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:mob_griefing refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:natural_health_regeneration refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:players_sleeping_percentage refresh_gamerules matches 100 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:random_tick_speed refresh_gamerules matches 3 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:reduced_debug_info refresh_gamerules matches 0 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:send_command_feedback refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:show_death_messages refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:respawn_radius refresh_gamerules matches 10 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:spectators_generate_chunks refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:universal_anger refresh_gamerules matches 0 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:global_sound_events refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:lava_source_conversion refresh_gamerules matches 0 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:water_source_conversion refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:max_snow_accumulation_height refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:mob_explosion_drop_decay refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:block_explosion_drop_decay refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:tnt_explosion_drop_decay refresh_gamerules matches 0 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:tnt_explodes refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:spread_vines refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:max_block_modifications refresh_gamerules matches 32768 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:ender_pearls_vanish_on_death refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:projectiles_can_break_blocks refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:players_nether_portal_default_delay refresh_gamerules matches 80 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:players_nether_portal_creative_delay refresh_gamerules matches 0 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:max_command_forks refresh_gamerules matches 65536 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:locator_bar refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:pvp refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:spawn_monsters refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:allow_entering_nether_using_portals refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1
execute unless score minecraft:command_blocks_work refresh_gamerules matches 1 run scoreboard players set temp_gamerules_modified refresh_gamerules 1