Jump to content

Modding - Grass Drops


Petrenko
 Share

Recommended Posts

Heyho,

i decompiled the .lua like in the tutorial and edited it with notepad++, i did not recompile it because SCITE did not work for me.

Because of this:

>luac5.1 -o "grass.luc" "grass.lua"Der Befehl "luac5.1" ist entweder falsch geschrieben oderkonnte nicht gefunden werden.>Exit code: 1

I don't even know if i installed it right, if it needs python or any addons to work with .lua... no idea.

What i changed was the grass.lua prefab

Have a look:

inst.components.pickable:SetUp("cutgrass", "seeds", TUNING.GRASS_REGROW_TIME)

It crashes when i try to harvest.

My idea in the end would be to have a 1 to 5 chance of getting seeds from grass.

I'd like to have this working for the farm_plot, too, which should have a 1 to 5 chance of getting fertilizer.

Thanks in advance for any useful hints!

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...