Page 1 of 1

[Mod] Gravitygun 2 [gravitygun]

PostPosted: Sat Feb 13, 2016 19:05
by AiTechEye
Image


The gravity gun, that can pick up, and throw away stuff :D

left click (use) to pick
up right click (place) on a holded object to throw away
you can craft the tool to a placeable block

Using 3D models in hand (basicly nodes) (becaouse same kind of mod does it in minecraft + more realistic)
The gravity guns using a auto glitch fix, thats makes static control over the object, (the glitches is caused by heavy models)
cast stuff can destroy blocks (fly away or create drops) [if enable_gravitygun_throw_stuff_destroys is true]


Gravitygun
Can can pick up, place and throw away stuff / blocks
(players to if enable_gravitygun_requires_privilege_to_hold_players is false or have the gravitygun privilege)

Gravitygun Overloaded:
cant hold stuff, but used a very high force power to throw away evyerthing around you, even the blocks.
requires gravitygun2 (privilege as default)

Gravitygun basic:
Can only pick up and place stuff (but still usefull)
(players to if enable_gravitygun_requires_privilege_to_hold_players is false or have the gravitygun privilege)


Licenses: code and media CC0 (you can do what ever you want with this mod and)
Depends: none

Re: [Mod] gravitygun 0.9 (beta)

PostPosted: Sat Feb 13, 2016 19:24
by prof-turbo
Portal and then Gravity Gun... You're a Valve lover ! :)

Re: [Mod] gravitygun 0.9 (beta)

PostPosted: Sat Feb 13, 2016 19:28
by AiTechEye
I think minetest needed this stuff :-)


Dont forget Diplazer,(the advaced build tool) [like a worldedit in a single tool]

Re: [Mod] gravitygun 0.9 (beta)

PostPosted: Sat Feb 13, 2016 21:44
by mahmutelmas06
Awesome

Re: [Mod] gravitygun 0.9 (beta)

PostPosted: Sun Feb 14, 2016 01:54
by benrob0329
What?!?

Awesome!!!!!

Re: [Mod] gravitygun 0.9 (beta)

PostPosted: Sun Feb 14, 2016 21:17
by TailsTheFoxDoes MT
Yeah, i'm TailsTheFox, i'm getting this mod and using it on Ristar. He be freaked out!!!

Re: [Mod] gravitygun 0.99 (beta)

PostPosted: Mon Feb 15, 2016 23:55
by TailsTheFoxDoes MT
Uh is this compatible with prehistoric mod, the game crashed when i threw a dinosaur.

Re: [Mod] gravitygun 0.99 (beta)

PostPosted: Tue Feb 16, 2016 13:42
by AiTechEye
the jurassic mod just messup for me, so i cant test it, but it should not crash.

next time look for the error, and line so i have any idea where it is

Re: [Mod] gravitygun

PostPosted: Mon Apr 04, 2016 13:18
by azekill_DIABLO
+8888 gravity shard!

just a question:
is the gun you are holding on the screenshots is a 3d model or a 2d texture?
(for the eyes of the other people)

Re: [Mod] gravitygun

PostPosted: Mon Apr 04, 2016 15:18
by AiTechEye
Its a block with a 3d model, blocks can have same properties as tools / craft items.

Re: [Mod] gravitygun

PostPosted: Thu Apr 07, 2016 05:32
by Inocudom
This is one of those mods that can really add a whole new level of fun to Minetest. I approve!

Re: [Mod] Gravitygun [gravitygun]

PostPosted: Wed Nov 09, 2016 22:16
by maikerumine
Awe man? Where is the download link?

Re: [Mod] Gravitygun [gravitygun]

PostPosted: Sun Nov 13, 2016 13:27
by AiTechEye
Fixed
i suspected the license could messup for some users, from the old program i used.
So the models are removed.

Re: [Mod] Gravitygun [gravitygun]

PostPosted: Tue Nov 15, 2016 15:53
by maikerumine
UjEdwin wrote:Fixed
i suspected the license could messup for some users, from the old program i used.
So the models are removed.


I found a quick bug to fix:

When multiple drops are involved with a node, the game crashes as it only looks for a max of 2 drops.

See code for pumpkin, drop up to 9 slices:
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
minetest.register_node("farming:pumpkin", {
   description = "Pumpkin",
   tiles = {
      "farming_pumpkin_top.png",
      "farming_pumpkin_top.png",
      "farming_pumpkin_side.png"
   },
   groups = {
      choppy = 1, oddly_breakable_by_hand = 1,
      flammable = 2, plant = 1
   },
   drop = {
      items = {
         {items = {'farming:pumpkin_slice 9'}, rarity = 1},
      }
   },
   sounds = default.node_sound_wood_defaults(),
})\


The line of code to be fixed is:

in entities.lua
function gravitygun_spawn_block(pos)

and the code to be fixed is here:
line 220:
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
   if node.drop=="" or node.drop==nil then
      gravitygun_power.drop=node.name
   elseif node.drop.items and node.drop.items[1].items then
      if minetest.registered_nodes[node.drop.items[2].items[1]] then
         gravitygun_power.drop=node.drop.items[2].items[1]
      elseif minetest.registered_nodes[node.drop.items[1].items[1]] then
         gravitygun_power.drop=node.drop
      else
         gravitygun_power.drop=node.drop
      end
   else
      gravitygun_power.drop=node.drop
   end


You may need to increase the list max of dropped items.
or add if n>2 then node.drop{1} or something.

Thanks for this mod, it is really cool and fun to use!!

Re: [Mod] Gravitygun 2 [gravitygun]

PostPosted: Wed Nov 16, 2016 15:06
by Andrey01
Gravitygun - is that the pistols?

Re: [Mod] Gravitygun 2 [gravitygun]

PostPosted: Wed Nov 16, 2016 16:16
by AiTechEye
Kinda, it can be used as a weapon and tool

ggun in MC: https://www.youtube.com/watch?v=XetXdbqxu1k&t=87
This ggun for minetest is a lot better then mc version, cuz you can pick up almost everything and push far away, it also hurts unprotected blocks.
the blue/overloaded version can also push away many objects and blocks at same time (very powerfull)

OMG

PostPosted: Sat Dec 03, 2016 10:41
by Samthecool5098
i just downloaded i will tell "the comment" later