Skip to content

Instantly share code, notes, and snippets.

import * from Minecraft;
ACTIVE_CONFIG = Config.fromMap({
"type": "boolean",
"name": "circleWalk",
"description": "circleWalk",
"default_value": false
});
configHandler = new ConfigHandler("circleWalk", false);
diff --git a/src/main/java/net/minecraft/world/entity/monster/Shulker.java b/src/main/java/net/minecraft/world/entity/monster/Shulker.java
index 81caa18fca658f70846ba437ac02906f5e9653b9..aad3cd36b91858a8063c950dc230ff2fa0a4bde0 100644
--- a/src/main/java/net/minecraft/world/entity/monster/Shulker.java
+++ b/src/main/java/net/minecraft/world/entity/monster/Shulker.java
@@ -544,7 +544,7 @@ public class Shulker extends AbstractGolem implements VariantHolder<Optional<Dye
if (entityshulker != null) {
entityshulker.setVariant(this.getVariant());
entityshulker.moveTo(vec3d);
- this.level().addFreshEntity(entityshulker, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.BREEDING); // CraftBukkit - the mysteries of life
+ this.level().addFreshEntity(entityshulker, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.NATURAL); // CraftBukkit - the mysteries of life
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project source="4.0.4-HC" version="1.0">
This file is intended to be loaded by Logisim-evolution (https://github.com/kevinawalsh/logisim-evolution).
<lib desc="#Wiring" name="0">
<tool name="Splitter">
<a name="bit1" val="0"/>
<a name="bit2" val="0"/>
<a name="bit3" val="0"/>
<a name="facing" val="north"/>
#!/usr/bin/env node
const spawn = require("child_process").spawn;
const input_rtmp = 'rtmp://127.0.0.1/feed/1';
const loop_rtmp = 'rtmp://127.0.0.1/feed/2';
const out_rtmp = 'rtmp://127.0.0.1/feed/3';
const timeout = 10; // in 1/10th of a second
var fallback=0;
const express = require('express');
const app = express();
const exec = require('child_process').exec;
const port = 3000;
const http = require('http');
var g_stats = {};
var uplinks = 0;
var started = false;
const express = require('express');
const app = express();
const exec = require('child_process').exec;
const port = 3000;
var g_stats = {};
var started = false;
var ffmpeg;
@sebseb7
sebseb7 / -
Created February 10, 2019 20:38
diff --git a/src/cryptonote_basic/difficulty.cpp b/src/cryptonote_basic/difficulty.cpp
index cb2a00a1..e89d1fa0 100644
--- a/src/cryptonote_basic/difficulty.cpp
+++ b/src/cryptonote_basic/difficulty.cpp
@@ -119,7 +119,16 @@ namespace cryptonote {
return !carry;
}
- difficulty_type next_difficulty(std::vector<std::uint64_t> timestamps, std::vector<difficulty_type> cumulative_difficulties, size_t target_seconds) {
+ difficulty_type next_difficulty(std::vector<std::uint64_t> timestamps, std::vector<difficulty_type> cumulative_difficulties, size_t target_seconds, uint64_t height, uint64_t last_diff_reset_height, difficulty_type last_diff_reset_value) {
@sebseb7
sebseb7 / -
Created October 25, 2018 00:05
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index d93dfe9..ca5f34b 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -696,6 +696,81 @@ void Blockchain::get_all_known_block_ids(std::list<crypto::hash> &main, std::lis
// last DIFFICULTY_BLOCKS_COUNT blocks and passes them to next_difficulty,
// returning the result of that call. Ignores the genesis block, and can use
// less blocks than desired if there aren't enough.
+
+
@sebseb7
sebseb7 / -
Created October 20, 2018 18:23
020073020003cff85598b910d5e331fcd99d64d7dce7b855e7a094df7c304218734eb32cd7515c77ab458b6dddff92020003e8eb23e2ec6dd4cf05fc1c84637689f29e3dc89b0e0a382b65d99bebcb014b368f8cedb61832fb7e12020003b2df0ecfbc58de9b2dfbb859ea4f953a0901d515cb34f58bf3f110193a03455a23d408a55a25ecceb4020003a4d49101f95bfcb902fb70b5bb0409a02eee5c54e9de89a119a96e954493ee382e2eecb25f35e06fd7020003b38c44ceb647c8d901faa7b1062b5f48a381f9b7049b64237416b6de49758d78accbbc5449494ad5d0020003e6950d84f97ccaec08fa4667464abc097fe933af6f44631955bd6279191d315c3582a5ed9ebe9eac69020003899c4f84b428d0951ff9efa5f3d27870f5e30e1d03ded47f99bbeacc911f28c120543cab48f3220eb1020003e7ae2ef8e144aabd1bf1d431607c5296ac05f051a8e73957c660eef8f80254e907e5c4016781f41d8302000380a0358bad23c3a93ff0161599631c7a2eb3d2d07cb044c39d1f76e9b6fe48fc7b4c9fee983e4d91ba02000395c137e2e501dbc459ea8e19957ba06ece9583c089349bc8efd3af05a352fc3bc463f3ad93aa927a4f02000383dd83019c970c85bb02e9f339130ccd6a65a69f27e3ceb94a02605bf6a8e9ca1894306acbd6d7cc6cf4020003eeb74fc68f36c18310e97470cebd97af6688aa8d59
@sebseb7
sebseb7 / -
Created October 20, 2018 07:24
charts_info.log:2018-10-20 09:01:23 hashrate:42U6Vkd8Qu3G74WC73t5ckJZVTiH5sunVAnpjdSHnH19JxFBdGUgkxnSG8n6xtmLmqNxt7eRFMcvA9TkfzZdXKtbSZJGFCs chart collected value 1111. Total sets count 1
charts_info.log:2018-10-20 09:02:23 hashrate:42U6Vkd8Qu3G74WC73t5ckJZVTiH5sunVAnpjdSHnH19JxFBdGUgkxnSG8n6xtmLmqNxt7eRFMcvA9TkfzZdXKtbSZJGFCs chart collected value 8333. Total sets count 1
charts_info.log:2018-10-20 09:03:23 hashrate:42U6Vkd8Qu3G74WC73t5ckJZVTiH5sunVAnpjdSHnH19JxFBdGUgkxnSG8n6xtmLmqNxt7eRFMcvA9TkfzZdXKtbSZJGFCs chart collected value 15660. Total sets count 1
charts_info.log:2018-10-20 09:04:23 hashrate:42U6Vkd8Qu3G74WC73t5ckJZVTiH5sunVAnpjdSHnH19JxFBdGUgkxnSG8n6xtmLmqNxt7eRFMcvA9TkfzZdXKtbSZJGFCs chart collected value 17708. Total sets count 1
charts_info.log:2018-10-20 09:05:23 hashrate:42U6Vkd8Qu3G74WC73t5ckJZVTiH5sunVAnpjdSHnH19JxFBdGUgkxnSG8n6xtmLmqNxt7eRFMcvA9TkfzZdXKtbSZJGFCs chart collected value 22347. Total sets count 1
charts_info.log:2018-10-20 09:06:23 hashrate:42U6Vkd8Qu3G74WC73t5ckJZVTiH5sunVAnp