Jump to content

Minecraft Sync ?


TokyoSU

Recommended Posts

Hello i'm TokyoSU,

I have a problem (not by forge ?) with minecraft (modding)

Minecraft_TokyoSUMods.thumb.JPG.f98bb48529bdfa38b3597d1a4b00f085.JPG

1) - I want to upgrade the number of item you can hold / drop / store but after drop (inventory to ground (drag & drop)) item dispear (if more than 65+).

2) - When Right-Click to Ground with a block (or item like redstone),

if you shift click in creative inventory, drag the item in bar (255+ like in image) quit the inventory and right click in ground,

the block appear but dispear instant like mob in peasefull.

 

I dont know what is the problem, but if you right click in item after drop in bar (128 -> 64/64) the success appear and if you combine after (64/64 -> 128) you can place it normally in world the bug dont appear.

Anyone have idea what is the problem ?

Thanks in advance :)

PS: Sorry for bad english.

Edited by TokyoSU
Add missing text.
Link to comment
Share on other sites

1 minute ago, diesieben07 said:

You will have to completely rewrite anything and everything that deals with ItemStacks. The "64 is the limit" assumption is baked in all over the place. Breaking it will break almost everything.

 

I don't think this will work, to be honest.

I can create a video just for proof it, so it's ItemStacks the problem ?

Minecraft_TokyoSUMods_Potion.thumb.JPG.d3f39df24904c6f8a88477a87f6d2424.JPG

Link to comment
Share on other sites

I just want "The Problem to block dispear after placing if the stack is more than 64 (after move block (shiftclick) to inventory in creative and rightclick to ground)".

For now it's just this bug the problem ???,

- Inventory Player Working.

- Furnace Working.

- Chest & Dual Chest Working.

- Stacking Enchant & Potion Working.

 

Link to comment
Share on other sites

11 minutes ago, diesieben07 said:

You will have to completely rewrite anything and everything that deals with ItemStacks. The "64 is the limit" assumption is baked in all over the place. Breaking it will break almost everything.

 

I don't think this will work, to be honest.

*cough*

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

    /**
     * Returns the maximum stack size for a inventory slot. Seems to always be 64, possibly will be extended.
     */

why limited to 64 ?, byte is 128 but short is 32767 so just to rewrite it no ?

Edited by TokyoSU
adding lines
Link to comment
Share on other sites

That's not the only place that 64 is assumed (for reference, that same comment is found in... at least fourteen classes).

 

We also have ItemStackHandler.java, which lacks that comment:

    @Override
    public int getSlotLimit(int slot)
    {
        return 64;
    }

 

 

Edited by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

As mentioned, the 64 limit is coded into a lot of places so you can't just raise the limit by overriding the max stack size in a class.

 

I have wondered though about creating a "ghost" inventory container to add further multiples of 64. Theoretically you could create a GUI that displays the combined count of several itemstacks stored in several containers. Then you'd also need to handle where the player is using an item stack which would actually be several item stacks and you'd display the total count.

 

So I kinda feel it is possible to do, but certainly it would require crawling through all sorts of code and handling lists of ItemStacks wherever there is currently just a single ItemStack and changing the GUIs to provide the combined amount. Lots of work.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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



×
×
  • Create New...

Important Information

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