Crea
Expand Your World
Create and share new mods to expand your worlds: items, monsters, skills, races, realms, game systems. Anything and everything is possible.
Learn More
General questions thread so I stop making new threads for each thing I want to know.
I feel like I'm making way too many new threads so for those of you who are answering my questions I'll just be posting them all in here from now on. Thanks in advance, I've appreciated all the input.

When looking at tiles to create new ores I noticed the files for adamantite and copper were different in a few ways (this extends to a few different ore). First off, there is more files associated with copper than adamantite. Adamantite has just one png file while copper has three. What's the significance of this and how does it effect things in game?

Second, there are a few extra lines in the code of various ores than in other ones. If you open the file for copper you'll see these lines at the bottom:

copperOre.isItem(
classification = "Mineral",
stack = 99,
scraps = ScrapTier.One
)

That adamantite has no equivalent for. Meanwhile adamantite has a line

drops = 'adamantite_ore',

And copper does not have an equivalent to this line.

Being that these are both ores I'm just confused as to why they are coded differently and how this effects their world generation so that when I'm creating a new ore I'm creating it correctly.
< >
Showing 1-3 of 3 comments
Baxter900 4 29 Jun, 2016 @ 9:03am 
So both questions are actually the same one, they just look like different issues. There are two types of blocks in Crea. There are those that when destroyed drop themselves (i.e. dirt) and those that when destroyed, drop a resource (usually ore).

The two examples you gave, copper_ore and adamantite are good examples of this. copper_ore is a block, but when it's destroyed it drops itself, and you can pick it up and use it for crafting or place it back in the world. As such, the code you said was specific to copper_ore is merely declaring it as an item, which allows it to be held and used for crafting.

Meanwhile, adamantite cannot be placed back in the world when destroyed as it's not an item. Instead it drops adamantite_ore (which is an item) when destroyed (adamantite_ore can be found in core/item/materials).

The icons are directly related to this. If it's only a tile that can't be held as an item (like adamantite) then it only needs the tile image. However an item needs two images, an icon which is how it displays in your inventory and a wicon which is how it displays when dropped on the floor in the world. If it's a tile that's also an item, it needs all three.


Hope that helps! As an ending message if you need help modding it's a lot more efficient to go to the Crea discord and ask questions in the modding section. There's almost always 2 or 3 people in there.
An actual duck 29 Jun, 2016 @ 1:17pm 
Crea discord? Does that just mean discussion board?
< >
Showing 1-3 of 3 comments
Per page: 1530 50