Jump to content

Code for can't pick up chester bone


Recommended Posts

Well I find a code for can't pick up the bone but now i need a code for can't open chester. I have this code for don't starve but i don't know how to make it able to Don't starve together but here is the code.

AddPrefabPostInit("chester", function(inst)
	if GetPlayer().prefab == "alishia" then
		inst:RemoveComponent("container")
		inst:RemoveTag("chester")
	end
end)

in modmain.lua

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...