Skip to content
This repository was archived by the owner on Oct 16, 2022. It is now read-only.
/ cub2blox Public archive

Simple Lua script that converts Cube World model files (.cub) to Roblox Studio model files (.rbxmx)

License

Notifications You must be signed in to change notification settings

rosemash/cub2blox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

cub2blox

cub2blox is a simple Lua script that converts Cube World model files (.cub) to Roblox Studio model files (.rbxmx).

img

How to Use

lua convert.lua <cubfile> [modelname]

The Lua script takes a single .cub file as an argument and outputs a .rbxmx file in the same directory. Example usage:

lua convert.lua some_blocky_house.cub

You may also optionally provide a string to use as the Roblox model's Name property, for instance:

lua convert.lua iron-greatsword5.cub greatsword

The resulting Roblox model contains all voxels as size 1,1,1 parts with the correct color values. No optimizations are done, so be careful how many blocks are in the Cube World model, as Roblox's engine isn't designed to handle large amount of parts.

About

Simple Lua script that converts Cube World model files (.cub) to Roblox Studio model files (.rbxmx)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages