mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-06-26 07:03:22 +00:00
![SquidDev](/assets/img/avatar_default.png)
- textures/{block,item}s -> textures/{block,item} - assets/*/{advancements,lua,recipes} -> data/*/...
15 lines
289 B
Lua
15 lines
289 B
Lua
local tArgs = { ... }
|
|
if #tArgs < 2 then
|
|
print( "Usage: rename <source> <destination>" )
|
|
return
|
|
end
|
|
|
|
local sSource = shell.resolve( tArgs[1] )
|
|
local sDest = shell.resolve( tArgs[2] )
|
|
|
|
if fs.exists( sDest ) then
|
|
printError( "Destination exists" )
|
|
end
|
|
|
|
fs.move( sSource, sDest )
|