Jump to content

Rendering entity made of multiples blocks


iFaZe_

Recommended Posts

Hi,

I'm new to forge modding, i have a dev background (PHP, Flutter...) and i want to create my own mod, at least trying to make some things.

So i need some help to start, i already do some java and i can learn fast. I got a main problem idk from where to start so i need your help !

 

I want to create a vehicle mod, i know i cannot do it few days but i want to know from where i need to start, rendering, entity and blocks are complex for me and idk what i need to use and i cannot find tutorials ..

So my main problem is, how to render a movable structure made of blocks : like a simple boat => NCZwaWQ9QXBp

 

I'm not familiar with java and minecraft modding, but if someone can explain the steps to do what i want it's perfect.

I want to create an entity or something movable made of blocks (like the picture)

After i need some things more like collision, it's perfect if i can "walk" on the boat...

i already know some mods like archimeds ships ... and something like can be perfect,

but without entity to block, i mean i don't want to the entity can be block or breakable ...

i have no prefered version for modding.

 

thanks for help and reply ;)

 

 

 

 

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

4 hours ago, iFaZe_ said:

I want to create a vehicle mod, i know i cannot do it few days but i want to know from where i need to start, rendering, entity and blocks are complex for me and idk what i need to use and i cannot find tutorials ..

The official docs and the forge community wiki are both good starting points. We typically don't recommend video tutorials except those from McJty. As for other stuff, just read the source code and use it as a basis to improve upon.

4 hours ago, iFaZe_ said:

So my main problem is, how to render a movable structure made of blocks : like a simple boat => 

I mean, it's an entity, just rendered to be a bunch of blocks.

4 hours ago, iFaZe_ said:

I'm not familiar with java and minecraft modding, but if someone can explain the steps to do what i want it's perfect.

You're going to need to be very familiar with Minecraft modding and Java to attempt anything close to this. As for steps, it depends on a lot of things. I recommend giving it a try yourself and ask questions when you get stuck rather than asking for step-by-step instructions on how to program. Also, we don't give support to people without the relevant Java knowledge or else they copy-paste and ask for the solutions without understanding how to think themselves.

4 hours ago, iFaZe_ said:

i already know some mods like archimeds ships ... and something like can be perfect,

So, why not use one of those mods? Create comes to mind for something that can do this.

4 hours ago, iFaZe_ said:

but without entity to block, i mean i don't want to the entity can be block or breakable ...

I have no idea what you're saying here, but you need an entity if you want it to not be locked to a specific place.

4 hours ago, iFaZe_ said:

i have no prefered version for modding.

We only support the latest and LTS versions of Minecraft for modding (1.19.2 and 1.18.2 currently).

Link to comment
Share on other sites

4 hours ago, iFaZe_ said:

I want to "modify" the original archimed ship to update and add features

This is illegal, the original mod was under all rights reserved and as such cannot be "modified".

4 hours ago, iFaZe_ said:

i searched and it use a "mobile" chunk redering

So an entity which rendered a chunk. Or it was back in the olden days so it could be weirder.

4 hours ago, iFaZe_ said:

i'm currently learning java

Learn java first, then come back to modding once you have a basic understanding. Using a library before you learn the language is like trying to run before you know how to stand. Modding is a whole different beast comparable to winning an Olympic metal in gymnastics in our analogy. We do not provide support for people who do not understand at least an intermediate level of Java, so please come back once you do so.

Link to comment
Share on other sites

Quote

This is illegal, the original mod was under all rights reserved and as such cannot be "modified".

Technically, it's only a copyright breach if you distribute it to other people.

If you have a legitimate copy, modifying for personal use is fine.

 

For the original poster, you might want to look at (and contribute to): https://github.com/ValkyrienSkies/Valkyrien-Skies-2

But since it is currently for 1.16.x you won;t get any support for it here.

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

10 minutes ago, ChampionAsh5357 said:

This is illegal, the original mod was under all rights reserved and as such cannot be "modified".

So an entity which rendered a chunk. Or it was back in the olden days so it could be weirder.

Learn java first, then come back to modding once you have a basic understanding. Using a library before you learn the language is like trying to run before you know how to stand. Modding is a whole different beast comparable to winning an Olympic metal in gymnastics in our analogy. We do not provide support for people who do not understand at least an intermediate level of Java, so please come back once you do so.

Omg you are so mad :/ i have a dev background (PHP and Flutter) and i understand well java basics ... I'm New to Minecraft / forge modding

Link to comment
Share on other sites

1 minute ago, warjort said:

Technically, it's only a copyright breach if you distribute it to other people.

If you have a legitimate copy, modifying for personal use is fine.

 

For the original poster, you might want to look at (and contribute to): https://github.com/ValkyrienSkies/Valkyrien-Skies-2

But since it is currently for 1.16.x you won;t get any support for it here.

Yep i see this mod too, idk why there is version for mods, forge provide an sdk/api for modding but it's not compatible ?

Link to comment
Share on other sites

17 minutes ago, iFaZe_ said:

Omg you are so mad :/ i have a dev background (PHP and Flutter) and i understand well java basics ... I'm New to Minecraft / forge modding

Apologies if it seems like I'm mad. I'm just trying to state the facts. When you say contradictory things like know the Java basics and learning Java, that leads me to believe you do not have a solid enough foundation to make a mod, hence my above statement.

17 minutes ago, iFaZe_ said:

Yep i see this mod too, idk why there is version for mods, forge provide an sdk/api for modding but it's not compatible ?

Forge doesn't provide any support for any versions that are not the current latest or LTS. Things change between versions of Minecraft and Forge is made up of volunteers, so we do not have the ability to maintain all versions. As such, there will likely always be at least one thing not compatible between versions (though it's usually more like a hundred things).

Link to comment
Share on other sites

Ok so i'm really motivated and i setup a "learning" program, can you tell me
if you have some suggestions like some things i need to learn or some parts i forgot...

first i think i will try to do this "simple" things :
 - create a new block (ship controller block)
 - add right click event on this block ?
 - display a chat message like "you clicked on ship controller"

after i will try the "complex" part like :
 - add a craft to my new block ?
 - detect ship (just 3-4 blocks, the controller and few near blocks) on right click
 - saving ship somewhere (array or idk for now, if you have some suggestions)

after i think i need some help but i'm not at this point, for now if you can tell me 
how i need to save my ship maybe in future i want to make bigger ship so can you tell me
witch is the best ? maybe selecting corners like worldedit ? or with the ship controller
and detecting the near blocks...

Link to comment
Share on other sites

I think you have the wrong idea about this forum.

In a court of law there is generally rule that judge's don't answer hypotheticals. They only rule on cases that actually have consequences.

This forum works in similar way.

We answer questions from people that have tried to write a mod and have hit a snag or bug they don't understand.

That way we are dealing with a concrete issue and the questioner has some understanding of what the answer means (having tried to do it themselves).

Your question is more like "I have a great idea for a mod, can you tell me how to write it?" which is way too open ended to get an answer.

Try to implement your mod, then come back when you have issues you need help with.

But don't be surprised if you are ignored or get a snarky answer when your question shows you haven't put the effort in yourself to find an answer.

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • when I just started up the game, I had this one splash on the menu. then I joined a world. I left. but when I exited the world to menu, it said the exact same splash it showed that I started up the game! 😠 and it won't change until I restart the whole game all over again. and I am using my custom splash texture pack, but it was not like that before even when I had it enabled. ugh! what even am I doing wrong? my whole game is ruined!! https://mclo.gs/LRDITtP
    • before I updated my pack I made for paintings++ mod, i noticed and saw that only modded paintings and vanilla ones move one block each time I re-enter my world! is there something wrong? what the hell is even going on? why is there a ghost living in my house?! the modded paintings even phase through blocks which is super weird!! help! here is my painting mod list: Paintings++ Dark paintings Macaw's paintings Joy of painting Immersive paintings My custom paintings++ resource pack
    • Error: java.lang.NullPointerException: Cannot invoke "me.codexadrian.tempad.TempadClientConfig.renderBlur()" because the return value of "me.codexadrian.tempad.TempadClient.getClientConfig()" is null I keep having this error while trying to launch a modpack through the forge modloader, any suggestions? https://docs.google.com/document/d/1CRKUoSiu2e_mDvDTVYpIA5wqD3w-BsCycxBu1_vQ4OA/edit?usp=sharing Crash Report ^^^^
    • I'm trying to start a server with the latest installer, but running the run.bat file doesn't generate new files. It shows the following in the cmd prompt.
    • One of my players is suddenly unable to join a locally hosted MC Eternal server. We have been playing on this server for about 2-3 weeks now. I have tried erasing his player files and his reputation file, and now it just coughs up this and kicks him out: [User Authenticator #5/INFO] [minecraft/NetHandlerLoginServer]: UUID of player EthosTheGod is 7692d8db-02c3-424f-a4ab-0e4e259b106b [20:25:36] [User Authenticator #4/INFO] [minecraft/NetHandlerLoginServer]: UUID of player EthosTheGod is 7692d8db-02c3-424f-a4ab-0e4e259b106b [20:29:35] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 575849ms behind, skipping 11516 tick(s) [20:29:35] [Server thread/INFO] [minecraft/NetHandlerLoginServer]: com.mojang.authlib.GameProfile@4a6c63f1[id=7692d8db-02c3-424f-a4ab-0e4e259b106b,name=EthosTheGod,properties={textures=[com.mojang.authlib.properties.Property@241ea89e]},legacy=false] (/IP.ADDRESS) lost connection: Disconnected [20:29:35] [Server thread/INFO] [minecraft/NetHandlerLoginServer]: com.mojang.authlib.GameProfile@6ab6c661[id=7692d8db-02c3-424f-a4ab-0e4e259b106b,name=EthosTheGod,properties={textures=[com.mojang.authlib.properties.Property@7f19aae3]},legacy=false] (/IP.ADDRESS) lost connection: Disconnected It just says "connection timed out" on his end. Any ideas?
  • Topics

×
×
  • Create New...

Important Information

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