#Yet another request involving barrels...

157 messages · Page 1 of 1 (latest)

candid spear
#

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

brave viper
#

Two part:

  1. Mixin to BarrelBlock
  2. Tag to mark barrels as equipable
candid spear
normal maple
brave viper
normal maple
#

go to mod dev 1

candid spear
#

any updates? @normal maple

normal maple
#

i might work on it further ut rn not really

candid spear
#

i understand

#

i know he's mainly on client-side stuff, but maybe @median berry could have interest

near stag
#

i might try this later today, im a little busy rn but wont be later !

near stag
#

should it be equiped in the chestplate slot or seperately, on the back ?

candid spear
near stag
#

oki !

candid spear
#

i think its "Back"

near stag
#

kk !

candid spear
#

any news? @near stag

near stag
#

i got a bit busy but im starting to wrok on it now

near stag
#

ive got the shulkerbox part working !

#

the part where it works like a shulker box

near stag
#

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

austere timber
candid spear
candid spear
#

and if possible add a hotkey to open the barrel without the need to unload it

candid spear
near stag
near stag
near stag
#

rn im tweaking the rendering, then ill add the keybind !

near stag
#

now im adding the keybind !

candid spear
#

Thank you so much @near stag

near stag
#

ofc !

candid spear
#

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

near stag
#

yea i can take a look at it !

near stag
#

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

candid spear
near stag
#

kk ill check it out

candid spear
#

🤬 smartphone corrector

candid spear
#

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

near stag
#

i think its changed a decent bit from 1.20 to 1.21 so most of that code isnt of use

candid spear
#

oh

near stag
#

i might be able to figure it out tho idk

candid spear
near stag
#

wait i think i got it, i got the packet working

near stag
#

ive got it opening a screen, i just need to make it save to the item !

candid spear
#

fingers crossing

#

hope this works in multiplayer as well

near stag
#

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 !

candid spear
#

great

#

i will add it to my pack as soon a build is generated

near stag
#

should barrels not be allowed to be put in each other like shulkers cant go into another shulker ?

near stag
#

kk ill add that !

near stag
#

done !

candid spear
#

@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

candid spear
#

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

brave viper
candid spear
#

wdym?

brave viper
brave viper
candid spear
#

i was telling @near stag what i was running into while testing the mod

brave viper
candid spear
brave viper
#

You notice I'm still willing to talk.

brave viper
candid spear
#

i was just doing feedback about his kind attempt to do my request

brave viper
candid spear
#

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)

brave viper
candid spear
#

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)

brave viper
near stag
brave viper
#

You could get the player from on break and save it (zero cool if you're ready to stop tell me...)

near stag
#

im pretty sure you cant mixin to something it doesnt override

brave viper
#

You can. But if you don't want to that's okay

near stag
#

i do want to

brave viper
#

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

near stag
#

i dont quite get it

#

do you have an example you could show me

brave viper
#

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.

near stag
#

ok i think i get it

brave viper
near stag
#

i got it to work !

brave viper
near stag
#

yea

brave viper
# near stag yea

Cool. In a few months vico will switch to accessories again when 1
22 comes out. But until then, 🎊

near stag
#

lol

near stag
near stag
candid spear
candid spear
near stag
near stag
near stag
candid spear
near stag
#

i think it would, id mixin to the same classes it does which could mess stuff up

near stag
#

it could be possible to add the preview to bedrockify and try and it get into the mod

brave viper
brave viper
near stag
#

it would make more sense to make a pr on bedrockify to have it added in my opinion

near stag
#

idk, bedrockify already has the look and all the methods needed to do it

candid spear
#

pingging @vernal stream to see what he thinks about it

vernal stream
#

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

near stag
vernal stream
#

i'll take a look at it

vernal stream
#

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

candid spear
#

thanks a lot @vernal stream

candid spear
#

will try the modrinth release today

candid spear
#

@near stag Some points i noticed:

  • The lack of opening animation (and sound in any subsequent interactions) makes the block "unsafe" for storage. Don't know, the lack of sound makes me feel storing anything on barrels is something risky (my OCD, sorry);
  • Also seems like your mixins are disabling @void tide's Inventory Sorting sort button. Don't know if is even possible to fix that.
void tide
candid spear
#

just reassembling my modpack from scratch, i would like to give it another chance