Jump to content

Recommended Posts

Hi everyone,

for trees like Elderwood, the burnt version is simply called elderwood_burnt. However, this naming convention doesn’t seem to apply to Palmcone trees. Does anyone know the correct prefab name for a burnt Palmcone tree?

I’m trying to make the burnt Palmcone tree drop a custom item in addition to charcoal.

Thanks in advance for your help!

On 5/11/2025 at 5:18 PM, Snoopy2016 said:

Hi everyone,

for trees like Elderwood, the burnt version is simply called elderwood_burnt. However, this naming convention doesn’t seem to apply to Palmcone trees. Does anyone know the correct prefab name for a burnt Palmcone tree?

I’m trying to make the burnt Palmcone tree drop a custom item in addition to charcoal.

Thanks in advance for your help!

I checked, and indeed there is no prefab for a burnt palmconetree. If you want, you can simulate it with this console command:

local a = c_spawn("palmconetree") a:AddTag("burnt")

To make it drop additional items, use this code:
 

AddPrefabPostInit("world", function(inst)
	if not TheWorld.ismastersim then
		return inst
	end
	if LootTables.palmconetree_burnt then
		table.insert(LootTables.palmconetree_burnt, { "log", 1 })
	end
end)

 

If I remember correctly, a burnt tree, like most prefabs, has its animation and properties tied to the original prefab, they're basically just the same thing. I'm also fairly certain that there is a property that defines what they drop when burned.

Unfortunately, I don't have access to the code right now, but I wanted to help point you in the right direction. Or at least what I think the right direction is.

  • Like 1

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
×
  • Create New...