Skip to content

Instantly share code, notes, and snippets.

View nfitzen's full-sized avatar

Nathaniel Fitzenrider nfitzen

  • United States
View GitHub Profile
@nfitzen
nfitzen / autorole.py
Last active April 3, 2021 01:50
Autorole with membership screening
#!/usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Nathaniel Fitzenrider <https://github.com/nfitzen>
#
# SPDX-License-Identifier: CC0-1.0
# Note: only works with membership screening enabled.
import discord
ROLE_ID = None
@nfitzen
nfitzen / generate_assets.sh
Last active September 10, 2021 12:17
Generates the default Minecraft datapack and optionally gets resources (if client JAR's downloaded)
#!/usr/bin/env bash
# SPDX-FileCopyrightText: 2020-2021 Nathaniel Fitzenrider <https://github.com/nfitzen>
#
# SPDX-License-Identifier: CC0-1.0
# This program requires a copy of the Minecraft server software
# and its corresponding client version downloaded through the Launcher.
# save `server.jar` in the current working directory.
# Get version. This can only be done by running the server to my knowledge.
@nfitzen
nfitzen / rename_revert.py
Last active February 6, 2021 21:36
Reverts renames every time someone rechanges your nickname
#!/usr/bin/env python3
# SPDX-FileCopyrightText: 2020-2021 Nathaniel Fitzenrider <https://github.com/nfitzen>
#
# SPDX-License-Identifier: CC0-1.0
# DISCLAIMER: SELF-BOTTING CAN GET YOU PERMANENTLY BANNED FROM DISCORD! USE AT YOUR OWN RISK!
import discord
disclaimer = "DISCLAIMER: SELF-BOTTING CAN GET YOU PERMANENTLY BANNED FROM DISCORD! USE AT YOUR OWN RISK!"
@nfitzen
nfitzen / add-copyright.py
Last active June 24, 2021 00:06
Adds copyright headers to all files matching a certain pattern.
@nfitzen
nfitzen / walkies-rules.md
Last active April 10, 2020 09:53
Rules for a MM2 MVS game made by SimpleFlips

Walkies

Shoutouts to [SimpleFlips][youtube:user/SimpleFlips]. This is adapted from my comment on his video here. It's mostly just not-running, but includes other things to make you slower.

You can copy and paste this (the raw Markdown) into YouTube verbatim. Please link here so people can copy it easier. If you do modify this, please fork for sharing improvements.

@nfitzen
nfitzen / Craftable Elytra - 1.11
Last active August 3, 2018 02:13
Craftable Elytra in Only One Command
/summon falling_block ~ ~1 ~ {Block:stone,Time:1,Passengers:[{id:falling_block,Block:redstone_block,Time:1,Passengers:[{id:falling_block,Block:activator_rail,Time:1,Passengers:[{id:commandblock_minecart,Command:gamerule commandBlockOutput false},{id:commandblock_minecart,Command:"fill ~2 ~-2 ~-2 ~8 ~ ~2 stained_hardened_clay 15 hollow"},{id:commandblock_minecart,Command:"fill ~2 ~-1 ~-2 ~8 ~-1 ~2 stained_glass 10 replace stained_hardened_clay"},{id:commandblock_minecart,Command:" /scoreboard objectives add redstone dummy"},{id:commandblock_minecart,Command:" /scoreboard objectives add craftede dummy"},{id:commandblock_minecart,Command:" /tellraw @a [{\"text\":\"Craftable Elytra in Only One Command\\n\",\"color\":\"blue\"},{\"text\":\"by \",\"color\":\"reset\"},{\"text\":\"NateROCKS112\",\"color\":\"red\",\"clickEvent\":{\"action\":\"open_url\",\"value\":\"https://youtube.com/NateROCKS112\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"Click here to go to the creator's channel!\\n:D\"}}]"},{id:commandb
@nfitzen
nfitzen / keybase.md
Created February 22, 2017 21:47
This is to verify myself on keybase.io

Keybase proof

I hereby claim:

  • I am nfitzen on github.
  • I am nfitzen (https://keybase.io/nfitzen) on keybase.
  • I have a public key whose fingerprint is 23CF AD3A 9B7C 68F2 8DDF 5A2E 6BB0 BA9B 70CB 1DDD

To claim this, I am signing this object: