Posted February 25, 201510 yr comment_145576 good nigths i need to spam particles from diferent blocks when i use a custom item on them soo when i rigth click oak wood it spawns oak particles, but when i rigth click stone it spawn stone particles, http://jabelarminecraft.blogspot.com/p/minecraft-forge-1721710-modding-tips.html im using this guide but icould'n make it work error "The constructor EntityParticleEmitter(World, float, double, float, double, double, double) is undefined" and ¿ who is lex What is Lex's full nick name?: thanks
February 25, 201510 yr comment_145595 What is EntityParticleEmitter? Your custom particle? Please post some relevant code. I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP) II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.
February 25, 201510 yr Author comment_145614 in reality im using the code from that guide in internet that is for 1.7 but has to change something to meet mi needs //##################################################################3 void particulas(World worldIn, BlockPos pos){ //if (!worldObj.isRemote && rand.nextFloat()<0.1F) //{ Random rand = new Random(); int posX=pos.getX(); int posY=pos.getY(); int posZ=pos.getZ(); int width=5; int height=5; //float height=5.0F; //* height double motionX = rand.nextGaussian() * 0.02D; double motionY = rand.nextGaussian() * 0.02D; double motionZ = rand.nextGaussian() * 0.02D; worldIn.spawnParticle( "happyVillager", posX + rand.nextFloat() * width * 2.0F - width, posY + 0.5D + rand.nextFloat() * height, posZ + rand.nextFloat() * width * 2.0F - width, motionX, motionY, motionZ); } //##################################################################3 error: The method spawnParticle(EnumParticleTypes, double, double, double, double, double, double, int...) in the type World is not applicable for the arguments (String, float, double, float, double, double, double) and there is this object "EnumParticleTypes" i dont have idea how to use
February 25, 201510 yr comment_145701 What.. you have to specify the particle by EnumParticleTypes. (What are you actually doing, why did you put String in it..) Just find the particle you want from there. I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP) II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.
February 26, 201510 yr Author comment_145832 well i dunot know what its "EntityParticleEmitter" its something eclipse put to correct another error the point, how i get or do ,declare particles to use in this, this case it must spawn the particles in accordance with the block im rightcliking so there must be somewhere something like worldIn.getParticleFromblock(BlockPos);
February 27, 201510 yr comment_145878 Ah you cannot do that with spawnParticle method. just spawn EntityBreakingFX(World world, double x, double y, double z, Item item). I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP) II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.
March 5, 201510 yr Author comment_146813 good nigths lately been far away from the minecraft coding soo until tonigth i test the code public ItemStack onItemRightClick(ItemStack arco, World worldIn, EntityPlayer playerIn) { if (!worldIn.isRemote){ BlockPos ppos=playerIn.getPosition(); double x=ppos.getX(); double y=ppos.getY(); double z=ppos.getZ(); EntityBreakingFX(worldIn, x, y, z, Items.emerald); it returns The method EntityBreakingFX(World, double, double, double, Item) is undefined for the type arcoMercenario and it has no options to imprt the EntityBreakingFX, could be that this method has another name in 1.8 ?
March 5, 201510 yr comment_146820 good nigths lately been far away from the minecraft coding soo until tonigth i test the code public ItemStack onItemRightClick(ItemStack arco, World worldIn, EntityPlayer playerIn) { if (!worldIn.isRemote){ BlockPos ppos=playerIn.getPosition(); double x=ppos.getX(); double y=ppos.getY(); double z=ppos.getZ(); EntityBreakingFX(worldIn, x, y, z, Items.emerald); it returns The method EntityBreakingFX(World, double, double, double, Item) is undefined for the type arcoMercenario and it has no options to imprt the EntityBreakingFX, could be that this method has another name in 1.8 ? It seems that you don't know basic java well.. Please Learn Java. & What I meant was: create the EntityBreakingFX and spawn it in the world. I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP) II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.