Casimir wrote:That only works when standing in the node. I haven't found any workaround.
You might use an abm to replace the air around your node with special air that does the damage. Or let the player live on :-)
Casimir wrote:That only works when standing in the node. I haven't found any workaround.
Novacain wrote:Is there an easy way to add a second recipe for crafting something?
I have multiple versions of the same block (different colors) and several of those blocks. what I have is this:
Novacain wrote:I wanna add support so this can be included:
A-B->B-B->C-B->D-B
A-O->B-O->C-O->D-O
A-G->B-G->C-G->D-G
DeepGaze wrote:is there a way to write a code to:
player places block A and then block B
player hits block A
block A places block C
fairiestoy wrote:Question is: What are you exactly aiming at? Do you want to cross-connect several servers by portals? If you just want to give the player the imagination that hes wandering between different worlds, you could create a mod which adds unpassable borders at specific heights and generate new land above this borders. If a player gets ported to the destination, he cannot get back to the original level without the portals. Thats at least the most useable solution ( imo ) when you don't want to kick out the user from his server and force him to reconnect somewhere else ( where he might run into problems when not finding it in the server list for example ).
If you want the crossconnect stuff ( which is interesting ), you have to suggest a API facility to the devs ( like minetest.client_connect_to( <connection parameters> ) ) which holds the current connection but tries to get the user into the other server. On success, he gives free the original connection. Should be a client-only thing.
minetest.register_item(":", {
type = "none",
wield_image = "wieldhand.png",
wield_scale = {x=1,y=1,z=2.5},
on_place=function(itemstack,placer,pointed_thing)
print(tostring("on place hand"))
end
end,
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 0,
groupcaps = {
fleshy = {times={[2]=2.00, [3]=1.00}, uses=0, maxlevel=1},
crumbly = {times={[2]=3.00, [3]=0.70}, uses=0, maxlevel=1},
snappy = {times={[3]=0.40}, uses=0, maxlevel=1},
oddly_breakable_by_hand = {times={[1]=7.00,[2]=4.00,[3]=1.40}, uses=0, maxlevel=3},
}
}
})
on_place = function(itemstack,placer,pointed_thing)
print("on place hand")
end,
, but only within the definition of the item"on_place"
that is, the player's hand.":"
"20:34:49: ACTION [ServerThread]: john right-clicks the object 1: player Pandarus"
pandaro wrote: want to be able to bring up a "formspec" if I click with the right mouse button on another player.
Can someone explain to me how to get around this problem?
Sokomine wrote:Perhaps it might work if you use a tool for the pointing?
AMMOnym wrote:is possible with minetest make code for this : i destroy (Dirt) and i dont get dirt but (wool) ?
pandaro wrote:yes, I know. However, my goal is to allow the exchange of objects between two players, without being forced to throw objects on the ground, and without having to build a chest to make the trade-off.
on_use=function(itemstack,user,pointed_thing)
print(dump(user:get_player_control().RMB))
print("on place hand")
if pointed_thing.ref and pointed_thing.ref:is_player() and then
local usr_name=user:get_player_name()
local target_name=pointed_thing.ref:get_player_name()
local swap = minetest.create_detached_inventory(usr_name..target_name,{})
swap:set_size("main",8*4)
minetest.show_formspec(usr_name,"trade-off","size[8,9]"..
"list[current_player;main;0,5;8,4;]"..
"list[detached:"..usr_name..target_name..";main;0,0;8,4;]")
minetest.show_formspec(target_name,"trade-off","size[8,9]"..
"list[current_player;main;0,5;8,4;]"..
"list[detached:"..usr_name..target_name..";main;0,0;8,4;]")
end
end,
brunob.santos wrote:how to shine node?
I'm creating a mod.
light_source = 14,
fishyWET wrote:brunob.santos wrote:how to shine node?
I'm creating a mod.
I think you meant how to make a node light up?
Add this to the node's codeYour 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
light_source = 8,
8 is the strongest light, and it decreases as the number decreases.
Maximum light is 14.Topywo wrote:fishyWET wrote:brunob.santos wrote:how to shine node?
I'm creating a mod.
I think you meant how to make a node light up?
Add this to the node's codeYour 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
light_source = 8,
8 is the strongest light, and it decreases as the number decreases.
I thought 15 is daylight, but I'm not sure if the max is 14 or 15.
Users browsing this forum: No registered users and 11 guests