Jump to content

Recommended Posts

Posted

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

 

 

 

 

 

 

 

 

 

 

 

 

Posted
  On 10/19/2022 at 9:15 AM, 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 ..

Expand  

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.

  On 10/19/2022 at 9:15 AM, iFaZe_ said:

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

Expand  

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

  On 10/19/2022 at 9:15 AM, 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.

Expand  

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.

  On 10/19/2022 at 9:15 AM, iFaZe_ said:

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

Expand  

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

  On 10/19/2022 at 9:15 AM, iFaZe_ said:

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

Expand  

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.

  On 10/19/2022 at 9:15 AM, iFaZe_ said:

i have no prefered version for modding.

Expand  

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

Posted

Hi, 

I want to "modify" the original archimed ship to update and add features, i searched and it use a "mobile" chunk redering, i'm currently learning java, i will send my questions if i have

Posted
  On 10/19/2022 at 1:57 PM, iFaZe_ said:

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

Expand  

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

  On 10/19/2022 at 1:57 PM, iFaZe_ said:

i searched and it use a "mobile" chunk redering

Expand  

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

  On 10/19/2022 at 1:57 PM, iFaZe_ said:

i'm currently learning java

Expand  

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.

Posted
  Quote

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

Expand  

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.

Posted
  On 10/19/2022 at 6:32 PM, 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.

Expand  

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

Posted
  On 10/19/2022 at 6:42 PM, 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.

Expand  

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 ?

Posted
  On 10/19/2022 at 6:44 PM, 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

Expand  

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.

  On 10/19/2022 at 6:45 PM, 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 ?

Expand  

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).

Posted

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...

Posted

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.

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

    • Make a test with another Launcher like the Curseforge Launcher, MultiMC or AT Launcher
    • can anyone help me i am opening forge and add modpacks and then it says unable to update native luancher and i redownlaod java and the luancher it self?
    • The problem occurs also in 1.20.1 Forge, but with an "Error executing task on client" instead. I have "Sinytra Connector" installed. On 1.21.5 Fabric, there is no problem. When this happens, the chat message before the death screen appears gets sent, with an extra dash added.
    • Well, as usual, it was user error. Naming mismatch in sounds.json.  Please delete this post if you find it necessary. 
    • Hello Forge community.  I'm running into an issue with a mod I'm working on.  To preface, I can call /playsound modId:name music @a and I can hear the sound I registered being played in game. Great!  However, I cannot get it to trigger via my mod code.    Registration: public static final RegistryObject<SoundEvent> A_WORLD_OF_MADNESS = SOUND_EVENTS.register("a_world_of_madness", () -> new SoundEvent(new ResourceLocation("tetheredsouls", "a_world_of_madness")));   Playback: Minecraft mc = Minecraft.getInstance(); if (!(mc.player instanceof LocalPlayer) || mc.level == null) return; LocalPlayer player = (LocalPlayer) mc.player; BlockPos pos = player.blockPosition(); SoundEvent track = ModSounds.A_WORLD_OF_MADNESS.get(); System.out.println(track); System.out.println(pos); System.out.println(player); // play exactly like the tutorial: client-only, at the player's position try { mc.level.playLocalSound( player.getX(), player.getY(), player.getZ(), track, SoundSource.MUSIC, // Or MASTER if needed 1f, 1f, false ); System.out.println("[DEBUG] playSound success: " + track.getLocation()); } catch (Exception e) { System.err.println("[ERROR] Failed to play sound: " + track.getLocation()); e.printStackTrace(); } Sounds.json:   { "theme_of_laura": { "category": "music", "sounds": [ { "name": "tetheredsouls:a_world_of_madness", "stream": true } ] } } Things I have tried: - multiple .ogg files. Short .ogg files (5 seconds, <100KB).  - default minecraft sounds imported from import net.minecraft.sounds.SoundEvents; These work given my code. No idea why these are different.  - playSound() method, as well as several others in past iterations that did not work   I would be forever grateful if somebody could point me in the right direction. I've looked at several mod github repositories and found extremely similar code to what I'm doing. I've also found several threads in this forum that did not solve my issue. I just cannot figure out what I'm doing differently, and why I'm able to queue sounds manually with playsound but the code won't play it (despite confirming the code is being run with the debug statements.)
  • Topics

×
×
  • Create New...

Important Information

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