Jump to content

Phylonia

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Phylonia

  1. Hello, I was developing for 1 year for small game projects on Unity, so I'm pretty familiar with the programming but on forge I'm pretty lost. I already create a mod that detects the block that is breaking, it detects wood and leaves. I also create something that lets you move the block (to try to copy the block dynamically), but I think I'm doing it the wrong way because my goal is to make my own block class to remove it the collisions and to put the visual of the block breaking. This is where I can not manage how to recover the visual only and not the whole block. I will inquire for what is "motion", I think it is indeed what I missed! And the EntityFallingBlock I'm already creating them, but I did not understand about blocks.log and blocks.leaves, but to tell the truth I never look for it like I did not know, so I'll go do some research I think I would find to better understand! Thank you I think you made me advance. And if I can do it with EntityFallingBlock then I think I do not need to bother trying to get the visual from the block Edit: I try this, it's not the result yet but I'm getting close to it, I'm going to search in the entityfallingblock file now that I know it's what I have to use thanks! @SubscribeEvent public static void Break(BlockEvent.BreakEvent event) throws InterruptedException { event.getWorld().setBlockState(event.getPos().add(-1, 5, 0), event.getState()); EntityFallingBlock entityfallingblock = new EntityFallingBlock(event.getWorld(), event.getPos().getX()-1,event.getPos().getY()+5,event.getPos().getZ(), event.getWorld().getBlockState(event.getPos())); entityfallingblock.motionX += 0.50; entityfallingblock.motionY += 0.25; event.getWorld().spawnEntity(entityfallingblock); }
  2. Hello all, I'm sorry in advance for my bad english, i try not use translator ^^ Because i'm not english i have difficulty to find word for search one solution. You can help me in just saying how i can use word for this search if is easy to find it, in french i have find nothing I have search 2 day for find how copy visual of block (but i'm a little lost, i think i have not understand all, but nevermind it work maybe can't is compatible my way for move in space). And now i find how move block in space. I try replace three be ghost block (i have little difficulty to creat ghost block, fall ghost block yes but ghost block ). And after all block of the three is ghost block after it i wan't fall the three like real three on the side in 90° I find where i can learn it and progress in the modding. I have many time and i wan't creat a big mod. I think for creat mob i can easy find how make it or it, but the block is little hard to find where change block. I have see one big boss when is jump all block in ground jump in wave is so cool. But no many tutoriel for this, or i have not find it. Sorry for difficulty with the langage, i have use translator for 2-3 words. Thank ! And if is very different of 1.13 (or 1.14 if you know) i think i change version, all people go in 1.14 when is out, i think is best version for creat a big mod with many many many edit and add. For creat big world.
×
×
  • Create New...

Important Information

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