Jump to content

Recommended Posts

Posted

I'm trying to add two new tiles to the game so that I can turn them into machines in the future. 

I made three files: .tiles, .pack, CB_WorldFiller.lua. Arranged them as follows: image.png.9b0dda5dd141951290dfba26b50efd27.png

 

image.png.fdccf9fec983473105889934b88b634e.png

 

image.png.3ce86f6c2e494ee0cdb0f78e62936c30.png

 

When I load the server (this makes it easier for me to work and test the functionality of the mod, write commands, etc.) with such a set of files, it loads and works. But as soon as I add the following script, everything stops working:

 

module CBitems {
	imports {
		Base
	}

	item Press {
		Type = Moveable,
		DisplayCategory = Furniture,
		Icon = CBpress,
		Weight = 5.0,
		DisplayName = Press,
		WorldObjectSprite = press_test_0,
		}

 

With this script I am trying to create an item (press) so that the player can later craft it, place it and use it for work. What's my mistake? Please tell me, I spent eight hours trying to implement all this.

Posted

I found my mistake. For those interested: I forgot to put `}` at the end of the script. Yeah xD

But I still won’t refuse your advice on creating functioning tiles in the game

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