Skip to content

Instantly share code, notes, and snippets.

View reedacartwright's full-sized avatar
💭
I may be slow to respond.

Reed A. Cartwright reedacartwright

💭
I may be slow to respond.
View GitHub Profile
@reedacartwright
reedacartwright / nether_roof_readme.md
Last active May 8, 2024 16:46
Instructions for Building on Nether Roof in Minecraft Bedrock Edition

How to Build on the Nether Roof in Minecraft: Bedrock Edition

Bedrock Edition has a hardcoded nether height of 128 blocks. This means that even if you are able to glitch up on to the nether roof you cannot place blocks there. However, if you have access to bedrock_server.exe or Minecraft.Windows.exe you can hexedit these files to the increase the hardcoded nether height.

Video Tutorial

@reedacartwright
reedacartwright / bedrock_nether_roof.R
Last active February 6, 2021 04:11
Modify Minecraft Bedrock Edition Clients and Servers to Increase Nether Build Height
# Copyright 2021 Reed A. Cartwright <reed@cartwrig.ht>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
@reedacartwright
reedacartwright / randutils.hpp
Created December 19, 2020 01:52 — forked from imneme/randutils.hpp
Addresses common issues with C++11 random number generation; makes good seeding easier, and makes using RNGs easy while retaining all the power.
/*
* Random-Number Utilities (randutil)
* Addresses common issues with C++11 random number generation.
* Makes good seeding easier, and makes using RNGs easy while retaining
* all the power.
*
* The MIT License (MIT)
*
* Copyright (c) 2015 Melissa E. O'Neill
*
@reedacartwright
reedacartwright / biome_tags.csv
Last active June 10, 2021 01:31
List of biome tags in Minecraft Bedrock 1.17.0
biome tag
bamboo_jungle animal
bamboo_jungle bamboo
bamboo_jungle jungle
bamboo_jungle monster
bamboo_jungle overworld
bamboo_jungle_hills animal
bamboo_jungle_hills bamboo
bamboo_jungle_hills hills
bamboo_jungle_hills jungle
@reedacartwright
reedacartwright / mob_spawning_weights.csv
Last active July 29, 2022 23:27
Mob Spawning Weights for Minecraft Bedrock 1.19.10
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 49 columns, instead of 30. in line 4.
biome,spot_location,spot_type,light_level,y_level,axolotl,bat,chicken,cod,cow,creeper,dolphin,donkey,drowned,enderman,fox,frog,ghast,glow_squid,goat,hoglin,horse,husk,llama,magma_cube,mooshroom,ocelot,panda,parrot,phantom,pig,piglin,polar_bear,pufferfish,rabbit,salmon,sheep,skeleton,slime,spider,squid,stray,strider,tropicalfish,turtle,witch,wolf,zombie,zombie_pigman
bamboo_jungle,spawns_on_surface,spawns_normal,0–6,39–320,0,0,0,0,0,20.2,0,0,0,2.02,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20.2,0,0,0,0,0,0,0,16.16,0,20.2,0,0,0,0,0,1.01,0,20.2,0
bamboo_jungle,spawns_on_surface,spawns_normal,0–6,-63–38,0,0,0,0,0,16.81,0,0,0,1.68,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16.81,0,0,0,0,0,0,0,13.45,16.81,16.81,0,0,0,0,0,0.84,0,16.81,0
bamboo_jungle,spawns_on_surface,spawns_normal,7,39–320,0,0,1.55,0,1.24,15.5,0,0,0,1.55,0,0,0,0,0,0,0,0,0,0,0,4.65,6.2,6.2,15.5,1.55,0,0,0,0,0,1.86,12.4,0,15.5,0,0,0,0,0,0.78,0,15.5,0
bamboo_jungle,spawns_on_surface,spawns_normal,7,-63–38,0,0,1.34,0,1.07,13.42,0,0,0,1.34,0,0,0,0,0,0,0,0,0,0,0,4.03,5.37,5.37,13.42
@reedacartwright
reedacartwright / mobspawners.R
Last active June 17, 2022 06:48
Utility script for finding Mob Spawners in a Minecraft Bedrock World.
# Copyright (c) 2020-2022 Reed A. Cartwright
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# Redistributions in binary form must reproduce the above copyright
@reedacartwright
reedacartwright / create_void.R
Created August 27, 2020 07:15
Use rbedrock to create a normal, void world. User can specify overworld, nether, and end biomes.
# Generate a normal void world with specified biomes in
# the overworld, nether, and end dimensions.
#
# This script takes an input an existing world. It will
# delete all data in the world and replace it with void
# terrain.
# script controls
biomes <- c("plains", "hell", "the_end")
dbpath <- A_PATH_TO_A_WORLD_HERE
@reedacartwright
reedacartwright / bedrock_block_list_1-16.csv
Last active April 6, 2023 04:56
List of Blocks and Block Attributes for Minecraft Bedrock 1.16
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 17 columns, instead of 3. in line 8.
BlockID,BlockName,MaterialType,MaterialIsSolid,MaterialBlocksMotion,MaterialIsSolidBlocking,MaterialIsTopSolid,MaterialBlocksPrecipitation,MaterialTranslucency,BlockProperties,BlockIsSolid,BlockIsSolidBlockingBlock,BlockIsMotionBlockingBlock,BlockPushesOutItems,BlockCanBeExtraBlock,BlockCanInstatick,BlockCanContainLiquid
0,minecraft:air,0,FALSE,FALSE,FALSE,FALSE,FALSE,1,0x200000000,FALSE,FALSE,FALSE,FALSE,TRUE,FALSE,TRUE
1,minecraft:stone,3,TRUE,TRUE,TRUE,TRUE,TRUE,0,0x200000,TRUE,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE
2,minecraft:grass,1,TRUE,TRUE,TRUE,TRUE,TRUE,0,0x200000,TRUE,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE
3,minecraft:dirt,1,TRUE,TRUE,TRUE,TRUE,TRUE,0,0x200000,TRUE,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE
4,minecraft:cobblestone,3,TRUE,TRUE,TRUE,TRUE,TRUE,0,0x200000,TRUE,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE
5,minecraft:planks,2,TRUE,TRUE,TRUE,TRUE,TRUE,0,0x200000,TRUE,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE
6,minecraft:sapling,8,FALSE,FALSE,FALSE,FALSE,FALSE,1,0x40002000000,FALSE,FALSE,FALSE,FALSE,TRUE,FALSE,TRUE
7,minecraft:bedrock,
@reedacartwright
reedacartwright / generate-world.bash
Created June 28, 2020 00:29
A bash script using xdotool to pregenerate a Minecraft Bedrock world using Linux.
# I use this script to generate a Minecraft world.
# I run a BDS instance with sim distance 12 and a
# instance of the unofficial Linux client.
# Using a server-client setup seems to be more stable
# than running client only.
#
# Make sure your player is in creative and flying before
# you begin.
# Script parameters
@reedacartwright
reedacartwright / blocklist.R
Created June 7, 2020 04:18
Minecraft Bedrock: Extract block information for the region 0,16,0 to 63,79,63 in a world file.
# update if neccessary
devtools::install_github("reedacartwright/rbedrock")
library(jsonlite)
library(tidyverse)
library(rbedrock)
db <- bedrockdb(dbpath_goes_here)
# read blocks in cube from 0,16,0 to 63,79,63