Skip to content

Instantly share code, notes, and snippets.

View LatvianModder's full-sized avatar
🔧
2nd best Minecraft Modder on this planet

Kristiāns Micītis LatvianModder

🔧
2nd best Minecraft Modder on this planet
View GitHub Profile
import processing.core.PApplet;
import processing.event.MouseEvent;
import processing.serial.Serial;
/**
* @author LatvianModder
*/
public class LedStrip extends PApplet
{
public static void main(String[] args)
@LatvianModder
LatvianModder / LedStrip.ino
Created June 2, 2018 10:06
Code for Arduino to read data from serial and display it on a led strip
#include "FastLED.h"
#define NUM_LEDS 300
#define DATA_PIN 3
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS);
FastLED.setTemperature(Tungsten100W);
FastLED.setBrightness(30);
@LatvianModder
LatvianModder / 1ranksoverview.md
Last active August 26, 2023 11:19
FTBU for dummies
@LatvianModder
LatvianModder / README.md
Last active March 1, 2017 18:12
FTBUtilities: Setting up ranks.json

Example ranks:

{
    "default_ranks": {
        "player": "player",
        "op": "op"
    },
    "ranks": {
 "player": {
@LatvianModder
LatvianModder / README.md
Last active July 20, 2022 00:56
FTBLib / FTBUtilities Teams

Teams

Teams will now replace previous friends system. That way, it's much easier to manage claimed chunks and other stuff I have planned.

Basics

  • Players start without a team, until they either create or join one
  • Player can only be in one team
  • If you are the owner, you can't leave the team without either giving ownership to another member or kicking everyone out
  • Team can't have multiple owners, only one owner / host / admin
@LatvianModder
LatvianModder / Context.java
Last active June 26, 2016 18:47
PermissionAPI
import net.minecraft.entity.Entity;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import javax.annotation.ParametersAreNonnullByDefault;
import java.util.HashMap;
import java.util.Map;
/**
* Created by LatvianModder on 26.05.2016.
@LatvianModder
LatvianModder / FTBLib.md
Created May 8, 2016 13:08
FTB Mod Commands

Commands

/reload [client] - Reloads server and optionally client /reload_client - Reloads client only

/ftb_mode set - Sets current mode /ftb_mode get - Prints current mode /ftb_mode list - Prints all available modes

/edit_config [group] [entry] [value] - Opens config Gui, if only 1st argument is given

@LatvianModder
LatvianModder / README.md
Last active April 19, 2017 14:16
New FTBUtilities Guide System for 1.9

New FTBUtilities Guide System for 1.9

Online guides

Any modder or modpack author can ask me to add their guide to the repo list, when this new feature is done. If a server wants to make a guide, they can do it from server side. All guides will be hosted online, but could also be downloaded and launched from offline-mode too. Modpacks that need a guide to be installed together with modpack (like FTB Infinity Evolved or Skyblock), can add the guide url / ID in config file OR just drop the guide in modpack/guide/ folder.

What are the advantages?

  1. I would not only make guides for my mods for Minecraft ingame, but I would also develop a web-app And possibly an Android app that would allow to view all guides online without even opening Minecraft
@LatvianModder
LatvianModder / README.md
Last active May 3, 2021 06:38
FTBUtilities Guide Info
@LatvianModder
LatvianModder / ranks_example.json
Last active August 17, 2017 16:42
FTBU's Rank System Example
{
"default_rank": "Player",
"ranks": {
"Player": {
"parent": "",
"color": "white",
"prefix": "",
"badge": "",
"permissions": [
"-ftbu.display.admin_info",