Jump to content

Recommended Posts

Posted

Seems to me as though you've got your horizontal EnumFacing values wrong. What exactly are you trying to do i.e. what are you trying to transfer? In your code I see vein and a custom energy capability and a whole bunch of classes with abbreviations in their name who's purpose is not immediately obvious.

Also don't use IHasModel (or any variant - ItemM)

Don't us static initialisers, use the @ObjectHolder annotation

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

They're just rendering wrong. See:
src/main/resources/assets/extraexpansion/blockstates/conduit.json
src/main/resources/assets/extraexpansion/models/conduit_(u,d,n,s,w,e).json
src/main/java/ru/tse/extraexpansion/tech/conduit/BConduit.java

Posted (edited)

If one conduit changed, it's connections will be applied in every conduit in the world, but NOT always, something strange is happening

Edited by TSEngineer
Additional info
Posted
  On 10/9/2018 at 9:19 AM, TSEngineer said:

If one conduit changed, it's connections will be applied in every conduit in the world, but NOT always, something strange is happening

Expand  

Did you push all of your code to github or just your jsons? Cause we also need to see the Block class too.

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

You can't do this. Blocks are singletons meaning that these values will apply to all blocks in the world when you change it. Resolve the needed connections in your getActualState method. Or migrate the variables responsible to the connections to a TileEntity.

Posted
  On 10/9/2018 at 7:14 PM, TSEngineer said:

Now tile entity is not saving u, d, n, s, w, e. https://github.com/TSEngineer/ExtraExpansion

Expand  

No, it's totally saving them. You just aren't updating the client. You need to override getUpdatePacket, handleUpdatePacket, and two other methods I cant think of right now.

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 10/9/2018 at 7:38 PM, TSEngineer said:

Will markDirty() also help?

Expand  

That just tells the server that something has changed and it needs to be saved, it may query sending the packet based on if it has been marked dirty or not.

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 10/9/2018 at 7:42 PM, TSEngineer said:

So I need to make an update packet and send it to client, then handle it on client, right?

Expand  

You can, but you dont have to, vanilla has one. And the methods I told you to override are used by them.

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 10/9/2018 at 7:47 PM, TSEngineer said:

Ok, where do I override handleUpdatePacket then?

Expand  

Should be in the TileEntity however the name may be slightly different but there are two other methods but I cant remember the names so you should look in the TileEntity class.

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
@Override
public void handleUpdateTag(NBTTagCompound tag) {
    u = tag.getBoolean("u");
    d = tag.getBoolean("d");
    n = tag.getBoolean("n");
    s = tag.getBoolean("s");
    w = tag.getBoolean("w");
    e = tag.getBoolean("e");
}

@Override
public NBTTagCompound getUpdateTag() {
    NBTTagCompound nbt = new NBTTagCompound();
    nbt.setBoolean("u", u);
    nbt.setBoolean("d", d);
    nbt.setBoolean("n", n);
    nbt.setBoolean("s", s);
    nbt.setBoolean("w", w);
    nbt.setBoolean("e", e);
    return nbt;
}

 

Posted

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)

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

    • If you're in Austria and trying the Temu app for the first time, this exclusive deal is for you. New users can apply the Temu discount code [alb232118] to instantly receive a €100 Temu coupon code bundle and a generous 30% discount on their first order over €10. This welcome offer is only valid for first-time users who complete their purchase within one hour of installing the Temu mobile app. Using this Temu promo code, you'll unlock a maximum discount of €30. The coupons are applied automatically once you register a new account through the app. Please note that this promotion is only available via the mobile version of Temu and cannot be used on desktop browsers. If you've already created a Temu account in the past, this offer won't apply. But for new users in Austria, this is the perfect way to start shopping and saving right away. Download the Temu app, enter the Temu discount code [alb232118], and enjoy massive savings with verified Temu coupon code rewards in Austria.      
    • New to Temu and located in Australia? Here's your chance to claim an exclusive welcome deal. By using the Temu discount code [alb232118], first-time users of the Temu mobile app can receive an AU$100 Temu coupon code package and enjoy an instant 30% off on their first purchase over AU$20. This offer is valid only for new users who make a qualifying purchase within one hour of installing the app. The Temu promo code [alb232118] grants a maximum discount of AU$30 and works automatically at checkout. The coupons are activated as soon as you sign up with a new account through the Temu mobile app. Note that this promotion is not available on desktop and is strictly for mobile use. If you’ve registered with Temu before, this offer won’t apply. But if you're a brand-new user in Australia, this is a smart way to start saving on your first shopping experience. Download the app today, apply the Temu discount code [alb232118], and unlock your AU$100 in coupons with extra savings thanks to this verified Temu coupon code.  
    • There are client-side-only mods in your server's mods folder DayCount is mentioned Start with removing this mod from your server - if this is still crashing, add the new crash-report  
    • hi, i cant start server on aternos bc this crash i poping out, im not a programist so for me its just a lot of words. anyone cna help me out? we just wanted to play mc on mods with da boys! crash report here: https://mclo.gs/pOtNvCQ  
    • Hi Everyone, I'm FlamingPigman! About 12 years ago I developed a mod called the Power Gems Mod, which added 7 new ores to the game and added some more uses for Lapis Lazuli. Each new ore is tied to a special power with an associated armor set and tools + a special weapon/tool and a special effect when you have a full armor set! I'm currently working on creating versions that can run on some of the more popular MC versions. If this sounds like a mod that interests you, check it out here: https://www.curseforge.com/minecraft/mc-mods/power-gems-mod Appreciate the support folks!
  • Topics

×
×
  • Create New...

Important Information

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