Basically, i need a mod that add two things for my playthroughs with my friend @past tide
- Make barrels keep its items inside when broken (like a shulker box);
- Allow them to be equipped on the back just like Shulker Box Slot
Don't ask
157 messages · Page 1 of 1 (latest)
Basically, i need a mod that add two things for my playthroughs with my friend @past tide
Don't ask
Two part:
u made it or not?
what version
1.21
alr
Nope, go for it.
i cant even find the barrel source code ;-;
go to mod dev 1
any updates? @normal maple
i couldnt do it sorry
i might work on it further ut rn not really
i understand
i know he's mainly on client-side stuff, but maybe @median berry could have interest
i might try this later today, im a little busy rn but wont be later !
thanks a lot
should it be equiped in the chestplate slot or seperately, on the back ?
on the back (via Trinkets)
oki !
Same slot that this mod makes Shulker Boxes to be equipped
https://modrinth.com/mod/shulker-box-slot
i think its "Back"
kk !
any news? @near stag
i got a bit busy but im starting to wrok on it now
ive finished it !
im uploading it to github
and can upload it to modrinth if you want
and might make it render a barrel on your back tmrw
here it is ! https://github.com/z3roco01/retainingBarrels
Can you put simple readme
Thanks a lot for this!!
oh please
and if possible add a hotkey to open the barrel without the need to unload it
if possible please
finished that !
ill make some sort of icon then upload it, then ill start on the other things
rn im tweaking the rendering, then ill add the keybind !
now im adding the keybind !
Thank you so much @near stag
ofc !
By chance, when you finish this mod, could you give a chance for #1257908782785232986 as well?
I visualized that very similar to this barrel revamp (a counterpart of shulker boxes too)
Unfortunately people don't understood it and the implementation another mod did was hugely needed
Ops *nerfed
yea i can take a look at it !
for the keybind i need to do some networking i think and ive never done that so its gonna take a bit more time
yea idk if i can do it, i dont think i have enough knowledge of networking
but ive put the current version up on modrinth, its under review rn ! https://modrinth.com/mod/retaining-barrels/
You can check shulker box slot to see how it was implemented
kk ill check it out
oh wait i edited the last message. its meaning was whole opposite i was meant
🤬 smartphone corrector
pay attention that that mod is on 1.20.1 yet
dont know how much this part changed between 1.20.1 and 1.21
and maybe @brave viper can help you in this part as well
i think its changed a decent bit from 1.20 to 1.21 so most of that code isnt of use
oh
i might be able to figure it out tho idk
maybe try asking in #1212018757791252540
wait i think i got it, i got the packet working
ive got it opening a screen, i just need to make it save to the item !
i assume it will, i can check once ive finished it
i got it to work !
now im gonna test it in multiplayer
it does work in multiplayer !
builds are up on my github https://github.com/z3roco01/retainingBarrels/releases im just waiting for approval on modrinth
should barrels not be allowed to be put in each other like shulkers cant go into another shulker ?
yep
kk ill add that !
done !
@near stag just installed the latest release and i couldnt find any keybind related to the mod in the options
nvm, it's alongside the other inventory binds
ah, and seems like both placed and equipped barrels doesnt do the opening animations anymore
and the opening sound only plays the first time i open it
subsequent times it's silent
this only in placed barrels. Equipped ones seems to always play the sound when pressing b
a small parity detail: in creative, shulker boxes only drop themselves when there is at least one item stored, otherwise it didnt drop anything (like other blocks of the game in this gamemode)
also, could you also add hovering "sneak peek" like shulker boxes do in vanilla?
and, to finish the feedback and stop being annoying to you, also add held item description (similar to vanilla hovering sneek peek, but with the second line in a sighly different color) if Bedrockify (that is the one that add this feature for shulker boxes) is installed
sorry if i'm very intrusive
Vico can sometimes be very intrusive...
wdym?
No explanation necessary. You can be quite uncompromising and pushy.
Btw I stuck the banner thing in boxes break backs.
thanks for the unconstructive feedback
i was telling @near stag what i was running into while testing the mod
I don't mean to be unconstructive
but sounded rude
You notice I'm still willing to talk.
I do that. I've only had like two years of people training
i was just doing feedback about his kind attempt to do my request
No complaints about that.
aside of that points his mod was already usable, differently of your mod (if going rude is the way with you, lets do it too)
Please do tell what is unusable. I like blunt feedback without masking, it helps me know exactly what I've broken.
like i said, i ditched your mod when trinkets got updated
btw, this is not the place to talk about it (this is for the idea zerocool is doing)
Correction. This is the place for the idea Mr sterner did
But yr
Bye
idk how possible this is, since the method i mixin to for droping the barrel doesnt have a reference to the player, and it doesnt override the ome that does so i cant mixin to it as far as i know
oh i see
You could get the player from on break and save it (zero cool if you're ready to stop tell me...)
im pretty sure you cant mixin to something it doesnt override
You can. But if you don't want to that's okay
i do want to
K
So you just have to mixin and then submixin
You mixin to where the method is
And then you mixin to your target class and override the original mixin method
Not on my phone.
Mixin to the closest super class that has the method. Inject where you think you need to be. Then extend that mixin in another mixin to the barrel block class or whatever and put your code there.
ok i think i get it
I think it needs to be in the same mixin package to work
i got it to work !
Remembering that there is only one block class instance per block?
yea
Cool. In a few months vico will switch to accessories again when 1
22 comes out. But until then, 🎊
lol
also got this done
idk if this is possible, it doesnt look like they have any sort of api
im having trouble finding this bug aswell, i cant quite find what is causing it
would send you my profile be of any use?
maybe just add an option in your mod, independent of bedrockify
i dont think so, i does happen to me too i just cant find it
that would probably conflict with bedrockify and cause problems
it is up on modrinth tho ( despite the bugs ) https://modrinth.com/mod/retaining-barrels
not really, just implement the tooltip indepently
i think it would, id mixin to the same classes it does which could mess stuff up
oh i see
it could be possible to add the preview to bedrockify and try and it get into the mod
Arguably you could mixin with built in check to see if bedrockify is installed and disable your mixin if it is, or you could set it to automatically fail if it is not possible without errors.
Or use a super low priority
it would make more sense to make a pr on bedrockify to have it added in my opinion
Idk.
I just mixin
idk, bedrockify already has the look and all the methods needed to do it
pingging @vernal stream to see what he thinks about it
starting here
I'm ok if you want to open a PR on bedrockIfy to have it added... I can also try to implement it myself, like in a generalized way that works for other mods, but i haven't look at this particular mod implementation yet
it just uses components, the same way shulkers do i think, its not specific to my mod it would work with any barrel item that has contents
i'll take a look at it
I've added the tooltip to any item with container components and that made it work with the mod
there will be an update to bedrockify in some days
thanks a lot @vernal stream
will try the modrinth release today
@near stag Some points i noticed:
My Mixins:
I am just adding stuff to the end of the render functions, so potentially those functions are getting overridden by this mod (not sure what it is I am not bothering to read the whole thread).
just reassembling my modpack from scratch, i would like to give it another chance