Add more scrapbox loot (and dev heads to the loot! woo)
This commit is contained in:
parent
cfb78eb126
commit
d0f27cb941
4 changed files with 243 additions and 384 deletions
|
@ -115,6 +115,7 @@ public class Core
|
|||
{
|
||||
compatModule.init(event);
|
||||
}
|
||||
MinecraftForge.EVENT_BUS.register(new StackWIPHandler());
|
||||
// Recipes
|
||||
StopWatch watch = new StopWatch();
|
||||
watch.start();
|
||||
|
@ -142,7 +143,6 @@ public class Core
|
|||
MinecraftForge.EVENT_BUS.register(new TRTickHandler());
|
||||
MinecraftForge.EVENT_BUS.register(new OreUnifier());
|
||||
MinecraftForge.EVENT_BUS.register(worldGen.retroGen);
|
||||
MinecraftForge.EVENT_BUS.register(new StackWIPHandler());
|
||||
// Scrapbox
|
||||
if (config.scrapboxDispenser)
|
||||
{
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -32,7 +32,6 @@ import net.minecraft.util.EnumFacing;
|
|||
import net.minecraft.util.EnumParticleTypes;
|
||||
import net.minecraft.util.ITickable;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.SoundCategory;
|
||||
import net.minecraft.util.math.AxisAlignedBB;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
|
@ -45,7 +44,6 @@ import reborncore.common.misc.Functions;
|
|||
import reborncore.common.misc.vecmath.Vecs3dCube;
|
||||
import reborncore.common.util.WorldUtils;
|
||||
import techreborn.config.ConfigTechReborn;
|
||||
import techreborn.init.ModSounds;
|
||||
import techreborn.power.TRPowerNet;
|
||||
import techreborn.utils.damageSources.ElectrialShockSource;
|
||||
|
||||
|
|
|
@ -1,13 +1,17 @@
|
|||
package techreborn.utils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.nbt.NBTTagString;
|
||||
import net.minecraft.util.text.TextFormatting;
|
||||
import net.minecraftforge.event.entity.player.ItemTooltipEvent;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
import techreborn.init.ModBlocks;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* Created by Mark on 23/03/2016.
|
||||
*/
|
||||
|
@ -15,6 +19,7 @@ public class StackWIPHandler
|
|||
{
|
||||
|
||||
ArrayList<Block> wipBlocks = new ArrayList<>();
|
||||
public static ArrayList<ItemStack> devHeads = new ArrayList<>();
|
||||
|
||||
public StackWIPHandler()
|
||||
{
|
||||
|
@ -23,8 +28,20 @@ public class StackWIPHandler
|
|||
wipBlocks.add(ModBlocks.ChunkLoader);
|
||||
wipBlocks.add(ModBlocks.ElectricCraftingTable);
|
||||
wipBlocks.add(ModBlocks.playerDetector);
|
||||
|
||||
addHead("modmuss50");
|
||||
addHead("Gigabit101");
|
||||
addHead("ProfProspector");
|
||||
addHead("Rushmead");
|
||||
}
|
||||
|
||||
private void addHead(String name){
|
||||
ItemStack head = new ItemStack(Items.skull, 1, 3);
|
||||
head.setTagCompound(new NBTTagCompound());
|
||||
head.getTagCompound().setTag("SkullOwner", new NBTTagString(name));
|
||||
devHeads.add(head);
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void toolTip(ItemTooltipEvent event)
|
||||
{
|
||||
|
@ -33,5 +50,10 @@ public class StackWIPHandler
|
|||
{
|
||||
event.getToolTip().add(TextFormatting.RED + "WIP Coming Soon");
|
||||
}
|
||||
|
||||
if(devHeads.contains(event.getItemStack())){
|
||||
event.getToolTip().add(TextFormatting.GOLD + "TechReborn Developer");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue