Search found 23 matches

by owlondrugs
Mon Oct 26, 2020 18:56
Forum: Modding Discussion
Topic: register decoration not work!!!Help please
Replies: 6
Views: 177

Re: register decoration not work!!!Help please

Nathan.S wrote:
Mon Oct 26, 2020 18:19
Stupid question, but is the mod even loading?
You can run the /mods command in game to see all the loaded mods.
Image
Yeap...
by owlondrugs
Mon Oct 26, 2020 11:56
Forum: Modding Discussion
Topic: register decoration not work!!!Help please
Replies: 6
Views: 177

Re: register decoration not work!!!Help please

The only possible issue I'm seeing here is you have a fill_ratio of ten, I think a ratio of 1 is highest you can go. A ratio of 1 would be every node get's the decoration placed, I think. I know, but no matter how I change the values, it doesn't work. That's why I set 10. I don't know how to solve ...
by owlondrugs
Mon Oct 26, 2020 11:07
Forum: Modding Discussion
Topic: register decoration not work!!!Help please
Replies: 6
Views: 177

register decoration not work!!!Help please

minetest.register_node("test:test_node",{ tiles = {"default_dirt.png^[brighten^default_grass_side.png"}, description = "Test node", drawtype = "normal", pointable = true, diggable = true, groups = {cracky = 3}, }) minetest.register_decoration({ deco_type = &q...
by owlondrugs
Sun May 03, 2020 17:47
Forum: Modding Discussion
Topic: stack take_item() SOLVED
Replies: 9
Views: 198

Re: stack take_item()

The error says that you are passing the wrong type of data to set_stack, it's looking for a number, but your passing playerdata. Double checking the code I provided it looks like I have a mistake, I shouldn't have been making a local of count. I think I meant to do local count = inv:get_count here'...
by owlondrugs
Sun May 03, 2020 15:33
Forum: Modding Discussion
Topic: stack take_item() SOLVED
Replies: 9
Views: 198

Re: stack take_item()

The error says that you are passing the wrong type of data to set_stack, it's looking for a number, but your passing playerdata. Double checking the code I provided it looks like I have a mistake, I shouldn't have been making a local of count. I think I meant to do local count = inv:get_count here'...
by owlondrugs
Sun May 03, 2020 00:31
Forum: Modding Discussion
Topic: stack take_item() SOLVED
Replies: 9
Views: 198

Re: stack take_item()

Maybe try using inv:set_stack('main' , 1 '') That will set the stack to nothing, if you want to remove just a single stone you'd need to get the count of the stack and set the stack to one less, or use local count = inv:take_item inv:set_stack('main, 1, 'count') Error screen -- I don't know why, bu...
by owlondrugs
Sat May 02, 2020 16:28
Forum: Modding Discussion
Topic: stack take_item() SOLVED
Replies: 9
Views: 198

Re: stack take_item()

Maybe find a mod that does something close to what you are trying to do and see how the code is done there. You didn't really explain what you are trying to do, so I'm not sure what to suggest. Look. I need to make sure that if I put an object in the formspec and it was a stone it was taken away ev...
by owlondrugs
Sat May 02, 2020 12:32
Forum: Modding Discussion
Topic: stack take_item() SOLVED
Replies: 9
Views: 198

Re: stack take_item()

What in the world are you trying to do? Why are you setting a formspec in on_metadata_inventory_put, furthermore on_receive_fields will never run because there is no button or input in the formspec that could trigger it. no, I create a formspec in the on_consruct method, change it in another one. B...
by owlondrugs
Fri May 01, 2020 15:04
Forum: Modding Discussion
Topic: stack take_item() SOLVED
Replies: 9
Views: 198

stack take_item() SOLVED

test = {} minetest.register_node(minetest.get_current_modname()..":test_block", { description = "Test block", tiles = {"^[colorize:#802BB1"}, diggable = true, groups = {snappy = 3}, is_ground_content = true, on_construct = function ( pos ) local meta = minetest.get_met...
by owlondrugs
Thu Apr 09, 2020 17:58
Forum: Modding Discussion
Topic: Mods don't work completely
Replies: 3
Views: 227

Re: Mods don't work completely

Wuzzy wrote:I don't know if that's the reason but:

Code: Select all

list[context;squizzer;3.5,1;1,1;]
Is deprecated syntax.
Where can I find the correct api?
How do I do formspec correctly?
by owlondrugs
Mon Apr 06, 2020 12:43
Forum: Modding Discussion
Topic: Mods don't work completely
Replies: 3
Views: 227

Mods don't work completely

whatever mod I installed. It doesn't work correctly or completely. The node inventory cannot be obtained or updated, and so on. I don't know what to do... Help me. I can't interact with itemstack. --- minetest.register_node("magic_juice:squizzer", { description = "Manual squizzer"...
by owlondrugs
Sat Apr 04, 2020 19:24
Forum: Modding Discussion
Topic: How do I change the drop object lying on the ground?
Replies: 1
Views: 195

Re: How do I change the drop object lying on the ground?

minetest.register_craftitem("magic_juice:berry", { description = "Yellow berry", inventory_image = "berry.png", on_use = function(itemstack, user, pointed_thing) if (pointed_thing.type == "nothing") then minetest.chat_send_all("its works!") elseif (...
by owlondrugs
Fri Apr 03, 2020 20:19
Forum: Modding Discussion
Topic: How do I change the drop object lying on the ground?
Replies: 1
Views: 195

How do I change the drop object lying on the ground?

How do I change the drop object lying on the ground?
Change his wielded item? Or how to interact with it?
For example, if this drop is clicked with a certain item, it changes.
by owlondrugs
Wed Apr 01, 2020 16:58
Forum: Modding Discussion
Topic: Can i change node texture?with node func
Replies: 3
Views: 285

Re: Can i change node texture?with node func

Ty...Oh...I had a similar idea, but how do I pass the meta to another block?
by owlondrugs
Tue Mar 31, 2020 20:20
Forum: Modding Discussion
Topic: Can i change node texture?with node func
Replies: 3
Views: 285

Can i change node texture?with node func

minetest.register_node("tabaco_mod:Drying_Rack", { description = "Drying Rac", drawtype = "Normal", tiles = { "drying_rack_top.png", -- y+ "drying_rack_top.png", -- y- "drying_rack.png", -- x+ "drying_rack.png", -- x- "dryin...
by owlondrugs
Sun Jul 23, 2017 19:15
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 4208
Views: 398687

Re: Post your modding questions here

I created the ore.But it is generated only in minimal Development world...Why?
by owlondrugs
Sun Jul 23, 2017 17:33
Forum: Modding Discussion
Topic: World generation question.Help pls.
Replies: 8
Views: 609

Re: World generation question.Help pls.

I don't even know what to do...
by owlondrugs
Sun Jul 23, 2017 16:31
Forum: Modding Discussion
Topic: World generation question.Help pls.
Replies: 8
Views: 609

Re: World generation question.Help pls.

but when I create Development world its working...
by owlondrugs
Sun Jul 23, 2017 16:14
Forum: Modding Discussion
Topic: World generation question.Help pls.
Replies: 8
Views: 609

Re: World generation question.Help pls.

not working.
Image
by owlondrugs
Sun Jul 23, 2017 16:03
Forum: Modding Discussion
Topic: World generation question.Help pls.
Replies: 8
Views: 609

Re: World generation question.Help pls.

How remove blocks in world edit?
by owlondrugs
Sun Jul 23, 2017 13:28
Forum: Modding Discussion
Topic: World generation question.Help pls.
Replies: 8
Views: 609

Re: World generation question.Help pls.

tried everything...
by owlondrugs
Sun Jul 23, 2017 13:27
Forum: Modding Discussion
Topic: World generation question.Help pls.
Replies: 8
Views: 609

Re: World generation question.Help pls.

minetest.register_alias("mapgen_stone", "default:stone") minetest.register_node("magic:red_shardblock", { description = "Red shard ore", tiles = {"default_stone.png^red_cristal.png"}, groups = {cracky=3}, drop = 'magic:red_shard_item', }) minetest.r...
by owlondrugs
Sun Jul 23, 2017 12:59
Forum: Modding Discussion
Topic: World generation question.Help pls.
Replies: 8
Views: 609

World generation question.Help pls.

I made ore, but it is generated only in Minimal Development Test.Help me pls!!!