Skip to content

Instantly share code, notes, and snippets.

View DumpItems.lua
modules = peripheral.wrap("left")
while true do
local o = modules.getInventory().list()
for k,v in pairs(o) do
if (k > 9) then
modules.getInventory().pushItems("right", k)
View UBlock Extra Filters.txt[day]=01&startdate[month]=01&startdate[year]=2000&mimetype=plaintext
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 /
Last active May 30, 2017
[Forge][1.11.2] Get the entity that another entity is looking at Server side
* 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
public Entity getLookedAtEntity(double blockReachDistance, Entity entity) {