This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Particles: | |
- "bubble" | |
- "crit" | |
- "smoke" | |
- "explode" | |
- "evaporation" | |
- "flame" | |
- "lava" | |
- "largesmoke" | |
- "reddust" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static boolean isSlimeChunk(int cX, int cZ){ | |
// | |
// MCPE slime-chunk checker | |
// From Minecraft: Pocket Edition 0.15.0 (0.15.0.50_V870150050) | |
// Reverse engineered by @protolambda and @jocopa3 | |
// | |
// NOTE: | |
// - The world-seed doesn't seem to be incorporated into the randomness, which is very odd. | |
// This means that every world has its slime-chunks in the exact same chunks! | |
// Update: @_tomcc has confirmed in a reddit PM that this is "entirely possible!". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void setProperties(Item* item, const std::string& data) { | |
Json::Value& value = Json::Value((Json::ValueType) 0); | |
Json::Reader& reader = Json::Reader(); | |
reader.parse(data, value, true); | |
item->init(value); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.net.MalformedURLException; | |
import java.net.URL; | |
public static String getContents(String url, String encodeType) { | |
URL u; | |
StringBuilder builder = new StringBuilder(); | |
try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace MiNET | |
{ | |
public enum LevelEventType : short | |
{ | |
SoundClick = 1000, | |
SoundClickFail = 1001, // try also with data 1200 for Dispenser sound | |
SoundShoot = 1002, | |
SoundDoorClose = 1003, // spooky sound with data 20 | |
SoundFizz = 1004, | |
SoundTNTFuse = 1005, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Plugin("CoreCommands", "The core commands for MiNET", "1.0", "MiNET Team")] | |
public class CoreCommands : Plugin | |
{ | |
[Command] | |
public void Login(Player player, string password) | |
{ | |
UserManager<User> userManager = player.Server.UserManager; | |
if (userManager != null) | |
{ | |
if (player.Username == null) return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TextEntity : Entity | |
{ | |
public TextEntity(Level level, string text, Vector3 pos) : base(64, level) | |
{ | |
NameTag = text; | |
KnownPosition = new PlayerLocation(pos); | |
HealthManager = new NoDamageHealthManager(this); | |
} | |
public override void OnTick() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
class Material { | |
public: | |
int materialType; // 0, thanks to byteandahalf | |
bool isFlammable; // 4 | |
bool isNeverBuildable; // 5, alt name: isSolidBlocking | |
bool isAlwaysDestroyable; // 6 | |
bool isReplaceable; // 7 | |
bool isLiquid; // 8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Creeper | |
if (key == "mmb.creeper.type.name") { | |
return "Type"; | |
} | |
if (key == "mmb.creeper.type.normal.name") { | |
return "Normal"; | |
} | |
if (key == "mmb.creeper.type.charged.name") { | |
return "Charged"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <idc.idc> | |
static symbol(addr, sym) { | |
MakeFunction(addr, BADADDR); | |
if(MakeNameEx(addr, sym, SN_NOWARN)) return; | |
auto i; | |
for(i = 0; i < 999; i++) if(MakeNameEx(addr, form("%s_%d", sym, i), SN_NOWARN)) return; | |
} | |
static main() { |
NewerOlder