mirror of
https://github.com/GTNewHorizons/Avaritia.git
synced 2026-11-21 20:52:15 +00:00
Stuff and things
Cross-mod shenanigans, resource block beacon bases
This commit is contained in:
1 parent
46483a70e3
commit
bf3b71020c
13 files changed
+211
-7
No files matched your search
@@ -8,12 +8,13 @@ import net.minecraft.entity.item.EntityItem;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.event.entity.player.PlayerEvent;
|
||||
import net.minecraftforge.event.entity.player.PlayerInteractEvent;
|
||||
import org.apache.logging.log4j.Level;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import static net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent;
|
||||
|
||||
public class LudicrousEvents {
|
||||
|
||||
private Random randy = new Random();
|
||||
@@ -33,6 +34,11 @@ public class LudicrousEvents {
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void extraLuck(HarvestDropsEvent event){
|
||||
|
||||
}
|
||||
|
||||
private void dropItem(ItemStack drop, World world, int x, int y, int z){
|
||||
float f = 0.7F;
|
||||
double d0 = (double)(randy.nextFloat() * f) + (double)(1.0F - f) * 0.5D;
|
||||
@@ -42,4 +48,5 @@ public class LudicrousEvents {
|
||||
entityitem.delayBeforeCanPickup = 10;
|
||||
world.spawnEntityInWorld(entityitem);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user