Jump to content

Recommended Posts

Posted (edited)

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.

Edited by Phylonia
Posted

ok first of all, you need to try out small things before you make complicated things. otherwise, you'll just get angry with yourself and quit. start small.

 

as for the tree thing (seriously, if you don't  improve that english, don't ask for help in english), start with a demo - make a mod  that detects you right-clicking the ground with a stick. when you detect that, spawn 2x EntityFallingBlock (i think it's called that). spawn  them at x-1, y+4, z  and  x+1, y+4, z. let one have a blocks.log as it's block and the other should have blocks.leaves as its block. now give them a bit of vertical movement (i don't remember if you even have to, maybe not) using motionY and you're done with a demo. then, build on top of that.

  • Thanks 1
Posted (edited)

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); 
    }

 

Edited by Phylonia
Posted

you are not doing what i told you to do. you are writing random things and hoping everything works.

 

first, get a hang of making a falling entity that will be a moving log-block and moving leaf-block when you are ready. and i said, do it on clear ground - react to a stick interacting with stone or react to a chat message.

 

do not experiment inside of existing blocks (tree trunk). when the time comes, you'll need to remove all those logs and leaves prior to creating moving blocks, but do that LATER.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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