Skip to content

Instantly share code, notes, and snippets.

View ThatGravyBoat's full-sized avatar
💭
Doin things and stuff

Brady ThatGravyBoat

💭
Doin things and stuff
View GitHub Profile
@ThatGravyBoat
ThatGravyBoat / crash_pack.js
Created January 5, 2023 11:30
This is a node.js file that creates a Minecraft datapack that when used on a server or lan world will make it so that when a player tries to join they will not be able to due to the packet being too big.
const fs = require('fs');
const items = ["minecraft:acacia_boat","minecraft:acacia_button","minecraft:acacia_chest_boat","minecraft:acacia_door","minecraft:acacia_fence","minecraft:acacia_fence_gate","minecraft:acacia_leaves","minecraft:acacia_log","minecraft:acacia_planks","minecraft:acacia_pressure_plate","minecraft:acacia_sapling","minecraft:acacia_sign","minecraft:acacia_slab","minecraft:acacia_stairs","minecraft:acacia_trapdoor","minecraft:acacia_wood","minecraft:activator_rail","minecraft:air","minecraft:allay_spawn_egg","minecraft:allium","minecraft:amethyst_block","minecraft:amethyst_cluster","minecraft:amethyst_shard","minecraft:ancient_debris","minecraft:andesite","minecraft:andesite_slab","minecraft:andesite_stairs","minecraft:andesite_wall","minecraft:anvil","minecraft:apple","minecraft:armor_stand","minecraft:arrow","minecraft:axolotl_bucket","minecraft:axolotl_spawn_egg","minecraft:azalea","minecraft:azalea_leaves","minecraft:azure_bluet","minecraft:baked_potato","minecraft:bamboo","minecraft:ba

Team Resourceful contributor agreement

You accept and agree to the following terms and conditions for all past, present, and future contributions.

  1. Definitions:

    "Copyright Holder" refers to the person who owns the copyright or the legal entity who is authorized to make an agreement of licensing the copyright of the contributed works.

    "You" is referring to the copyright holder.

@ThatGravyBoat
ThatGravyBoat / MixinItemModelShaper.java
Created August 7, 2022 05:19
Block State Item Models
@Mixin(ItemModelShaper.class)
public class MixinItemModelShaper {
@Shadow @Final private ModelManager modelManager;
@Unique
private static final Int2ObjectMap<ModelResourceLocation> blockstatemodels$cache = new Int2ObjectOpenHashMap<>();
@Inject(method = "getItemModel(Lnet/minecraft/world/item/ItemStack;)Lnet/minecraft/client/resources/model/BakedModel;", at = @At("HEAD"), cancellable = true)
public void onGetModel(ItemStack stack, CallbackInfoReturnable<BakedModel> cir) {
final Item item = stack.getItem();
@ThatGravyBoat
ThatGravyBoat / auth_example.json
Created October 28, 2021 09:54
Example response for verification server
[
{
"text":"Enter this code into the verification site\n \u0020 to start editing your bee pet.",
"color":"gold"
},
{
"text":"\n"
},
{
"text":"Your verification code is:",
{
"models": [
{
"id": "diamond",
"model": "resourcefulbees:geo/base.geo.json",
"texture": {
"id": "diamond_texture",
"texture" : "https://raw.githubusercontent.com/Resourceful-Bees/ResourcefulBees/1.0.0-Forge/src/main/resources/assets/resourcefulbees/textures/entity/creeper/creeper_bee.png"
}
}