[Mod] PowerTools [powertools]

Post Reply
User avatar
octacian
Member
Posts: 597
Joined: Mon Dec 21, 2015 22:18
GitHub: octacian
IRC: octacian
In-game: octacian
Location: Canada

[Mod] PowerTools [powertools]

by octacian » Post

PowerTools [powertools]
Image
GitHub: octacian/powertools
Download: Master (latest, stable)

PowerTools allows players with the powertools privilege to assign a chatcommand to any item in their hotbar which will be executed whenever they punch any node. This allows quickly assigning things like /time 6000 to an item which will be executed whenever you punch anything.

Any instances of @p inside the chatcommand to be called are replaced with the player's current position, while instances of @n are replaced with the position of the node punched, allowing dynamic commands to be assigned to the items.

When a PowerTool is assigned, the description of the item is changed to display both that it is a PowerTool and the command assigned to it. Whenever a PowerTool is dropped and picked up by another player who is not the owner, the tool will not work and instead the PowerTools status will be removed. Note: PowerTools do not allows players to execute chatcommands without privileges, so the above is simply a safeguard.

PowerTools can only be assigned or unassigned if they are selected in the player's hotbar as the get_wielded_item methods are used to reference the itemstack which is to be modified as a PowerTool.

Usage

Code: Select all

/powertool <chatcommand/"unset">
Chatcommand is the chatcommand to be executed when punching a node with the tool in hand (with beginning slash) or "unset", causing the PowerTool status of the item held to be removed. Note: If unset is called on a non-powertool item nothing will be changed.
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
I'm currently inactive in the Minetest community! So if I don't respond, that's why.

User avatar
Phoenixflo44
Member
Posts: 639
Joined: Fri Jul 28, 2017 15:01
In-game: EvilPhoenix
Location: Behind my PC, in Germany

Re: [Mod] PowerTools [powertools]

by Phoenixflo44 » Post

That is coool
Spoiler
I hate my life

User avatar
cx384
Member
Posts: 653
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: [Mod] PowerTools [powertools]

by cx384 » Post

This mod is similar to command_tool.
Can your read this?

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] PowerTools [powertools]

by azekill_DIABLO » Post

hey, it's like in the minecraft mod!! +1
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

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

Re: [Mod] PowerTools [powertools]

by Andrey01 » Post

azekill_DIABLO wrote:hey, it's like in the minecraft mod!! +1
Really?!! Oh no! I thought octacian invented it by yourself.

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] PowerTools [powertools]

by azekill_DIABLO » Post

i saw many minecraft videos with special toools that enable commands on click.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
octacian
Member
Posts: 597
Joined: Mon Dec 21, 2015 22:18
GitHub: octacian
IRC: octacian
In-game: octacian
Location: Canada

Re: [Mod] PowerTools [powertools]

by octacian » Post

cx384 wrote:This mod is similar to command_tool.
Yes, you're right, it is. However, my mod is far simpler and uses several new features in Minetest (i.e. node-like metadata and the ability to change itemstack descriptions through metadata). Now, with this in mind, I do like the idea of being able to add multiple commands to run as does HybridDog's mod, so I may consider implementing that in the future.
Andrey01 wrote:
azekill_DIABLO wrote:hey, it's like in the minecraft mod!! +1
Really?!! Oh no! I thought octacian invented it by yourself.
Yes, the idea did come from the MC mod/plugin that does the same basic thing. I mean, even though it is slightly "MC," it's still a great idea so there's no reason not to use it.
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
I'm currently inactive in the Minetest community! So if I don't respond, that's why.

User avatar
BirgitLachner
Member
Posts: 393
Joined: Thu May 05, 2016 10:18
In-game: Bibs

Re: [Mod] PowerTools [powertools]

by BirgitLachner » Post

What about the possibility to add Worldedit commands to it.

I was using a "brush" in MInecraft to build little spheres for sand to build the landscape a bit smother than it is done with the "//set" command for a selected cuboid. And then use the replace to have dirt instead of sand.

User avatar
Stix
Member
Posts: 1385
Joined: Fri Aug 04, 2017 14:19
IRC: nil
In-game: Stix [+alts]
Location: USA

Re: [Mod] PowerTools [powertools]

by Stix » Post

is it possible to set ban to a tool and punch a player to ban them?
Hey, what can i say? I'm the bad guy.

User avatar
cx384
Member
Posts: 653
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: [Mod] PowerTools [powertools]

by cx384 » Post

Stix wrote:is it possible to set ban to a tool and punch a player to ban them?
viewtopic.php?t=9032
Can your read this?

User avatar
octacian
Member
Posts: 597
Joined: Mon Dec 21, 2015 22:18
GitHub: octacian
IRC: octacian
In-game: octacian
Location: Canada

Re: [Mod] PowerTools [powertools]

by octacian » Post

Stix wrote:is it possible to set ban to a tool and punch a player to ban them?
heh, I'll add the ability to set the command to get the punched player's username, which would allow this. In the meantime, use cx384's suggestion.
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
I'm currently inactive in the Minetest community! So if I don't respond, that's why.

User avatar
ManElevation
Member
Posts: 896
Joined: Tue Aug 02, 2016 22:04
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation
Location: Madrid,Spain

Re: [Mod] PowerTools [powertools]

by ManElevation » Post

GIVE ME THE POWER!
My Public Mods! Discord: Rottweiler Games#3368

User avatar
NetYard5
Member
Posts: 66
Joined: Fri Aug 24, 2018 20:28
GitHub: FI3Mate
IRC: AlloyMixedSteel
In-game: InfinityYards UltraNexo
Location: Malaysia, Kuala Lumpur

Re: [Mod] PowerTools [powertools]

by NetYard5 » Post

whatis the item node name?

User avatar
Lone_Wolf
Member
Posts: 2576
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: [Mod] PowerTools [powertools]

by Lone_Wolf » Post

NetYard5 wrote:whatis the item node name?
You can assign a command to any item/node. See the original post for more info
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

sarahedmonds
New member
Posts: 1
Joined: Sat Oct 09, 2021 12:47

Re: [Mod] PowerTools [powertools]

by sarahedmonds » Post

is there any update for this mod?
cara membuat halaman di word

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests