Page 1 of 1

Who can fix the errors from my mods?

PostPosted: Sun Mar 19, 2017 15:08
by Andrey01
I have errors from my mods Drink/Sweet machines: 1.Every machine looks like one block. 2.It can not drop more of one object.

Drink machine:
viewtopic.php?f=9&t=16599

Sweet machine:
viewtopic.php?f=9&t=16499

Please, if who can do it you will tell me about it straightly here in this topic

Re: Who can fix the errors from my mods?

PostPosted: Mon Mar 20, 2017 19:56
by AiTechEye
Thats easy.

in the "sweet_machine:sweet_machine" and "drink_machine:drink_machine"

remove:
selection_box = svm_cbox,
collision_box = svm_cbox,

add:
drawtype="mesh",

collision_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 1.5, 0.5}
},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 1.5, 0.5}
},

in drink_machine\init.lua line: 46
change "pos2_drop" to "pos_drop"
because the variable "pos2_drop" doesn't exist

Re: Who can fix the errors from my mods?

PostPosted: Mon Mar 27, 2017 17:37
by Andrey01
I have done all right, but the texture uncorrectly looks like:
Outside view
Image
Inside view
Image

Re: Who can fix the errors from my mods?

PostPosted: Tue Mar 28, 2017 15:17
by AiTechEye
add

paramtype="light",
paramtype2 = "facedir",

Re: Who can fix the errors from my mods?

PostPosted: Thu Mar 30, 2017 18:33
by Andrey01
Thank you for helping, AiTechEye!