Skip to content

Instantly share code, notes, and snippets.

View valkyrienyanko's full-sized avatar

Valk valkyrienyanko

View GitHub Profile
MultiMC version: 0.7.0-3813
Launched instance in online mode
authserver.mojang.com resolves to:
[65.8.49.109, 65.8.49.49, 65.8.49.33, 65.8.49.68]
session.minecraft.net resolves to:
[13.107.246.35, 13.107.213.35]
shader_type canvas_item;
uniform float zoom : hint_range(0, 1) = 0.0f;
uniform float rotation = 0.0f;
uniform float speed : hint_range(-1, 1) = 0.2f;
uniform float swirl : hint_range(-10, 10) = 1.1f;
uniform float white_border : hint_range(0.0, 0.2) = 0.2f;
uniform float noise : hint_range(0.0, 100.0) = 42;
uniform vec4 color : source_color;
uniform float test1 : hint_range(0.0, 1.0);
shader_type canvas_item;
uniform float zoom : hint_range(0, 1) = 0.0f;
uniform float rotation = 0.0f;
uniform float speed : hint_range(-1, 1) = 0.2f;
uniform float swirl : hint_range(-10, 10) = 1.1f;
uniform float white_border : hint_range(0.0, 0.2) = 0.2f;
uniform vec4 color : source_color;
// FBM implementation from
shader_type canvas_item;
// Using code from
// nimitz for the protean cloud shader
// https://www.shadertoy.com/view/3l23Rh
// Ported to Godot and customized for FragmentForge by Db0
// Modified by valkyrienyanko
// Licence: Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License
// https://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_US
namespace SpaceGame;
public partial class CameraController : Node
{
public event Action ZoomChanged;
[ExportGroup("Zoom")]
[Export(PropertyHint.Range, "0.02, 0.16")]
float zoomIncrementDefault = 0.02f;
shader_type canvas_item;
uniform float zoom : hint_range(0, 1) = 0.0f;
uniform float rotation = 0.0f;
uniform float speed : hint_range(-1, 1) = 0.2f;
uniform float swirl : hint_range(-10, 10) = 1.1f;
// FBM implementation from
// https://github.com/MaxBittker/glsl-fractal-brownian-noise
// Star Nest by Pablo Roman Andrioli
// Ported to Godot by Lyagva
// License: MIT
shader_type canvas_item;
uniform int iterations = 17;
uniform float formuparam = 0.53;
uniform int volsteps = 10;
uniform float stepsize = 0.1;
[gd_scene load_steps=26 format=3 uid="uid://dla50js744pis"]
[ext_resource type="Shader" path="res://Shaders/2D/stars.gdshader" id="1_axaq7"]
[ext_resource type="Script" path="res://Scripts/Camera.cs" id="1_gblr2"]
[ext_resource type="PackedScene" uid="uid://c7aujwxnkio66" path="res://Scenes/Prefabs/player_ship.tscn" id="1_wawxp"]
[ext_resource type="PackedScene" uid="uid://c6pism2kgjr5c" path="res://Scenes/Prefabs/UI/popup_menu.tscn" id="2_gbn3x"]
[ext_resource type="Resource" uid="uid://b42wyojsytvbi" path="res://Resources/game_state.tres" id="2_oku7h"]
[ext_resource type="PackedScene" uid="uid://bw0p6lpwemanp" path="res://Scenes/Prefabs/Enemies/enemy_ship.tscn" id="4_hi16p"]
[ext_resource type="Script" path="res://Scripts/Ship/AI/AIShip.cs" id="5_w6cpd"]
[ext_resource type="PackedScene" uid="uid://cj2l4pjic6ibr" path="res://Scenes/Prefabs/green_laser.tscn" id="6_4qfes"]
public partial class Time : Label
{
const int TIME_MULTIPLIER = 500000000;
const int SECONDS_IN_A_MINUTE = 60;
const int MINUTES_IN_A_HOUR = 60;
const int HOURS_IN_A_DAY = 24;
const int DAYS_IN_A_MONTH = 30;
const int MONTHS_IN_A_YEAR = 12;
double time;
namespace ValksTweaks;
public class TileTweaks : GlobalTile
{
bool miningTiles;
public override void KillTile(int i, int j, int type, ref bool fail, ref bool effectOnly, ref bool noItem)
{
if (fail || miningTiles)
return;