* Added ability to load .obj files

* remove .mtl file

* Replaced z up with y up in obj because apparently it is better

* Make cubyz support blockbench models correctly

* Not working changes

* Segfault

* Fixed bugs because i felt like it

* Catch up

* stuff

* Stuff

* Catch up

* Remove unneccessary code

* Changes to hopefully fix things

* Remove debug log

* Remove exportModel function

* Updated new blocks

* Fixed some std.log.err calls

* aaa

* I AM SO HAPPY YEEEEESSSSSSSSSSSSSSSSSSSSSSSSS

* im silly

* remove commented line

* Remove useless code

* remove thing

* remove backgrounds

* export function just in case i make an oopsie

* add 1 to indices

* final exportModel fix before i remove

* remove export model

* i forgor to do the uv stuff

* hopefully final exportModel change

* yoo

* final changes

* fixed memory leak
This commit is contained in:
OneAvargeCoder193 2024-09-04 16:18:45 -04:00 committed by GitHub
parent e1d715ce1c
commit 5cb12cc3ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
131 changed files with 603 additions and 197 deletions

View File

@ -6,7 +6,7 @@
],
"absorbedLight" : 0x202830,
"rotation" : "fence",
"model" : "fence",
"model" : "cubyz:fence",
"texture" : "cubyz:birch_fence",
"texture_top" : "cubyz:birch_fence_top",
"texture_bottom" : "cubyz:birch_fence_top"

View File

@ -8,7 +8,7 @@
"degradable" : true,
"alwaysViewThrough" : true,
"absorbedLight" : 0x121012,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:birch_leaves",
"lodReplacement" : "cubyz:birch_leaves_opaque",
"opaqueVariant" : "cubyz:birch_leaves_opaque"

View File

@ -2,6 +2,6 @@
"class" : "leaf",
"hasItem" : false,
"absorbedLight" : 0x121012,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:birch_leaves_opaque"
}

View File

@ -5,7 +5,7 @@
"auto"
],
"rotation" : "log",
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:birch_log",
"texture_top" : "cubyz:birch_log_top",
"texture_bottom" : "cubyz:birch_log_top"

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:birch_planks"
}

View File

@ -5,7 +5,7 @@
"auto"
],
"rotation" : "log",
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:birch_log",
"texture_top" : "cubyz:birch_log",
"texture_bottom" : "cubyz:birch_log_top",

View File

@ -4,6 +4,6 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:cactus"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:chalk/aqua"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:chalk/black"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:chalk/blue"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:chalk/brown"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:chalk/crimson"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:chalk/cyan"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:chalk/dark_grey"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:chalk/green"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:chalk/grey"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:chalk/indigo"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:chalk/lime"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:chalk/magenta"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:chalk/orange"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:chalk/pink"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:chalk/purple"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:chalk/red"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:chalk/violet"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:chalk/viridian"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:chalk/white"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:chalk/yellow"
}

View File

@ -14,6 +14,6 @@
"drops" : [
"cubyz:coal"
],
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:coal_ore"
}

View File

@ -15,7 +15,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:cobblestone",
"rotation" : "stairs",

View File

@ -14,6 +14,6 @@
"drops" : [
"cubyz:diamond"
],
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:diamond_ore"
}

View File

@ -4,6 +4,6 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:dirt"
}

View File

@ -5,7 +5,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:ferrock"
}

View File

@ -6,6 +6,6 @@
"auto"
],
"rotation" : "stairs",
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:ferrock_bricks"
}

View File

@ -11,7 +11,7 @@
"collide": false,
"absorbedLight" : 0x010100,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:fog/blue"
"item": {
"texture" : "fog/blue.png",

View File

@ -11,7 +11,7 @@
"collide": false,
"absorbedLight" : 0x010000,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:fog/cyan"
"item": {
"texture" : "fog/cyan.png",

View File

@ -11,7 +11,7 @@
"collide": false,
"absorbedLight" : 0x010001,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:fog/green"
"item": {
"texture" : "fog/green.png",

View File

@ -11,7 +11,7 @@
"collide": false,
"absorbedLight" : 0x000100,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:fog/magenta"
"item": {
"texture" : "fog/magenta.png",

View File

@ -11,7 +11,7 @@
"collide": false,
"absorbedLight" : 0x000101,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:fog/red"
"item": {
"texture" : "fog/red.png",

View File

@ -11,7 +11,7 @@
"collide": false,
"absorbedLight" : 0x000001,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:fog/yellow"
"item": {
"texture" : "fog/yellow.png",

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:frost",
"blockEntity" : "cubyz.modding.base.MeltableBlockEntity"
}

View File

@ -6,6 +6,6 @@
"auto"
],
"rotation" : "stairs",
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glacite"
}

View File

@ -6,6 +6,6 @@
"auto"
],
"rotation" : "stairs",
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glacite_bricks"
}

View File

@ -7,6 +7,6 @@
"transparent" : true,
"hasBackFace" : true,
"absorbedLight" : 0xe95825,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glass/aqua"
}

View File

@ -7,6 +7,6 @@
"transparent" : true,
"hasBackFace" : true,
"absorbedLight" : 0xe6e6e6,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glass/black"
}

View File

@ -7,6 +7,6 @@
"transparent" : true,
"hasBackFace" : true,
"absorbedLight" : 0xdc923c,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glass/blue"
}

View File

@ -7,6 +7,6 @@
"transparent" : true,
"hasBackFace" : true,
"absorbedLight" : 0x96bdd8,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glass/brown"
}

View File

@ -7,6 +7,6 @@
"transparent" : true,
"hasBackFace" : true,
"absorbedLight" : 0x69e4e1,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glass/crimson"
}

View File

@ -7,6 +7,6 @@
"transparent" : true,
"hasBackFace" : true,
"absorbedLight" : 0xc62031,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glass/cyan"
}

View File

@ -7,6 +7,6 @@
"transparent" : true,
"hasBackFace" : true,
"absorbedLight" : 0xacacac,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glass/dark_grey"
}

View File

@ -7,6 +7,6 @@
"transparent" : true,
"hasBackFace" : true,
"absorbedLight" : 0xd966d9,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glass/green"
}

View File

@ -7,6 +7,6 @@
"transparent" : true,
"hasBackFace" : true,
"absorbedLight" : 0x656565,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glass/grey"
}

View File

@ -7,6 +7,6 @@
"transparent" : true,
"hasBackFace" : true,
"absorbedLight" : 0xd0c16d,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glass/indigo"
}

View File

@ -7,6 +7,6 @@
"transparent" : true,
"hasBackFace" : true,
"absorbedLight" : 0xa03ed0,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glass/lime"
}

View File

@ -7,6 +7,6 @@
"transparent" : true,
"hasBackFace" : true,
"absorbedLight" : 0x0d9f35,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glass/magenta"
}

View File

@ -7,6 +7,6 @@
"transparent" : true,
"hasBackFace" : true,
"absorbedLight" : 0x1183ee,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glass/orange"
}

View File

@ -7,6 +7,6 @@
"transparent" : true,
"hasBackFace" : true,
"absorbedLight" : 0x056830,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glass/pink"
}

View File

@ -7,6 +7,6 @@
"transparent" : true,
"hasBackFace" : true,
"absorbedLight" : 0x83d66a,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glass/purple"
}

View File

@ -7,6 +7,6 @@
"transparent" : true,
"hasBackFace" : true,
"absorbedLight" : 0x2ad6d6,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glass/red"
}

View File

@ -8,6 +8,6 @@
"hasBackFace" : true,
"absorbedLight" : 0x4001ff,
"emittedLight" : 0x80ff00,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glass/uranium"
}

View File

@ -7,6 +7,6 @@
"transparent" : true,
"hasBackFace" : true,
"absorbedLight" : 0x46c345,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glass/violet"
}

View File

@ -7,6 +7,6 @@
"transparent" : true,
"hasBackFace" : true,
"absorbedLight" : 0xf09ad6,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glass/viridian"
}

View File

@ -7,6 +7,6 @@
"transparent" : true,
"hasBackFace" : true,
"absorbedLight" : 0x0f0f0f,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glass/white"
}

View File

@ -7,6 +7,6 @@
"transparent" : true,
"hasBackFace" : true,
"absorbedLight" : 0x0d36f1,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glass/yellow"
}

View File

@ -5,6 +5,6 @@
"none"
],
"emittedLight" : 0x111111,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glow_crystal/black"
}

View File

@ -5,6 +5,6 @@
"none"
],
"emittedLight" : 0x0000ff,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glow_crystal/blue"
}

View File

@ -5,6 +5,6 @@
"none"
],
"emittedLight" : 0x804000,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glow_crystal/brown"
}

View File

@ -5,6 +5,6 @@
"none"
],
"emittedLight" : 0x00ffb0,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glow_crystal/cyan"
}

View File

@ -5,6 +5,6 @@
"none"
],
"emittedLight" : 0x444444,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glow_crystal/dark_gray"
}

View File

@ -5,6 +5,6 @@
"none"
],
"emittedLight" : 0x008000,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glow_crystal/dark_green"
}

View File

@ -5,6 +5,6 @@
"none"
],
"emittedLight" : 0x800000,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glow_crystal/dark_red"
}

View File

@ -5,6 +5,6 @@
"none"
],
"emittedLight" : 0x808080,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glow_crystal/gray"
}

View File

@ -5,6 +5,6 @@
"none"
],
"emittedLight" : 0x00ff00,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glow_crystal/green"
}

View File

@ -5,6 +5,6 @@
"none"
],
"emittedLight" : 0x4040ff,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glow_crystal/light_blue"
}

View File

@ -5,6 +5,6 @@
"none"
],
"emittedLight" : 0xff8000,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glow_crystal/orange"
}

View File

@ -5,6 +5,6 @@
"none"
],
"emittedLight" : 0xff00ff,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glow_crystal/purple"
}

View File

@ -5,6 +5,6 @@
"none"
],
"emittedLight" : 0xff0000,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glow_crystal/red"
}

View File

@ -5,6 +5,6 @@
"none"
],
"emittedLight" : 0x8000ff,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glow_crystal/violet"
}

View File

@ -5,6 +5,6 @@
"none"
],
"emittedLight" : 0xffffff,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glow_crystal/white"
}

View File

@ -5,6 +5,6 @@
"none"
],
"emittedLight" : 0xffff00,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:glow_crystal/yellow"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"cubyz:soil"
],
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:grass_top",
"texture_bottom" : "cubyz:soil"
}

View File

@ -8,7 +8,7 @@
"viewThrough" : true,
"absorbedLight" : 0x121012,
"collide": false,
"model" : "cross",
"model" : "cubyz:cross",
"texture" : "cubyz:grass_vegetation",
"item": {
"texture" : "grass.png",

View File

@ -4,6 +4,6 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:gravel"
}

View File

@ -7,7 +7,7 @@
"transparent" : true,
"hasBackFace" : true,
"absorbedLight" : 0xe95825,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:ice",
"blockEntity" : "cubyz.modding.base.MeltableBlockEntity"
}

View File

@ -6,6 +6,6 @@
"auto"
],
"rotation" : "stairs",
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:iron_block"
}

View File

@ -14,6 +14,6 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:iron_ore"
}

View File

@ -11,6 +11,6 @@
"collide": false,
"absorbedLight" : 0x0084ff,
"emittedLight" : 0xff7b00,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:lava"
}

View File

@ -6,6 +6,6 @@
"auto"
],
"rotation" : "stairs",
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:limestone"
}

View File

@ -5,6 +5,6 @@
"auto"
],
"rotation": "stairs",
"model": "cube",
"model": "cubyz:cube",
"texture": "cubyz:limestone_bricks"
}

View File

@ -5,6 +5,6 @@
"auto"
],
"emittedLight" : 0x884928,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:magma"
}

View File

@ -6,7 +6,7 @@
],
"absorbedLight" : 0x202830,
"rotation" : "fence",
"model" : "fence",
"model" : "cubyz:fence",
"texture" : "cubyz:mahogany_fence",
"texture_top" : "cubyz:mahogany_fence_top",
"texture_bottom" : "cubyz:mahogany_fence_top"

View File

@ -8,7 +8,7 @@
"degradable" : true,
"alwaysViewThrough" : true,
"absorbedLight" : 0x121012,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:mahogany_leaves",
"lodReplacement" : "cubyz:mahogany_leaves_opaque",
"opaqueVariant" : "cubyz:mahogany_leaves_opaque"

View File

@ -2,6 +2,6 @@
"class" : "leaf",
"hasItem" : false,
"absorbedLight" : 0x121012,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:mahogany_leaves_opaque"
}

View File

@ -5,7 +5,7 @@
"auto"
],
"rotation" : "log",
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:mahogany_log",
"texture_top" : "cubyz:mahogany_log_top",
"texture_bottom" : "cubyz:mahogany_log_top"

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"rotation" : "stairs",
"texture" : "cubyz:mahogany_planks"
}

View File

@ -5,7 +5,7 @@
"auto"
],
"rotation" : "log",
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:mahogany_log",
"texture_top" : "cubyz:mahogany_log",
"texture_bottom" : "cubyz:mahogany_log_top"

View File

@ -5,6 +5,6 @@
"auto"
],
"rotation": "stairs",
"model": "cube",
"model": "cubyz:cube",
"texture": "cubyz:marble"
}

View File

@ -5,6 +5,6 @@
"auto"
],
"rotation": "stairs",
"model": "cube",
"model": "cubyz:cube",
"texture": "cubyz:marble_bricks"
}

View File

@ -4,7 +4,7 @@
"drops" : [
"auto"
],
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:mossy_cobblestone",
"rotation" : "stairs",

View File

@ -9,6 +9,6 @@
"degradable" : false,
"alwaysViewThrough" : true,
"absorbedLight" : 0x121012,
"model" : "cube",
"model" : "cubyz:cube",
"texture" : "cubyz:oak_leaves"
}

View File

@ -6,7 +6,7 @@
],
"absorbedLight" : 0x202830,
"rotation" : "fence",
"model" : "fence",
"model" : "cubyz:fence",
"texture" : "cubyz:oak_fence",
"texture_top" : "cubyz:oak_fence_top",
"texture_bottom" : "cubyz:oak_fence_top"

Some files were not shown because too many files have changed in this diff Show More