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 / reset_nether.md
Last active January 28, 2023 03:44
Using mcberepair to Reset the Nether

This tutorial is for Minecraft Bedrock Edition worlds that have been imported to a Windows 10 copy of the game. It will work with XBox, Android, PS4, etc. worlds, but they must be first copied to a Windows installation.

Download the following two files.

Place busybox64.exe in your minecraftWorlds directory. This is located at %LOCALAPPDATA%\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\LocalState\games\com.mojang\minecraftWorlds.

@reedacartwright
reedacartwright / plot_chunks.R
Created May 23, 2020 02:19
Plotting Overworld Chunks
library(tidyverse)
library(rbedrock)
# generate a list of worlds
list_worlds()
# use the most recent file, adjust as needed
dbpath <- list_worlds()$folder[1]
# open the world db
@reedacartwright
reedacartwright / wither_killer.R
Last active May 24, 2025 21:33
Minecraft Bedrock: Find a location in the overworld that can work as a natural wither killer.
# Copyright (c) 2020 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 / 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
@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 / 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 / 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 / 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 / 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 / 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