Page 1 of 1

[Mod] black holes V2.1 [blackholes]

PostPosted: Thu May 12, 2016 21:49
by AiTechEye
Image


This is a sequel mod for the blackholepower (meant to be version 2, but everything got changed a lot)
https://forum.minetest.net/viewtopic.php?f=9&t=13694

The mod gives you completely power over black holes.
You can create and remove them.
The holes will suck up everything around them through a spiral effect (like a vortex)
its impossible to escape blackholes!


Privs:
blackhole: let you create and remove big/small holes
backhole_small: let you create and remove small holes
blackhole_no: wont let you be effected by the holes


Privs:
blackhole: let you create and remove big/small holes
backhole_small: let you create and remove small holes
blackhole_no: wont let you be effected by the holes

Blackhole big:
tool: blackholes:rifle1
can lose and get power
can pick up blocks / stuff around it and grow when the stuff disaper inside (suiciding when too big)

Blackhole big static:
tool: blackholes:rifle1s
can pick up blocks / stuff around it
wont pick blocks in protected areas

Blackhole big static:
tool: blackholes:rifle1s
can pick up blocks / stuff around it
wont pick blocks in protected areas

Backhole gravity rifle:
tool: blackholes:riflebhg
can pick up stuff around it
the stuff will spin around it forever
let you move the hole

Blackhole small:
tool: blackholes:rifle2
losing power
can pick up stuff around it

Blackhole small static:
tool: blackholes:rifle2s
can pick up stuff around it

Backhole small gravity rifle:
tool: blackholes:riflebhgs
can pick up stuff around it
the stuff will spin around it forever
let you move the hole


Licenses: code LGPL 2.1 media CC BY-SA 3.0
Depends: none
Requires: 0.4.13-dev or newer


Image

Re: [Mod] black holes [blackholes]

PostPosted: Fri May 13, 2016 04:11
by TheReaperKing
I love this so much!! I want to use it on my students who are being griefers haha

Re: [Mod] black holes V2 [blackholes]

PostPosted: Fri May 13, 2016 10:12
by AiTechEye
you should try out v2, it gives you power to move everything around you.

Re: [Mod] black holes V2r [blackholes]

PostPosted: Fri May 13, 2016 13:07
by TheReaperKing
Does this require the Dev version? Seems to crash a lot with base 0.4.13.

This was from using the first listed black hole (I think just called black hole rifle):
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
2016-05-13 09:13:29: ERROR[main]: ServerError: Lua: Runtime error from mod '*builtin*' in callback ScriptApiEntity::luaentity_Step(): Double fault error from mod '*builtin*' in callback ScriptApiEntity::luaentity_Punch(): error in error handling
2016-05-13 09:13:29: ERROR[main]: stack traceback:
2016-05-13 09:13:29: ERROR[main]:    [C]: in function 'punch'
2016-05-13 09:13:29: ERROR[main]:    C:\Users\M\Desktop\d\dsfe\bin\..\mods\blackholes\init.lua:123: in function 'kill'
2016-05-13 09:13:29: ERROR[main]:    C:\Users\M\Desktop\d\dsfe\bin\..\mods\blackholes\init.lua:298: in function 'gravity'
2016-05-13 09:13:29: ERROR[main]:    C:\Users\M\Desktop\d\dsfe\bin\..\mods\blackholes\init.lua:404: in function <C:\Users\M\Desktop\d\dsfe\bin\..\mods\blackholes\init.lua:391>


This from using the "last" rifle listed
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
2016-05-13 09:07:52: ERROR[main]: ServerError: Lua: Runtime error from mod '*builtin*' in callback ScriptApiEntity::luaentity_Step(): Double fault error from mod '*builtin*' in callback ScriptApiEntity::luaentity_Punch(): error in error handling
2016-05-13 09:07:52: ERROR[main]: stack traceback:
2016-05-13 09:07:52: ERROR[main]:    [C]: in function 'punch'
2016-05-13 09:07:52: ERROR[main]:    C:\Users\M\Desktop\d\dsfe\bin\..\mods\blackholes\init.lua:123: in function 'kill'
2016-05-13 09:07:52: ERROR[main]:    C:\Users\M\Desktop\d\dsfe\bin\..\mods\blackholes\init.lua:298: in function 'gravity'
2016-05-13 09:07:52: ERROR[main]:    C:\Users\M\Desktop\d\dsfe\bin\..\mods\blackholes\init.lua:457: in function <C:\Users\M\Desktop\d\dsfe\bin\..\mods\blackholes\init.lua:445>

Re: [Mod] black holes V2r [blackholes]

PostPosted: Fri May 13, 2016 13:43
by AiTechEye
I just thought I fixed the last errors!

im shore its something that not supporting this mod
added: Require: 0.4.13 dev or newer

Re: [Mod] black holes V2r [blackholes]

PostPosted: Fri May 13, 2016 21:53
by kaeza
`ObjectRef:punch` is defined in `lua_api.txt` as:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
punch(puncher, time_from_last_punch, tool_capabilities, direction)


In line 123, you have:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
o:punch(o, {full_punch_interval=1.0,damage_groups={fleshy=4}}, "default:bronze_pick", nil)

Re: [Mod] black holes V2.1 [blackholes]

PostPosted: Sat May 14, 2016 07:39
by AiTechEye
i don't know if its solve the problem

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
object:punch(puncher, 1, "default:bronze_pick", nil)


in some cases the blackholes have to punch / kill itself, becaouse nothing else can do it.
and :remove() cause a lot of crashes, so :punch() is used instead

V2.1:
Fixed: damage system
Added: set / restore age to drops
Fixed: crash using the tools
Added: stuff moves y axis faster (up/down)
Fixed: load crash

Re: [Mod] black holes V2.1 [blackholes]

PostPosted: Sat May 14, 2016 15:33
by TheReaperKing
I will test more this weekend but I wanted to tell you that I absolutely love the creativity and extent of the mods that you create. I have had so much fun with your original black hole mod, space, Mars Survive, Portal, etc. I just wanted you to know that your hard work is super appreciated!! By the way the kids, even the teenagers got super excited exploring space. Thanks for that! Take care :)
-Mike

Re: [Mod] black holes V2.1 [blackholes]

PostPosted: Sat May 14, 2016 16:59
by azekill_DIABLO
looks violent....

stop hurting those poor cows!

Re: [Mod] black holes V2.1 [blackholes]

PostPosted: Thu May 26, 2016 01:01
by TheReaperKing
I can't tell you how much fun I've had with these black holes! It is so fun to teleport my misbehaving students into the radius of the black hole and watch them try desperately but ultimate futilely to escape. I was dying laughing today too trying out one of the gravity guns and watching the black hole chasing the students. It's so neat watching the black hole at work. My students and I love just watching it do its thing though sometimes some of them get a little too close and get the full experience, haha. I'm really impressed with what you're able to create in Minetest in general. Keep up the good work and thanks for all the fun :D Take care ^^
-Mike

Re: [Mod] black holes V2.1 [blackholes]

PostPosted: Sun Jul 03, 2016 08:39
by theHalfBloodStanger
Am I right in thinking that this mod changes the direction of gravitational pull?
I am interested in making a stormlight archive themed mod.( The gravity thing is for the windrunners).

Re: [Mod] black holes V2.1 [blackholes]

PostPosted: Sat Jul 09, 2016 17:17
by TailsTheFoxDoes MT
Can the blackhole effect be placed on mobs so everything is sucked toward the mob?

Re: [Mod] black holes V2.1 [blackholes]

PostPosted: Sat Nov 05, 2016 15:37
by Andrey01
This mod is nice!Only blackhole must increase when all sucks and don`t punch him