Creative mod

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

Creative mod

by jojoa1997 » Sun Mar 17, 2013 14:31

in minecraft you just have to type "/gamemode #" to change modes. 0 is survival, 1 is creative, 2 is adventure. will ingame creative and survival switch be in our future soon?
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Sun Mar 17, 2013 14:44

The current creative mode overrides the hand to break everything. You cant to this while the game is running, so a command for that is currently impossible.
 

lord_james
Member
 
Posts: 51
Joined: Sun Mar 11, 2012 22:06

by lord_james » Tue Mar 19, 2013 01:46

I think it could be possible re-write creative mode. A variable could keep the player's name and his current mode and later, in another part of the script, check the player's mode. For example, a function that destroy all punched nodes if the player is in creative mode; etc.
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Tue Mar 19, 2013 10:05

lord_james wrote:I think it could be possible re-write creative mode. A variable could keep the player's name and his current mode and later, in another part of the script, check the player's mode. For example, a function that destroy all punched nodes if the player is in creative mode; etc.

The problem with these functions is that you have to click for every block and cant hold down the mouse button.
 

lord_james
Member
 
Posts: 51
Joined: Sun Mar 11, 2012 22:06

by lord_james » Tue Mar 19, 2013 18:05

It could be a limitation, but add the posibility to destroy nodes with all tools and creative mode per player is a great feature. In the another hand, the player won't destroy unexpected nodes
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Tue Mar 19, 2013 18:35

What i did was i added a 'creative' privilege for creative mode, so that the infinite inventory only shows up for players who have it. the only thing missing is something to update the players' formspec when the priv is granted/revoked.
"Fuck the hat." - Paulie Gualtieri
 

lord_james
Member
 
Posts: 51
Joined: Sun Mar 11, 2012 22:06

by lord_james » Tue Mar 19, 2013 19:59

The problem with these functions is that you have to click for every block and cant hold down the mouse button.


The real problem is the other side: one click, a lot of nodes without control
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 39 guests

cron