[Mod] Gravitygun 2 [gravitygun]

Post Reply
User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

[Mod] Gravitygun 2 [gravitygun]

by AiTechEye » Post

Image

Licenses: code: LGPL-2.1, media: CC BY-SA-4.0
Source
Download
Depends: none

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)




Image
Image
Attachments
screenshot_20190217_202603.png
screenshot_20190217_202603.png (282.89 KiB) Viewed 1512 times
screenshot_20190217_202322.png
screenshot_20190217_202322.png (283.01 KiB) Viewed 1512 times
screenshot_20190217_202039.png
screenshot_20190217_202039.png (206.95 KiB) Viewed 1512 times
Last edited by AiTechEye on Sun Feb 17, 2019 19:30, edited 24 times in total.

User avatar
prof-turbo
Member
Posts: 516
Joined: Mon May 07, 2012 17:02
Location: MinetestForFun or Teeworlds master server list

Re: [Mod] gravitygun 0.9 (beta)

by prof-turbo » Post

Portal and then Gravity Gun... You're a Valve lover ! :)

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

Re: [Mod] gravitygun 0.9 (beta)

by AiTechEye » Post

I think minetest needed this stuff :-)


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

User avatar
mahmutelmas06
Member
Posts: 367
Joined: Mon Mar 02, 2015 13:10
GitHub: mahmutelmas06
IRC: mahmutelmas06
In-game: masum

Re: [Mod] gravitygun 0.9 (beta)

by mahmutelmas06 » Post

Awesome
My Mods:

Beverage

User avatar
benrob0329
Member
Posts: 1341
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

Re: [Mod] gravitygun 0.9 (beta)

by benrob0329 » Post

What?!?

Awesome!!!!!

User avatar
TailsTheFoxDoes MT
Member
Posts: 415
Joined: Mon Jan 18, 2016 20:50
In-game: TailsTheFox
Location: Mobius

Re: [Mod] gravitygun 0.9 (beta)

by TailsTheFoxDoes MT » Post

Yeah, i'm TailsTheFox, i'm getting this mod and using it on Ristar. He be freaked out!!!
I'm the TailsTMM of minetest, in other words, i rock.
BRAAAAAZZZZAAAA!!!!!!!!!!!!!!!!!!!!!!!!!!!
BTW it means TailsTheMeseMinecart, but that isn't my name, it's just a way of saying that i basically do the same thing Dantdm does but i do it with minetest And you problably can't see the invisible ink.
My mods:
My first mod:tails_boss

Mob_pack now has voice acting! Do you want YOUR VOICE included? Look in my posts for the thread!

User avatar
TailsTheFoxDoes MT
Member
Posts: 415
Joined: Mon Jan 18, 2016 20:50
In-game: TailsTheFox
Location: Mobius

Re: [Mod] gravitygun 0.99 (beta)

by TailsTheFoxDoes MT » Post

Uh is this compatible with prehistoric mod, the game crashed when i threw a dinosaur.
I'm the TailsTMM of minetest, in other words, i rock.
BRAAAAAZZZZAAAA!!!!!!!!!!!!!!!!!!!!!!!!!!!
BTW it means TailsTheMeseMinecart, but that isn't my name, it's just a way of saying that i basically do the same thing Dantdm does but i do it with minetest And you problably can't see the invisible ink.
My mods:
My first mod:tails_boss

Mob_pack now has voice acting! Do you want YOUR VOICE included? Look in my posts for the thread!

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

Re: [Mod] gravitygun 0.99 (beta)

by AiTechEye » Post

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

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] gravitygun

by azekill_DIABLO » Post

+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)
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

Re: [Mod] gravitygun

by AiTechEye » Post

Its a block with a 3d model, blocks can have same properties as tools / craft items.

User avatar
Inocudom
Member
Posts: 3121
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: [Mod] gravitygun

by Inocudom » Post

This is one of those mods that can really add a whole new level of fun to Minetest. I approve!

User avatar
maikerumine
Member
Posts: 1420
Joined: Mon Aug 04, 2014 14:27
GitHub: maikerumine
In-game: maikerumine

Re: [Mod] Gravitygun [gravitygun]

by maikerumine » Post

Awe man? Where is the download link?
Talamh Survival Minetest-->viewtopic.php?f=10&t=12959

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

Re: [Mod] Gravitygun [gravitygun]

by AiTechEye » Post

Fixed
i suspected the license could messup for some users, from the old program i used.
So the models are removed.

User avatar
maikerumine
Member
Posts: 1420
Joined: Mon Aug 04, 2014 14:27
GitHub: maikerumine
In-game: maikerumine

Re: [Mod] Gravitygun [gravitygun]

by maikerumine » Post

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:

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:

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!!
Talamh Survival Minetest-->viewtopic.php?f=10&t=12959

User avatar
Andrey01
Member
Posts: 2579
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Re: [Mod] Gravitygun 2 [gravitygun]

by Andrey01 » Post

Gravitygun - is that the pistols?

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

Re: [Mod] Gravitygun 2 [gravitygun]

by AiTechEye » Post

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)

Samthecool5098
New member
Posts: 4
Joined: Sat Oct 01, 2016 04:06
In-game: Samthecool5098

OMG

by Samthecool5098 » Post

i just downloaded i will tell "the comment" later

zargulthewizard
Member
Posts: 249
Joined: Wed Jul 26, 2017 18:10
In-game: zargul

Re: [Mod] Gravitygun 2 [gravitygun]

by zargulthewizard » Post

Love this mod!

Noticed you got 3D models again. Nice :) Maybe I can help you with that sometime, I finally know blender.
May God be with you, always.

Post Reply

Who is online

Users browsing this forum: No registered users and 35 guests