mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 11:17:05 -04:00
Fix the python script so it detects \r correctly.
This commit is contained in:
parent
48bf2a6d0a
commit
1ba81dc62f
@ -1,11 +1,11 @@
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0xe95825,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/aqua"
|
||||
}
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0xe95825,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/aqua"
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0xe6e6e6,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/black"
|
||||
}
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0xe6e6e6,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/black"
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0xdc923c,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/blue"
|
||||
}
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0xdc923c,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/blue"
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x96bdd8,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/brown"
|
||||
}
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x96bdd8,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/brown"
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x69e4e1,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/crimson"
|
||||
}
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x69e4e1,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/crimson"
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0xc62031,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/cyan"
|
||||
}
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0xc62031,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/cyan"
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0xacacac,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/dark_grey"
|
||||
}
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0xacacac,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/dark_grey"
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0xd966d9,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/green"
|
||||
}
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0xd966d9,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/green"
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x656565,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/grey"
|
||||
}
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x656565,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/grey"
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0xd0c16d,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/indigo"
|
||||
}
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0xd0c16d,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/indigo"
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0xa03ed0,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/lime"
|
||||
}
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0xa03ed0,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/lime"
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x0d9f35,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/magenta"
|
||||
}
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x0d9f35,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/magenta"
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x1183ee,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/orange"
|
||||
}
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x1183ee,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/orange"
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x056830,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/pink"
|
||||
}
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x056830,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/pink"
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x83d66a,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/purple"
|
||||
}
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x83d66a,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/purple"
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x2ad6d6,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/red"
|
||||
}
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x2ad6d6,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/red"
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x4001ff,
|
||||
"emittedLight" : 0x80ff00,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/uranium"
|
||||
}
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x4001ff,
|
||||
"emittedLight" : 0x80ff00,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/uranium"
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x46c345,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/violet"
|
||||
}
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x46c345,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/violet"
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0xf09ad6,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/viridian"
|
||||
}
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0xf09ad6,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/viridian"
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x0f0f0f,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/white"
|
||||
}
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x0f0f0f,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/white"
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x0d36f1,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/yellow"
|
||||
}
|
||||
{
|
||||
"class" : "stone",
|
||||
"hardness" : 2,
|
||||
"drops" : [
|
||||
"none"
|
||||
],
|
||||
"transparent" : true,
|
||||
"absorbedLight" : 0x0d36f1,
|
||||
"model" : "cube",
|
||||
"texture" : "cubyz:glass/yellow"
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ for subdir, dirs, files in os.walk("."):
|
||||
if filepath.startswith("./zig-cache"): continue
|
||||
|
||||
if filepath.endswith(".json") or filepath.endswith(".zig") or filepath.endswith(".py") or filepath.endswith(".zon") or filepath.endswith(".vs") or filepath.endswith(".fs") or filepath.endswith(".glsl"):
|
||||
with open(filepath, "r") as f:
|
||||
with open(filepath, "r", newline = '') as f:
|
||||
string = f.read()
|
||||
line = 1
|
||||
lineStart = True
|
||||
|
Loading…
x
Reference in New Issue
Block a user