Mods / TentBag-Reworked

Tags: #Utility
Author: safwyl
Side: Both
Created: Mar 14th at 2:29 AM
Last modified: Apr 6th at 4:01 AM
Downloads: 6067
Follow Unfollow 152

Latest release (for Vintage Story 1.20.6 - 1.20.7 and 1.20.8 - 1.20.10, outdated):
tentbagreworked_3.1.1.zip  1-click install


Summary:

Rework of BillyGalbreath's VS-Tentbag to scale satiety cost of packing/unpacking based on the number of solid blocks in the "tent".

This mod allows for the user to pack an in game build within a pre-determined maximum size into a "TentBag" to be quickly re-deployed in a separate location.

Changes:

  • BuildEffort is per solid block
  • When packing/unpacking the mod counts solid blocks (not air) and multiplies this by build effort to reduce the player's satiety
  • If the player's remaining satiety is lower than the required amount to pack/unpack then the game will show an error to the player
  • Creative mode disables satiety check before packing/unpacking
  • New bag shape and textures (use colored linen to make colored bags)
  • Schematics are saved to disk with a rolling count of 10 per user (saved server side in ModData/TentBagReworked)
  • Waypoint drop on unpack, removal on pack

ATTENTION: Re: Version 3.1.0+


Version 3.1.0 is a major refactor fo the code base, I've moved the entire code base to a different modid and namespace to avoid conflicts with BillyGalbreath's version of the mod or any other TentBag mods that may come to be.

As such your existing bag will cease to work if you remove an earlier version of the game!

Steps to migrate to the new version:

  1. Install 3.1.0 alongside 3.0.5 (or earlier versions)
  2. Give players (or have them craft) the new tentbag item (linen duffle bag item)
  3. Place any packed tents from 3.0.5 version (blue plaid cloth item)
  4. Pickup the tent with the new 3.1.0 version (linen duffle)
  5. Dispose of the old tentbag item
  6. Remove 3.0.5 from client/server and restart

 


Configurable options:

  • Build Radius
  • Build Height
  • Build Effort (satiety cost per block)
  • Clear Rocks/Grass
  • Copy Mode (copies build rather than picking it up)
  • Auto Pickup of Tent Item
  • Error Highlight Color
  • Waypoint Drop
  • Waypoint Icon
  • Pin Waypoint
  • MaxSchematicHistory (rolling files saved to disk per user)
  • Chat Notification with block count and saturation expense
  • Allow List Mode (only allows packing of explicitly defined blocks)
  • Banned Blocks
  • Allowed Blocks (block whitelist for allowListMode, ignored otherwise)

Sample (Default) Config:

{
    "maxRadius": 10,
    "maxHeight": 20,
    "buildEffort": 3.0,
    "requireSolidGround": false,
    "grabFloor": true,
    "copyMode": false,
    "replacePlantsAndRocks": true,
    "putTentInInventoryOnUse": true,
    "highlightErrorColor": "#2FFF0000",
    "dropWaypoint": true,
    "waypointIcon": "home",
    "waypointColor": "crimson",
    "pinWaypoint": true,
    "maxSchematicHistory": 10,
    "allowListMode": false,
    "showChatNotification": true,
    "bannedBlocks": [
        "game:log-grown-*",
        "game:log-resin-*",
        "game:log-resinharvested-*",
        "game:statictranslocator-*",
        "game:teleporterbase",
        "game:crop-*",
        "game:herb-*",
        "game:mushroom-*",
        "game:smallberrybush-*",
        "game:bigberrybush-*",
        "game:water-*",
        "game:lava-*",
        "game:farmland-*",
        "game:rawclay-*",
        "game:peat-*",
        "game:rock-*",
        "game:ore-*",
        "game:crock-burned-*",
        "game:bowl-meal",
        "game:claypot-cooked",
        "game:anvil-*",
        "game:forge"
    ],
    "allowedBlocks": [
         "game:soil-*"
    ]
}
 

Known Issues:

  • Chandeliers and Paper Lanterns do not relight properly when unpacking
  • Grass takes forever to grow back (if it does at all), this seems to be related to the base game not something this mod does

To-Do:

  • AllowListMode: ability to swap between blacklist and whitelist for blocks DONE!
  • Fix bug where chunk relighting can sometimes crash the game/server DONE! (please let me know if further issues persist)

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
3.1.1 tentbagreworked
1.20.6 - 1.20.7 1.20.8 - 1.20.10
4311 Apr 6th at 4:01 AM tentbagreworked_3.1.1.zip 1-click install
  • Fix config not working in single player
  • Rework config file watcher and instantiation
3.1.0 tentbagreworked 134 Apr 4th at 9:09 PM tentbagreworked_3.1.0.zip 1-click install
  • Major update, recommended not to remove previous version until all players on your server are able to migrate to the new bag as I've changed the modid and namespaces to avoid conflicts with other mods
  • This version can coexist with 3.0.5 to allow players to migrate to the new bag (just make the new bag, place your old tent, pickup with the new bag)
  • New bag shape/textures!
  • Bag variants (all the colors!)
  • Waypoint drop rework
  • Waypoint removal on pickup
  • Schematic save to disk on pickup (rolling 10 (configurable) schematics per player, saved server side in ModData/TentBagReworked)
3.0.5 tentbag-reworked 1093 Mar 23rd at 11:34 PM TentBag-Reworked_3.0.5.zip 1-click install

- Changed dependencies to 1.20.*, this will work with any version 1.20.0 or above

3.0.4 tentbag-reworked 145 Mar 22nd at 5:06 PM TentBag-Reworked_3.0.4.zip 1-click install
  • Updated compatibility to 1.20.6
  • Fixed CTD on unpack with relighting (chandeliers and paper lanterns sometimes do not relight properly, replacing them fixes their lighting)
  • Added chat notification on pack/unpack (configurable)
  • Added waypoint drop on pack/unpack (configurable)
  • Added copy mode (configurable)
3.0.2 tentbag-reworked 282 Mar 15th at 4:08 PM TentBag-Reworked_3.0.2.zip 1-click install
  • AllowList functionality added
  • Prevent packing of empty areas (all air blocks)
  • Disable saturation consumption in creative mode
3.0.1 tentbag-reworked 100 Mar 14th at 9:02 PM Empty TentBag-Reworked_3.0.1.zip 1-click install

54 Comments (oldest first | newest first)

💬 Ruina, Nov 3rd at 3:27 PM (modified Nov 3rd at 3:36 PM)

Is there any fix for Cellar losing the cellar status?

💬 BillyGalbreath, Nov 2nd at 8:58 PM

Ruina

I'm not really sure why, but those were the banned blocks from the original tentbag in jakecool's useful stuff mod. I figure jake did some testing and blacklisted them for a reason.

💬 Ruina, Nov 1st at 10:18 AM

Why is anvil and forge black listed?

💬 El_Neuman, Oct 10th at 7:49 AM

One of the best mods, still working on 1.21.4!)

💬 eerino, Oct 3rd at 10:42 PM

is it possible to have crops growing in/on the structure? 

💬 El_Neuman, Sep 27th at 3:30 PM

Here's updated russian translation! Thanks for amazing mod))

 
 

 

 

💬 eerino, Sep 25th at 10:02 PM

working in 1.21 creative. 

💬 Pankar, Sep 20th at 3:02 PM

I have some strange question. Anyone know server with this mod?

💬 El_Neuman, Sep 16th at 7:05 PM

I really waiting for an update :(

💬 El_Neuman, Aug 19th at 8:47 PM

Love it, love it, love it! One of my favorite mods, it's so atmospheric

💬 SoulReaperz, Aug 12th at 6:01 PM (modified Aug 12th at 8:39 PM)

safwyl

Game Version 1.20.12 Multiplayer
Mod Version 3.1.1

i have changed the size of the tent bags to be greater than default, wanting bigger bags
the issue is it is not properly reloading the packed structure, i have initially tried a radius of 10(21x21 area) with height of 10(plus floor) and radius of 7(15x15 area) with height of 7(plus floor)
both situations only half the structure renders in, the other half does not and you have to force render it by placing stuff or relaunching the game
all stuff is still there and functional, just the rendering issue of half of the tent that requires a reload to get it to render

also an auto remove map marker when you pick up the tent location aswell if at all possible

 

💬 FatherSarge, Aug 11th at 4:41 PM (modified Aug 11th at 4:52 PM)

safwyl

 

If you are still working on this, it looks like something was changed in 1.21 that stops your mod from correctly recognizing item/blocks (bowls, crocks, with or without food, etc). Would be great if you could look into that, as well as if the mod can detect this stuff when it is on a shelf. I really want to add a large number of these types of things to make camps/tents a bit more involved to setup instead of being a shulker box. Also, I have tested the reinforcement thing RaptorMother asked about, it would be nice to be able to reinforce and place locks on doors for when drifters can open doors (danatweaks thing I believe) but this is just a wishlist item. If you do decide to add this, compat with the Thievery mod would be cool too! https://news.kalataka.ru/thievery

 

And I have no idea if it's possible, but a ghost of the structure appearing and the ability to rotate the placement is something I've always wanted for this mod.
Last wishlist I swear, the tentbag item is extremely cool, would love to be able to place them on the ground.

 

 

RaptorMother

It does not, currently. The reinforced states are not saved.

💬 RaptorMother, Aug 3rd at 10:43 AM

Hai! Got a question for usage on servers: does the tentbag respect reinforcements? As is: does a block reinforced to someone in a group you're not in prevent it being packed up?

💬 Ovadex, Jul 27th at 2:30 AM

I've noticed an odd bug. When I built my tent it was registering as a cellar. Once I packed it and placed it again it was registering as a greenhouse. When I relog it shows as a cellar again till I repack and place.

💬 Shinji170981, Jun 8th at 9:54 AM

Found a weird bug. I placed a crafted crate in my tentbag and the capacity was changed from 1280 items to 1024 after packing and unpacking it.

I am playing on an SMP with 1.20.11 and version 3.1.1.

💬 Zero0hm, Jun 7th at 8:03 PM

Torches also do not relight properly when unpacking.

💬 Legentus, May 27th at 6:54 PM

Mobs are able to go through any door I place after placing down my tent.

More specifically, if there is a door that is part of the tent when I pack it up, placing the tent causes the doors to not block entry to entities; they walk right through it and can throw rocks through it like it isn't there.

💬 safwyl , May 13th at 12:21 AM

Pamela the other tentbag mod? no, they are mutually exclusive since they use the same recipe

💬 Pamela, May 12th at 8:55 PM

Can I not use this mod with the original?  I can't get it to craft.....just goes to the old one.

💬 Pamela, May 11th at 6:42 PM

I totally removed the ban list. And I'm not using allow mode.

💬 safwyl , May 10th at 8:55 PM

Pamela can you share your config? Perhaps one of the floor blocks was a banned block? or if youre using allowlist mode it might not have been in the allowlist

💬 Pamela, May 10th at 7:26 PM

So, I removed all the banned blocks, and that didn't do it.  I had set the config to pick up the floor, but that was the issue.  When I set that to false, it worked.

💬 safwyl , May 10th at 6:44 PM

Pamela make sure there are no banned blocks within the outer bounds of your max size. even if its outside what you built your tent at it will prevent anything from being picked up. Your tent doesn't need to be the max size specified but you do need to make sure the max area specified is clear

💬 Pamela, May 10th at 6:00 PM

I can't pick up my tent bag.  My dimensions are set to 17 x 20 and my tent is 11 x 11 x 4.  What is the problem?

💬 Pamela, May 10th at 5:02 PM

So, I'm having an issue with picking up my tent.  I set the config file to 17 x 20 and BuildEffot to 0.1.  My tent is 11 x 11 x 4, but I can't pick it up.  Does it HAVE to be the size specified in the config file?  It's just a right click to pick it up, correct?

💬 safwyl , May 5th at 8:41 PM

Excarnis %appdata%\VintagestoryData\ModConfig\tentbagreworked.json

💬 Excarnis, May 5th at 1:11 PM

Hey, I might seem like a total noob, but where do I edit or place the config file ?

💬 safwyl , Apr 14th at 6:18 PM

Warlord_Hlt

You'll need to load it in via creative worldedit mode. Go to creative, hit ~ key to open the world edit menu. Load the schematic and place it. If you're not an admin on your server you'll need to ask them to bring it in for you

💬 Warlord_Hlt, Apr 14th at 1:11 AM

Thanks I've found it but how do i make it my current file for ingame??

💬 safwyl , Apr 14th at 12:52 AM

Warlord_Hlt

If you're using the latest version check ModData/TentbagReworked folder for the schematics. They are saved on pack per user

💬 Warlord_Hlt, Apr 13th at 1:53 PM

any way to get back tent back save? when placed at world height limit entire buidling with chests and all disappeared.

💬 Zer0Pig316, Apr 11th at 10:54 PM

safwyl

Cheers! The config edits fine now. Thank you for the fix. BTW I love the new tent bag model.

💬 Katt19, Apr 8th at 7:38 PM

Can the last version of the mod be compatible with 1.20.6? when I start my save it says the mod requires 1.20.7 (I can't update the game yet because of other mods)

💬 safwyl , Apr 8th at 1:29 AM

Tisajokt

For multiblock blocks like doors, gates, trunks you'll want to add "game:mulitblock-*" to your allow list. A wildcard like this should be fine since the origin block for the item will still need to be indicated to pick up the whole block.

💬 Tisajokt, Apr 6th at 5:35 PM

safwyl

Happy to report that the config works now! I am now encountering a different issue; when I try to include doors in the whitelist, it seems to reject the top half of the door. What code do I need to include in the whitelist to allow the full door? (And I haven't tested it, but might this happen for the secondary halves of beds and trunks as well?)

💬 safwyl , Apr 6th at 4:01 AM

Tisajokt Zer0Pig316

Figured out the issue with the config not working in single player, the original code I forked was only instantiating the config server side so it never looks for client side changes. As of version 3.1.1 I've reworked the file watcher and config instantiation so it should now work in both single and multiplayer. Please give it a shot and let me know!

💬 Tisajokt, Apr 5th at 3:41 AM

Haven't updated to the new version yet, but I just want to put out there that I am also having the issue of the config file not affecting the mod's behavior, in singleplayer. Tried adding a whitelist and changing radius, but no change to the tent bag's behavior.

💬 safwyl , Apr 4th at 4:35 PM

Zer0Pig316

After some tests with the calendar speed set at 1000x it seems grass just doesnt grow back in general. I removed grass with the tent bag and by hand and both didnt seem to come back even after years. I'm wondering if its something to do with how the game handles grass propagation (or rather doesnt). I did however see that very very slowly exposed dirt blocks will grow a grass texture on them (not tall grass), but its like over in game years.

💬 safwyl , Apr 4th at 2:43 AM

CHR3S Paddon

Unfortunately, the schematic isn't saved to disk as a schematic json but is stored in the TentBag item's attributes (this is a carryover from the original mod). I'll look at making a backup at the time of pack to a json in case this occurs in the future

Zer0Pig316

1. Not sure why the grass wouldn't grow again. I'll fiddle with how its clearing grass/rocks and see if theres something to it. If I had to guess it's storing a permanent air block in that location. Have you tried placing blocks manually above the area and then removing them? Just out of curiosity
2. Are you playing on a dedicated server? Or single player instance? If on a server you have to edit the config in the server's ModConfig folder. Client edits won't work there. Do you see the config changed notification in the log? I'll try messing with the config in single player, I haven't done much in SP with this mod. No idea if notepad++ is at fault, doubt it, but I use visual studio code as my primary config editor.

💬 Paddon, Apr 2nd at 3:46 PM

I've got the same issue as CHR3S - server seemed to desync and according to the logs, put it in a chest halfway across the world that had crashed my game earlier, it's empty now weirdly. I'm hoping the schematics still exist somewhere for me to spawn it back in

💬 CHR3S, Mar 30th at 4:48 PM

Hello, I am trying to retrieve my tent due to it dissapearing somehow (It was in my tentbag before but now it's gone). Does anybody know where these Schematics or the files for the contents of a tent are stored so that you can restore it?

💬 Zer0Pig316, Mar 30th at 4:10 AM

safwyl Fairly new to the game but I absolutely love this mod and the rp elements it adds for me. Thank you for sharing the rework.

A couple things I noticed:

  1. The grass never regrows where I place the tent. Even after I dug up the soil blocks and replaced them, after a full month no grass grew. I know this is a small thing probably for most but it niggles at me to think that somehow that area in the chunk has been permenantly altered to some degree. I also thought I would mention it as it relates to the second thing.
  2. I tried editing the modconfig JSON to change replace rocks and plants and drop waypoint to false and while it made and saved the edits, it doesn't seem to translate or change the mod in-game. A little research and I can see this was a persistant problem in the mod this is a rework of. Am I doing something wrong? I am definately no expert but have edited mod files in other games using notepad++ before without issue. Is anyone else experiencing this?
💬 SteelFire, Mar 24th at 12:11 AM

safwyl

you're a super star! Thanks!

💬 safwyl , Mar 23rd at 11:35 PM

SteelFire

I've changed the dependency in the modinfo.json with v3.0.5 so you shouldn't have issues, it may yell about not finding the game version but you can safely ignore. It should work with any version of the game later than 1.20.0

💬 SteelFire, Mar 22nd at 9:38 PM

Can we get this to be 1.20.5 dependency also, instead of just 1.20.6? 1.20.6 is a server-side update that clients don't technically need; especially single player clients.

💬 safwyl , Mar 22nd at 5:06 PM

Murazama

should be fixed now

💬 Murazama, Mar 16th at 5:33 AM

Crashed entire server placing tent bag :(

 

Edit 1: Seems to be lighting error. :+(

Edit 2: Much like Britney Spears: Oops, I did it again.

Testing to see if being further from our predesignated safe space will break it or not. Might be something with Paper Lanterns / Lanterns causing lighting errors when near other major light sources?

 

Edit 3: Seems to be a relighting issue when going to a chunk with prior lighting.

💬 safwyl , Mar 15th at 4:11 PM

Dythanos

Allow list mode has been added

💬 safwyl , Mar 15th at 2:52 PM

LiothTheBrave

I've been able to successfully change the size up to a radius of 50 blocks without issue, I didn't change the code related to size though so I'm not sure why it wouldn't work with the other version.

💬 LiothTheBrave, Mar 15th at 4:36 AM

Is it possible to change the size now as well? Changing those parameters in the old mod's config didn't actually do anything.

💬 safwyl , Mar 14th at 9:11 PM

LiothTheBrave

It should work fine for 1.20.4, I set the minimum required version initially but I've updated it to 1.20.4

Dythanos 

I'll look into that and see whats feasible

💬 LiothTheBrave, Mar 14th at 8:58 PM

Update to 1.20.4 please.

💬 Dythanos, Mar 14th at 3:17 PM

Would you consider making the ban list a white list instead or have a configuration option for which to use?

💬 Annastasija, Mar 14th at 6:51 AM

screen shots? Info of any kind?

 (edit comment delete)
Основной веб-сайт | Почтовый сервер | FTP сервер | Административная панель | API интерфейс | Content Delivery Network | Статические файлы | Ресурсы сайта | Изображения | Файловое хранилище | Блог | Интернет-магазин | Техническая поддержка | Справочная система | Документация | Форум | Новости | Загрузки | Демонстрация | Тестовая среда | Приложение | Медиа контент | Разработка | Промежуточная среда | Бета версия | Безопасная зона | Вход в систему | Панель управления | Портал | Система управления контентом