Jump to content

gurujive

Forge Modder
  • Posts

    375
  • Joined

  • Last visited

Everything posted by gurujive

  1. So will forge 1.11 have a :? or will it have a .? M.M .... if its changing to : then I'll have to erase a bunch of . What would be really handy is if there was a 1.10.2 unrecommended that had this implemented so I would not have to erase a bunch of .s and replace them with Idk... What's going on with this... >.<? Mannn.....
  2. Now the question is, will forge go from the . to the : or will it remain a . !!!!!! The world may never know! find out in our next episode!
  3. Ok, so this is something that if it does change will most likely be implemented on its own, the way I have things. Thanks Choonster, looks like I'm as updated and matching as possible then... Matched it up to the original mc src as much as I possibly could. Good to know, mission complete.
  4. my mod id is guru. my lang looks like this: itemGroup.the_basic_elements=The Basic Elements item.air_orb.name=Air Orb item.earth_orb.name=Earth Orb item.fire_orb.name=Fire Orb item.water_orb.name=Water Orb item.nether_orb.name=Nether Orb item.invisible_orb.name=Invisible Orb item.creative_orb.name=Creative Orb
  5. This forum makes me wanna slam my head into my keyboard very hard every time I get on it.
  6. This is what I have that works: EntityRegistry.registerModEntity(cls, name, id++, Guru.getInstance(), 128, 148, true); if i change the id++ to id then all my entities look and act like air orbs when thrown... It summons all my different entities like so: guru.blah_orb
  7. if i do that then i end up with guru.fire_orb which is not guru:fire_orb which is what matches the new snapshot..
  8. I have done everything except for one thing. When I go in game my /summon command looks like this: /summon guru.guru:fire_orb instead of: /summon guru:fire_orb Here is the code associated: package guru.tbe.init; import guru.tbe.Guru; import guru.tbe.Reference; import guru.tbe.entity.EntityAirOrb; import guru.tbe.entity.EntityCreativeOrb; import guru.tbe.entity.EntityWaterOrb; import guru.tbe.entity.EntityEarthOrb; import guru.tbe.entity.EntityInvisibleOrb; import guru.tbe.entity.EntityFireOrb; import guru.tbe.entity.EntityNetherOrb; import net.minecraftforge.fml.common.registry.EntityRegistry; public class GuruEntities { private static int id = 0; public static void registerEntities() { register(EntityAirOrb.class, "air_orb"); register(EntityWaterOrb.class, "water_orb"); register(EntityEarthOrb.class, "earth_orb"); register(EntityFireOrb.class, "fire_orb"); register(EntityNetherOrb.class, "nether_orb"); register(EntityInvisibleOrb.class, "invisible_orb"); register(EntityCreativeOrb.class, "creative_orb"); } private static void register(Class cls, String name) { EntityRegistry.registerModEntity(cls,Reference.MOD_ID + ":" + name, id++, Guru.getInstance(), 128, 148, true); } } How do I fix this line to where it displays guru:fire_orb instead of guru.guru:fire_orb? EntityRegistry.registerModEntity(cls,Reference.MOD_ID + ":" + name, id++, Guru.getInstance(), 128, 148, true);
  9. It should be able to go like this: if (result.blockHit = Blocks.COAL_BLOCK) { this.setBlock(posX, posY, posZ); setBlock = FIRE } or something like that... forge is too friggin complicated. like alright... I'd like to set a block on fire with a projectile. Lemme research that for the next 5 days and possibly fail or succeed at doing it. (nope, time to play some league)
  10. hmmm.... still crashes. This craps too complicated. I'm going to play some league. public EntityFireOrb(World worldIn, EntityLivingBase throwerIn) { super(worldIn, throwerIn); this.fuse = 140; this.xTile = chunkCoordX; this.yTile = chunkCoordY; this.zTile = chunkCoordZ; }
  11. well I went this way with it too. private int xTile; private int yTile; private int zTile; private BlockPos blockpos; BlockPos blockpos = new BlockPos(this.xTile, this.yTile, this.zTile); if (worldObj.getBlockState(blockpos) == Blocks.COAL_BLOCK.getDefaultState()) { this.worldObj.setBlockState( blockpos, Blocks.FIRE.getDefaultState()); } and i still come up with the same crash report.
  12. EntityOrb is a rewritten form of EntityThrowable EntityFireOrb Extends EntityOrb Like Snowball extends EntityThrowable. Both EntityOrb And EntityThrowable extends entity and implements Iprojectile
  13. this is crashing the game when i throw the entity: " private int xTile; private int yTile; private int zTile; " " public void onUpdate() { super.onUpdate(); BlockPos blockpos = new BlockPos(this.xTile, this.yTile, this.zTile); " " protected void onImpact(RayTraceResult result) if (!this.worldObj.isRemote) { this.setDead(); if (worldObj.getBlockState(null) == Blocks.COAL_BLOCK.getDefaultState()) { this.worldObj.setBlockState( null, Blocks.FIRE.getDefaultState()); } " package guru.tbe.entity; import net.minecraft.block.Block; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.monster.EntityCreeper; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.init.SoundEvents; import net.minecraft.item.Item; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.network.datasync.DataParameter; import net.minecraft.network.datasync.DataSerializers; import net.minecraft.network.datasync.EntityDataManager; import net.minecraft.util.DamageSource; import net.minecraft.util.EnumParticleTypes; import net.minecraft.util.SoundCategory; import net.minecraft.util.datafix.DataFixer; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.RayTraceResult; import net.minecraft.world.World; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class EntityFireOrb extends EntityOrb { private static final DataParameter<Integer> FUSE = EntityDataManager.<Integer>createKey(EntityFireOrb.class, DataSerializers.VARINT); private int explosionPower; private int fuse; private int xTile; private int yTile; private int zTile; public EntityFireOrb(World worldIn) { super(worldIn); } public EntityFireOrb(World worldIn, EntityLivingBase throwerIn) { super(worldIn, throwerIn); this.fuse = 140; } protected void entityInit() { this.dataManager.register(FUSE, Integer.valueOf(140)); } protected boolean canTriggerWalking() { return false; } public void onUpdate() { super.onUpdate(); BlockPos blockpos = new BlockPos(this.xTile, this.yTile, this.zTile); this.worldObj.spawnParticle(EnumParticleTypes.FLAME, posX + (worldObj.rand.nextFloat() - worldObj.rand.nextFloat()) / 2, posY + (worldObj.rand.nextFloat() / -2 - worldObj.rand.nextFloat()) / -1, posZ + (worldObj.rand.nextFloat() - worldObj.rand.nextFloat()) / 2, 0, 0, 0); --this.fuse; if (this.fuse <= 0) { this.setDead(); if (!this.worldObj.isRemote) { this.explode(); } } else { this.handleWaterMovement(); } this.isImmuneToFire(); } private void explode() { float f = -1.0F; this.worldObj.createExplosion(this, this.posX, this.posY + (double)(this.height / 16.0F), this.posZ, (float)this.explosionPower, isDead); } protected void onImpact(RayTraceResult result) { if (result.entityHit != null) { double i = 0; if (!this.isWet() && result.entityHit instanceof EntityCreeper) { ((EntityCreeper) result.entityHit).ignite(); } if (result.entityHit instanceof EntityLivingBase) { i = 4.7; } result.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)i); result.entityHit.setFire(; float f = 0.0F; this.worldObj.createExplosion(this, this.posX, this.posY + (double)(this.height / 16.0F), this.posZ, (float)this.explosionPower, true); } if (!this.worldObj.isRemote) { this.setDead(); if (worldObj.getBlockState(null) == Blocks.COAL_BLOCK.getDefaultState()) { this.worldObj.setBlockState( null, Blocks.FIRE.getDefaultState()); } worldObj.playSound((EntityPlayer)null, posX, posY, posZ, SoundEvents.BLOCK_LAVA_POP, SoundCategory.NEUTRAL, 1.3F, 1.5F / (worldObj.rand.nextFloat() * 0.4F + 0.8F)); } if (this.isInWater()) { { worldObj.playSound((EntityPlayer)null, posX, posY, posZ, SoundEvents.BLOCK_FIRE_EXTINGUISH, SoundCategory.NEUTRAL, 0.3F, 1.5F / (worldObj.rand.nextFloat() * 0.4F + 0.8F)); } } if (this.isWet()) { this.extinguish(); this.worldObj.spawnParticle(EnumParticleTypes.BLOCK_CRACK, this.posX + (worldObj.rand.nextFloat() - worldObj.rand.nextFloat()) / 3, this.posY + (worldObj.rand.nextFloat() - worldObj.rand.nextFloat()) / 2, this.posZ + (worldObj.rand.nextFloat() - worldObj.rand.nextFloat()) / 2, ((double)this.rand.nextFloat() - 0.5D) * 0.08D, ((double)this.rand.nextFloat() - 0.5D) * 0.08D, ((double)this.rand.nextFloat() - 0.5D) * 0.08D, new int[] {Block.getIdFromBlock(Blocks.FLOWING_LAVA)}); this.worldObj.spawnParticle(EnumParticleTypes.SMOKE_LARGE, this.posX, this.posY, this.posZ, 0.0D, 0.1D, 0.0D, new int[0]); this.worldObj.spawnParticle(EnumParticleTypes.CLOUD, this.posX, this.posY, this.posZ, 0.0D, 0.1D, 0.0D, new int[0]); worldObj.playSound((EntityPlayer)null, posX, posY, posZ, SoundEvents.BLOCK_FIRE_EXTINGUISH, SoundCategory.NEUTRAL, 0.3F, 1.5F / (worldObj.rand.nextFloat() * 0.4F + 0.8F)); } if (!this.isWet()) { for (int i = 0; i < 3; ++i) { this.worldObj.spawnParticle(EnumParticleTypes.LAVA, posX + (worldObj.rand.nextFloat() - worldObj.rand.nextFloat()) / 2, posY + (worldObj.rand.nextFloat() - worldObj.rand.nextFloat()) / 2, posZ + (worldObj.rand.nextFloat() - worldObj.rand.nextFloat()) / 2, 0, 0, 0); } for (int i = 0; i < 12; ++i) { this.worldObj.spawnParticle(EnumParticleTypes.BLOCK_CRACK, this.posX + (worldObj.rand.nextFloat() - worldObj.rand.nextFloat()) / 2, this.posY + (worldObj.rand.nextFloat() - worldObj.rand.nextFloat()) / 2, this.posZ + (worldObj.rand.nextFloat() - worldObj.rand.nextFloat()) / 2, ((double)this.rand.nextFloat() - 0.5D) * 0.08D, ((double)this.rand.nextFloat() - 0.5D) * 0.08D, ((double)this.rand.nextFloat() - 0.5D) * 0.08D, new int[] {Block.getIdFromBlock(Blocks.FLOWING_LAVA)}); } } } public void writeEntityToNBT(NBTTagCompound tagCompound) { super.writeEntityToNBT(tagCompound); tagCompound.setInteger("ExplosionPower", this.explosionPower); tagCompound.setShort("Fuse", (short)this.getFuse()); } public void readEntityFromNBT(NBTTagCompound tagCompund) { super.readEntityFromNBT(tagCompund); this.setFuse(tagCompund.getShort("Fuse")); if (tagCompund.hasKey("ExplosionPower", 99)) { this.explosionPower = tagCompund.getInteger("ExplosionPower"); } } public void setFuse(int fuseIn) { this.dataManager.set(FUSE, Integer.valueOf(fuseIn)); this.fuse = fuseIn; } public void notifyDataManagerChange(DataParameter<?> key) { if (FUSE.equals(key)) { this.fuse = this.getFuseDataManager(); } } public int getFuseDataManager() { return ((Integer)this.dataManager.get(FUSE)).intValue(); } public int getFuse() { return this.fuse; } public float getBrightness(float partialTicks) { return 0.001F; } @SideOnly(Side.CLIENT) public int getBrightnessForRender(float partialTicks) { return 15728880; } }
  14. like netherrack and coal block... just those 2.
  15. I'm looking to make it to where if a projectile comes into contact with netherrack it will set a tiny 1 block fire if possible.
  16. Does anyone have an example of this, or where its located in the src.
  17. This is the src to my mod, which only adds a tab and some throwable entities that are in that tab. It shows how to do the entity/item thing, along with registering and rendering and all that nice stuff. https://www.dropbox.com/s/p0yevpxuausb0mk/src.7z?dl=0
  18. This pertains to the block breaking particle which can be found in the particles of the json file for your block. "particle": "blocks/piston_bottom",
  19. I personally hate core mods, and the only one I will download period is mantle, which is required by tinkers constuct, (which I hate to do). But, grim3212 has taken all his old mods and put them into one, core + book + mods. Which has an open source and can be found here: https://github.com/grim3212/Grim-Pack
  20. Mcrayfish model creator does not limit the size of textures used... just import the photo individually. like go with a 8x8, 16x16, 32x32, 64x64, 128x128. you can use paint to create something of this size if you aren't a fan of gimp. (or photoshop, or some other high priced crap that likes to try to sue gimp) Import the photo, apply it to the cube(or whatever), then adjust the white outline on the left hand side to fit the texture. You can also drag around the white outline after shaping it to select only part of the given texture to apply. The only thing I know of that mcrayfish model creator doesn't do is some complex rotation stuff and create mcmeta files for multiple layered textures. (which is alright) then with that done, erase the comment and names of each section found in the json file. (which there should be a mod/program for, but i can't find one)
  21. Don't know if this helps but it could. X being where your put the item in the crafting grid, to craft such stuff. public class Guru { @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS) public static CommonProxy proxy; @Instance(Reference.MOD_ID) private static Guru instance; @EventHandler public void preInit(FMLPreInitializationEvent event) { ModCreativeTabs.load(); proxy.preInit(); GuruItems.init(); GuruItems.register(); GuruEntities.registerEntities(); initRecipes(); } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerRenders(); proxy.registerKeybindings(); NetworkRegistry.INSTANCE.registerGuiHandler(instance, proxy); } private static void initRecipes() { GameRegistry.addRecipe(new ItemStack(GuruItems.AirOrb), new Object[] {" X ", "X X", " X ", 'X', Items.FEATHER}); GameRegistry.addRecipe(new ItemStack(GuruItems.WaterOrb), new Object[] {" X ", "X X", " X ", 'X', Items.WATER_BUCKET}); GameRegistry.addRecipe(new ItemStack(GuruItems.EarthOrb), new Object[] {" X ", "X X", " X ", 'X', Item.getItemFromBlock(Blocks.DIRT)}); GameRegistry.addRecipe(new ItemStack(GuruItems.FireOrb), new Object[] {" X ", "X X", " X ", 'X', Items.LAVA_BUCKET}); GameRegistry.addRecipe(new ItemStack(GuruItems.NetherOrb), new Object[] {" X ", "X X", " X ", 'X', Item.getItemFromBlock(Blocks.OBSIDIAN)}); } public static Guru getInstance() { return instance; } }
  22. as of last week windows stopped supporting vista, and I can't afford a new os atm. I really need 70 bucks to get off this ddr2, and upgrade to a ddr3 graphics card before I get a new os anyways.
×
×
  • Create New...

Important Information

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