Skip to content

Instantly share code, notes, and snippets.

@joserobjr
joserobjr / dimension_codec.json5
Created March 10, 2022 10:48
Data Dumps: Java Edition 1.18.2
{
"minecraft:dimension_type": {
type: "minecraft:dimension_type",
value: [
{
element: {
ambient_light: 0.0f,
bed_works: 1b,
coordinate_scale: 1.0d,
effects: "minecraft:overworld",
@joserobjr
joserobjr / install_script.sh
Last active March 23, 2021 04:54
PowerNukkit Pterodactyl Install Script
#!/bin/bash
# PowerNukkit Installation Script
#
# Server Files: /mnt/server
apt update
apt install -y curl jq
if [ -n "${DL_PATH}" ]; then
echo -e "Using supplied download url: ${DL_PATH}"
DOWNLOAD_URL=`eval echo $(echo ${DL_PATH} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
@joserobjr
joserobjr / PowerNukkit-Minecraft-Versions.md
Created September 8, 2020 14:23
PowerNukkit - Minecraft Version map
PowerNukkit Minecraft
1.3.1.3-PN 1.16.20
1.3.0.0-PN 1.16.0
1.2.0.0-PN 1.14.60
1.1.1.0-PN 1.14.0
name: OffhandTestPlugin
main: sample.OffhandTestPlugin
version: 1.0.0
api: ["1.0.9"]
commands:
test-offhand:
permission: test-offhand
permissions:
test-offhand:
@joserobjr
joserobjr / minecraft:wood
Created February 4, 2020 21:02
runtime_block_states.dat inspection
minecraft:wood;wood_type=jungle;stripped_bit=0;pillar_axis=z
[]
minecraft:wood;wood_type=jungle;stripped_bit=1;pillar_axis=z
[]
minecraft:wood;wood_type=jungle;stripped_bit=0;pillar_axis=x
[]
minecraft:wood;wood_type=jungle;stripped_bit=1;pillar_axis=x
@joserobjr
joserobjr / test\DataInspect.java
Created December 30, 2019 17:27
Wireshark RakNet
package test;
import cn.nukkit.network.Network;
import cn.nukkit.network.protocol.BatchPacket;
import cn.nukkit.network.protocol.DataPacket;
import cn.nukkit.network.protocol.ProtocolInfo;
import cn.nukkit.raknet.protocol.EncapsulatedPacket;
import cn.nukkit.utils.Zlib;
import java.util.Arrays;
@joserobjr
joserobjr / plugin.yml
Last active December 27, 2019 04:35
Example plugin (PR for CloudburstMC/Nukkit#1028)
name: SkellyMovePlugin
main: sample.SkellyMovePlugin
version: "1.0.0"
api: ["1.0.9"]
@joserobjr
joserobjr / NoChestForYouJavaPlugin.java
Last active July 19, 2018 02:34
Impedir que jogadores alterem baús
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.inventory.InventoryDragEvent;
import org.bukkit.event.inventory.InventoryType;
import org.bukkit.plugin.java.JavaPlugin;
public class NoChestForYouJavaPlugin extends JavaPlugin implements Listener {
@Override
public void onEnable() {
---- Minecraft Crash Report ----
WARNING: coremods are present:
SpongeCoremod (spongeforge-1.11.2-2393-6.1.0-BETA-2484.jar)
TransformerLoader (OpenComputers-MC1.11.2-1.7.0.40.jar)
Contact their authors BEFORE contacting forge
// Ooh. Shiny.
Time: 04/08/17 19:40
class CeylonMvnExample() {
shared void test() {
}
}