Jump to content

loot.xml / lootcontainer ID


zztong

Recommended Posts

I recently started messing with blocks.xml and loot.xml and I've got a question...

 

In loot.xml, the lootcontainer tags have an ID attribute that appears to be a unique ID between 0 and 1023. TFP declarations appear to be from 1-157 and 500-551. It seems easy for a modder to pick ID numbers that don't collide with TFP.

 

Is there a convention modders are using to avoid colliding with each other?

Link to comment
Share on other sites

ID numbers no longer matter. They can be omitted from the code. Loot is called from the lootcontainer name now. As far as not colliding with others, easiest way would be to add your name or some kind of prefix to it. IE: ZZTongBirdnest... Doubt anyone would ever come up with an identical name. lol

Link to comment
Share on other sites

According to practice is better use prefix-tag (3-4 letters) + vanilla name. Like this "tdmDoorMetalVariantHelper"
This this applies to both groups and items. If you think about UX. For example if u created some items prefix tag it`s help arrange this items near.

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