Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

Community Reputation

2 Neutral

About captaincleric

  • Rank
    Stone Miner


  • Gender
  • Personal Text
    I am new!
  1. I'm not sure about the item/stack stuff, but I might be able to help with the entity capabilities, as I've added two of my own; mana, and spell research. I'm not sure about the @Capability, either, unfortunately. What I do know, is that I might be able to help you out with the entity capabilities. Here's the code for my mana stuff: PlayerManaCapability package com.nosrick.masterofmagic.capabilities; import com.nosrick.masterofmagic.MoMMod; import com.nosrick.masterofmagic.items.wands.ItemBaseWand; import com.nosrick.masterofmagic.packets.PlayerManaChangePacket; import com.n
  2. Thanks for the help, guys. Both posts really helped me out. Here's what my structures look like now!
  3. Honestly, I'd just generate your own noise. It might not be as random, but it can be faster. I personally use Math.Sin(i * Math.PI * 2 + Random.NextFloat()), where i is an integer that is incremented each time you request a random number. I'm not sure if Random.NextFloat() exists in Java, but you just want a floating point number between 0 and 1. This creates some nice, wavy noise and is pretty quick. Sorry I couldn't give you better help!
  4. Are you registering the items and recipes in the correct order?
  5. Just a shameless bump. Anyone got any ideas on how to get the block's data to set it to the correct facing/type?
  6. I found the problem. The loops must go Y, Z, X, not X, Y, Z, for some reason. That's just the way schematics are constructed, apparently. Which apparently is how pre-1.4 Minecraft did its chunks. Whoever did that is stupid. EDIT TO PREVENT DOUBLE POSTING: So my structure builds, now. The only problem I have is that the block metadata (I think) for the slabs and stairs are not set properly, so they are not the right type, or are oriented incorrectly, as appropriate.
  7. You have a few ways to handle this one. You could use the LivingEntityHurt event (I think), and check if it's the player being hurt or hurting something. If there's an event for the swinging of an item, you could check if it's a sword that a player is holding, and play the music then.
  8. Try putting a breakpoint on the else if statement, and seeing what the values are when it gets there. Something has to be set wrongly. I'm guessing it might be that isPressed() function, because the other two conditions look like they're set just fine in the if statement.
  9. Does it ever print out the "Fly disabled" message?
  10. Nope, no blocks except vanilla blocks, and no mods at all. I created a separate version just for building stuff for my mod.
  11. Could you post your RobotHelper class?
  12. Are you only spawning them through the egg, or are you spawning them in your code somewhere?
  13. I have a few questions about structures. First, is there a decent schematic exporter for 1.8.9? I've tried MCEdit and mineways, but they both (possibly) produce garbled junk, that in no way resembles what I've created. It doesn't seem to handle stairs or slabs very well. Second, why - if the schematics are alright, which I think they are - would it generate garbled junk? Here's my generation code: public static void PlaceStructure(Schematic structure, World world, BlockPos centre) { int i = 0; if(structure == null) return; for(int x = centre.getX() - structure.width / 2; x &
  14. Hah! Was just about to post saying "Always check you've registered your capabilities" but you got there before me. So yeah, always check you've registered your capabilities. Thanks Choonster!
  15. I think I'm doing something stupid, but I just can't see past the code blindness. Here's the provider: package com.nosrick.masterofmagic.capabilities; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.nbt.NBTBase; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.EnumFacing; import net.minecraftforge.common.capabilities.Capability; import net.minecraftforge.common.capabilities.CapabilityInject; import net.minecraftforge.common.capabilities.ICapabilityProvider; import net.minecraftforge.common.util.INBTSerializable; public class PlayerResearchProvide
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.