Skip to content

Instantly share code, notes, and snippets.

View DumpItems.lua
modules = peripheral.wrap("left")
while true do
sleep(1)
local o = modules.getInventory().list()
for k,v in pairs(o) do
if (k > 9) then
modules.getInventory().pushItems("right", k)
end
View UBlock Extra Filters.txt
https://urlhaus.abuse.ch/downloads/text/
https://www.squidblacklist.org/downloads/dg-malicious.acl
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_malware.txt
https://mirror1.malwaredomains.com/files/immortal_domains.txt
http://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&startdate[day]=01&startdate[month]=01&startdate[year]=2000&mimetype=plaintext
http://pgl.yoyo.org/adservers/iplist.php?ipformat=plain&showintro=0&mimetype=plaintext
http://malc0de.com/bl/IP_Blacklist.txt
http://cinsscore.com/list/ci-badguys.txt
https://raw.githubusercontent.com/reek/anti-adblock-killer/master/anti-adblock-killer-filters.txt
View Vsauce2Brics.java
package coffee.weneed.utils.tests;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
public class BRICS {
public static void main(String[] args) {
@Dalethium
Dalethium / getLookedAtEntity.java
Last active May 30, 2017
[Forge][1.11.2] Get the entity that another entity is looking at Server side
View getLookedAtEntity.java
/**
* Gets the entity that a entity is looking at
* @param blockReachDistance the distance to check
* @param entity the entity who is looking
* @return the entity found, or null if one is not found
* @since May 30, 2017
* @author Dalethium
*/
@Nullable
public Entity getLookedAtEntity(double blockReachDistance, Entity entity) {