Jump to content

Recommended Posts

I want to create item can place on ground and i tried write code, but i the game can't load for my mod. Maybe i writed wrong code,so this is my code. I don't have much material about code item can place. This is my frist time i create mod item :wilson_hurt:

modmain.lua pot01.lua pot01_placer.lua

You don't need placer file. Delete it. I won't be looking into modmain.lua, but your prefab file. First file will be with comments. And consider yourself reading more game files. Programming is more about reading rather writing, go to scripts/prefabs and choose something similar to what you want. I took homesign.lua. 

pot01_comments.lua pot01_fixed.lua

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