Jump to content

Recommended Posts

Posted

i want to know because a mob my friend added is crashing servers and i need to fix it so that it only tries to render the mobs in the client, right now they render no matter what

thanks in advance

 

Posted

Use a client sided EventSubscriber or proxies

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted
  On 11/28/2018 at 3:24 AM, Cadiboo said:

Use a client sided EventSubscriber or proxies

Expand  

i can't and here's why:

i am making an if loop that contains the rendering code, i already have the entity made, the rendering code is already there, and i need to know what the if loop would look like if i were to put the auto-generated rendering code into a loop that only runs if the session is a client

Posted
  On 11/28/2018 at 4:09 AM, CNKManga said:

i can't and here's why:

i am making an if loop that contains the rendering code, i already have the entity made, the rendering code is already there, and i need to know what the if loop would look like if i were to put the auto-generated rendering code into a loop that only runs if the session is a client

Expand  

Post your code.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
  On 11/28/2018 at 4:55 AM, Animefan8888 said:

Post your code.

Expand  

Use a GitHub repo, please. Otherwise the thread becomes a bit messy.

 

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted (edited)

just  make a large entity yourself using MCreator, then test the server environment and it should stop because of an error

Edited by CNKManga
Posted
  On 11/28/2018 at 6:03 AM, CNKManga said:

i wont use git because then other people can see my code

Expand  

Then dont ask for help with code or suck it up and remove it once you've gotten help.

  On 11/28/2018 at 6:03 AM, CNKManga said:

 just. post. the. if. loop.

Expand  

I'm sorry what? First off that's not how we do things around here. We do not just post code for people to use, we help people write the code for themselves. Secondly you cant just use an if loop, whatever that is.

  On 11/28/2018 at 6:06 AM, CNKManga said:

just  make a large entity yourself using MCreator, then test the server environment

Expand  

Cadiboo, DaemonUmbra, and myself can do this and have it work on a dedicated server.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted (edited)
  On 11/28/2018 at 6:10 AM, Animefan8888 said:

once you've gotten help.

Expand  

i will not be helped on this project unless i can get code from this forum

so github and any other online code posting sites are off the table by default

Edited by CNKManga
Posted

We would prefer to teach you how to solve your problems rather than doing the work for you.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted (edited)
  On 11/28/2018 at 6:17 AM, DaemonUmbra said:

teach you rather than do the work for you.

Expand  

alright, fine, where can i find an example that looks like this:

if(mod is on client-side){(this bit here is all i need to know on this line)

EntityRegistry.registerModEntity(new ResourceLocation("unreachablefantasy:iceyeti"), Entityiceyeti.class, "iceyeti", mobid, instance, 64, 1, true, -1, -6684673);

}

?

Edited by CNKManga
Posted (edited)
  On 11/28/2018 at 3:24 AM, Cadiboo said:

proxies

Expand  

https://mcforge.readthedocs.io/en/latest/concepts/sides/#sidedproxy

Do the work in the client proxy and put a no-op in the server proxy

 

Edit: Animefan's solution and comment below are more applicable than this answer.

Edited by DaemonUmbra

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted
  On 11/28/2018 at 6:20 AM, CNKManga said:

alright, fine, where can i find an example that looks like this:

Expand  

Well first you shouldn't be registering your entities like that anymore, there is a registry event for them now. And this piece of code has to happen on both the server and has nothing to do with rendering.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
  On 11/28/2018 at 6:22 AM, Animefan8888 said:

Well first you shouldn't be registering your entities like that anymore, there is a registry event for them now. And this piece of code has to happen on both the server and has nothing to do with rendering.

Expand  

oh, thanks, but this is what was generated by MCreator

Posted

My opinion: Learn Java and do it properly.

  • Like 2
  • Thanks 1

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted
  On 11/28/2018 at 6:27 AM, CNKManga said:

where can i find info on this new registry event?

Expand  

https://mcforge.readthedocs.io/en/latest/concepts/registries/ and the JavaDoc comments

  • Thanks 1

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted (edited)
  On 11/28/2018 at 6:26 AM, CNKManga said:

generated by MCreator

Expand  

Don't use MCreator. ever. It was a great concept, but it was horribly made. Really, really, really badly implemented. I'm planning on making my own API (that might have its own program to make stuff) that provides similar functionality.

  On 11/28/2018 at 6:27 AM, CNKManga said:

new registry event

Expand  

Registry events haven't been new for a long time.

You might want to take use my example mod. You should at least read the README as it outlines a few concepts and has some helpful references.

  On 11/28/2018 at 6:03 AM, CNKManga said:

then other people can see my code

Expand  

If you release code you've written people can see it. Java is one of the easiest languages to decompile, but this applies universally. It takes max 5 min to decompile & deobfuscate someone's mod. I don't see any reason for keeping code private ever (except for trying to monetise on it), if your worried about security your code should always be public so people can look at it and tell you about vulnerabilities for example. IMO the answer is never to keep code private

Edited by Cadiboo

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted

If I may, OP, you will have a very hard time getting any sort of help if you keep being stubborn about getting people to view your code. Frankly, nobody here is interested to steal your code, nobody wants to plagiarize any functions, or anything like that. By refusing to show us an entire code base so that we, as helpers are not able to view it, you limit your ability to get help by a lot. It makes threads extremely messy and random when you post small snippets, especially considering you aren't posting enough code for us to help without seeing more in the first place. 

  • Like 1

I am a human and this action was performed manually. Please contact Frontear if you have any questions or concerns.

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.