Jump to content

Toxic_Herobrine

Members
  • Posts

    10
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Toxic_Herobrine's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. No no I won't be charging any money. its basically a mod with permissions. a private mod for a server so OP's can do only OP stuff with the mod.
  2. I have no clue where to start on this one. I would like to make a pastebin post and have a list of usernames and then somehow read it in-game. and if that player is on the list it will actually allow them to eg: open a GUI or anything like that. I looked at the cape code awhile back but didn't see anything useful. I guess I'd be using an array and like ifplayername etc. I forgot the function. I am just getting back into modding so its all changed.
  3. I have a couple questions about schematics. How would one make random loot in schematics when spawning a custom structure. How could I make my custom mob spawn only in the structure without spawners. like the witch / witch hut. I don't have access to a computer atm so I can't look at its code I am using my phone. thanks in advanced.
  4. Hello, I was wondering how I could spawn my mob in a custom structure like a witch in a witch hut. Is it more then a snippet? or could it be easily copied. I looked through the witch class. I am new to java and didn't see anything useful.
  5. Ok ok, Ima be honest, I *used* MCreator most of the time for the basic class files to be made easily, now I use eclipse. but the problem is I pasted that in. and its just blank then shift makes it all blank where it would be, I get no errors. so Ima post the whole code below, but please don't make fun of me for using mcreator, Im now just learning java and its methods/reference's. Code: package mod.mcreator;//based on master condiguration import cpw.mods.fml.client.*; import cpw.mods.fml.client.registry.*; import cpw.mods.fml.common.*; import cpw.mods.fml.common.asm.*; import cpw.mods.fml.common.asm.transformers.*; import cpw.mods.fml.common.discovery.*; import cpw.mods.fml.common.discovery.asm.*; import cpw.mods.fml.common.event.*; import cpw.mods.fml.common.functions.*; import cpw.mods.fml.common.network.*; import cpw.mods.fml.common.registry.*; import cpw.mods.fml.common.toposort.*; import cpw.mods.fml.common.versioning.*; import cpw.mods.fml.relauncher.*; import cpw.mods.fml.server.*; import net.minecraft.block.*; import net.minecraft.block.material.*; import net.minecraft.client.*; import net.minecraft.client.audio.*; import net.minecraft.client.entity.*; import net.minecraft.client.gui.*; import net.minecraft.client.gui.achievement.*; import net.minecraft.client.gui.inventory.*; import net.minecraft.client.model.*; import net.minecraft.client.multiplayer.*; import net.minecraft.client.particle.*; import net.minecraft.client.renderer.*; import net.minecraft.client.renderer.culling.*; import net.minecraft.client.renderer.entity.*; import net.minecraft.client.renderer.tileentity.*; import net.minecraft.client.settings.*; import net.minecraft.command.*; import net.minecraft.crash.*; import net.minecraft.creativetab.*; import net.minecraft.dispenser.*; import net.minecraft.enchantment.*; import net.minecraft.entity.*; import net.minecraft.entity.ai.*; import net.minecraft.entity.boss.*; import net.minecraft.entity.effect.*; import net.minecraft.entity.item.*; import net.minecraft.entity.monster.*; import net.minecraft.entity.passive.*; import net.minecraft.entity.player.*; import net.minecraft.entity.projectile.*; import net.minecraft.inventory.*; import net.minecraft.item.*; import net.minecraft.item.crafting.*; import net.minecraft.nbt.*; import net.minecraft.network.*; import net.minecraft.network.rcon.*; import net.minecraft.pathfinding.*; import net.minecraft.potion.*; import net.minecraft.profiler.*; import net.minecraft.server.*; import net.minecraft.server.dedicated.*; import net.minecraft.server.gui.*; import net.minecraft.server.integrated.*; import net.minecraft.server.management.*; import net.minecraft.src.*; import net.minecraft.stats.*; import net.minecraft.tileentity.*; import net.minecraft.util.*; import net.minecraft.village.*; import net.minecraft.world.*; import net.minecraft.world.biome.*; import net.minecraft.world.chunk.*; import net.minecraft.world.chunk.storage.*; import net.minecraft.world.demo.*; import net.minecraft.world.gen.*; import net.minecraft.world.gen.feature.*; import net.minecraft.world.gen.layer.*; import net.minecraft.world.gen.structure.*; import net.minecraft.world.storage.*; import net.minecraftforge.classloading.*; import net.minecraftforge.client.*; import net.minecraftforge.client.event.*; import net.minecraftforge.client.event.sound.*; import net.minecraftforge.common.*; import net.minecraftforge.event.*; import net.minecraftforge.event.entity.*; import net.minecraftforge.event.entity.item.*; import net.minecraftforge.event.entity.living.*; import net.minecraftforge.event.entity.minecart.*; import net.minecraftforge.event.entity.player.*; import net.minecraftforge.event.terraingen.*; import net.minecraftforge.event.world.*; import net.minecraftforge.oredict.*; import net.minecraftforge.transformers.*; import net.minecraft.init.*; import java.util.*; import net.minecraftforge.common.util.*;public class mcreator_swordOfGods{ public mcreator_swordOfGods(){} public static Item block; public static Object instance;public void load(){ ItemStack stack = new ItemStack(block, 1); GameRegistry.addRecipe(stack, new Object[]{ "X1X", "X4X", "X7X", Character.valueOf('1'), new ItemStack(Items.nether_star, 1), Character.valueOf('4'), new ItemStack(Items.nether_star, 1), Character.valueOf('7'), new ItemStack(Items.blaze_rod, 1), });} public void generateNether(World world, Random random, int chunkX, int chunkZ){} public void generateSurface(World world, Random random, int chunkX, int chunkZ){} public int addFuel(ItemStack fuel){return 0;} public void serverLoad(FMLServerStartingEvent event){} public void preInit(FMLPreInitializationEvent event){} public void registerRenderers(){} public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) { if(GuiScreen.isShiftKeyDown()){ par3List.add("Damage to mobs: 15 Hearts"); par3List.add("Ability: Sharpened edge"); } else { par3List.add("Crafted from the raw essence of gods"); par3List.add("Press shift"); } } static{ Item.ToolMaterial enumt = EnumHelper.addToolMaterial("SWORDOFGODS", 0, 2500, 0F, 15, 2);block = (Item)(new ItemSword(enumt){public Set<String> getToolClasses(ItemStack stack){ HashMap<String, Integer> ret = new HashMap<String, Integer>(); ret.put("sword", 0); return ret.keySet(); } }).setUnlocalizedName("SwordOfGods").setTextureName("Herobrines_sword"); Item.itemRegistry.addObject(436, "SwordOfGods", block); } } Like I said, im a newb so, please no hate.
  6. public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) { if(GuiScreen.isShiftKeyDown()){ par3List.add("Damage to mobs: 15 Hearts"); par3List.add("Ability: Sharpened edge"); } else { par3List.add("Crafted from the raw essence of gods"); par3List.add("Press shift"); } }
  7. Hey, I know I asked a really dumb question last night but, I used the method provided by @Draco18s but, Its not working now, when I add the method and test it its just a blank space, there's no change to the code given to me, it worked last night but now, it won't even show the lore thats default when not pushing shift. just a blank spot where it should be. if this is a known issue or a bug and you know a fix please reply or pm me.
  8. Yea, java is a bit more complicated to me, but more I get to know it, it seems alot like c#, may just be imo but thanks for the quick replys.
  9. Thankyou! I know, my java knowledge is low but im learning. also, I know lua and vb and c# so now I know its like that in java, I won't need help, I thought of that to, but I got an error because of the arguments. thanks again.
  10. Hello, Im fairly new to modding, heres what I have so far for my items lore: public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) { par3List.add("Herobrines sword."); par3List.add("Press shift for more info"); if(GuiScreen.isShiftKeyDown()){ par3List.add("Damage mob: Instant kills any mob with life of 10 hearts"); par3List.add("Ability: Smoke screen for pvp."); par3List.add("Upgrade: none (W.I.P)"); } } I would like to know how can I make the "Press shift for more info" Disapear on more info is shown, please note im not good with java I really only want an answer that can fix my problem with only editing in the item class file.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.