minetest-mods / moreblocks Goto Github PK
View Code? Open in Web Editor NEWMore Blocks
Home Page: https://content.minetest.net/packages/Calinou/moreblocks/
License: zlib License
More Blocks
Home Page: https://content.minetest.net/packages/Calinou/moreblocks/
License: zlib License
Some of the stair's directions always rotate automatically to a fixed Angle and cannot be rotated as needed
Have found that:
moreblocks:stair_silver_sandstone_brick
moreblocks:stair_obsidianbrick_outer
When crafting normal stairs/slabs (the ones from the stairs
mod that come with Minetest Game) and then disabling moreblocks all of the stairs nodes become unknown nodes.
Reproduce:
When i place some stairs or slopes the blocks auto-rotate in one direction only. No matter from which direction i place them.
The moretrees:* wood placement is fine, only the default:* wood is affected.
Minetest (engine/game) version: 0.4.17.1 (0.4-backport)
Moreblocks version: 10dd84a
Other mods:
If you place some items in the recycle slot, this mod does not check to see if the result in the input slot will become greater than the maximum stack value. Thus, you can get stacks greater than the maximum,
Unsupported blocks from 0.4.15:
default:stone_block
default:desert_stone_block
default:obsidian_block
default:sandstone_block
default:coral_skeleton
default:coral_brown - not sure about those, they are decaying to skeleton
default:coral_orange - not sure about those, they are decaying to skeleton
Also, will be nice to have farming:straw sawable.
When the building_blocks
mod is installed, alias More Blocks's tar and its Stairs+ nodes to building_blocks's tar.
Trying to craft dark green wool using dark green dye and white wool gives the brighter green wool.
To make sure it wasn't some other mod, I wiped out ~/.minetest/mods, copied moreblocks to there, and enabled it on a test world. The result:
That is most assuredly dark green dye on the left, and bright green wool as the output.
Engine: stable-0.4 branch, commit minetest/minetest@dd5f037
minetest_game: stable-0.4 branch, commit minetest/minetest_game@d6a6686
moreblocks: commit 723db44
No other mods enabled in the test world.
Obsidian glass slabs are invisible from one side, while appearing perfectly normal from the other.
Which is to say, if for example I put a node that's been colored red via the engine's "colored itemstacks" feature, assuming of course I've registered that node with the table saw, the cut objects produced by the saw all come out white.
If I had to guess, I'd say the saw is discarding the block's itemstack metadata when creating the cut items in the formspec. If I understand the feature correctly, you just need to copy the "palette_index" key from the source itemstack to the inventory items.
Hi,
Since updating the mod on my server I get:
23:46:57: WARNING: Assignment to undeclared global "result" inside a function at (my global minetest mods folder)/moreblocks/stairsplus/init.lua:21.
My previous version was probably a month or two old.
Thank you!
Several wool blocks have shortened descriptions relative to other cut blocks. For example, a moreblocks:micro_cobble
is described as "Cobblestone Microblock", but a wool:micro_blue
is described as "Blue Wool" instead of "Blue Wool Microblock".
The current release of moreblocks isn't compatible with the current release of the homedecor modpack (since it doesn't provide shapes_list, for instance) : could you tag a new release, please?
Thanks!
Mixing cut wool with dye creates full wool blocks allowing nearly free wool replication.
I'm using lastest translations-mod version, and in the game every item with accented character in translation just displays "invalid UTF-8 string".
This is related to using old interface instead of po files, I tried one translation with po system and this works fine.
moreblocks will not work if dry_shrub is removed or in other custom games that dont have dryshrubs.
2015-09-09 15:44:04: ERROR[Main]: ========== ERROR FROM LUA ===========
2015-09-09 15:44:04: ERROR[Main]: Failed to load and run script from
2015-09-09 15:44:04: ERROR[Main]: /dev/shm/minetest/bin/../mods/moreblocks/init.lua:
2015-09-09 15:44:04: ERROR[Main]: /dev/shm/minetest/bin/../mods/moreblocks/redefinitions.lua:63: Attempt to override non-existent item default:dry_shrub
2015-09-09 15:44:04: ERROR[Main]: stack traceback:
2015-09-09 15:44:04: ERROR[Main]: [C]: in function 'error'
2015-09-09 15:44:04: ERROR[Main]: /dev/shm/minetest/bin/../builtin/game/register.lua:324: in function 'override_item'
2015-09-09 15:44:04: ERROR[Main]: /dev/shm/minetest/bin/../mods/moreblocks/redefinitions.lua:63: in main chunk
2015-09-09 15:44:04: ERROR[Main]: [C]: in function 'dofile'
2015-09-09 15:44:04: ERROR[Main]: /dev/shm/minetest/bin/../mods/moreblocks/init.lua:27: in main chunk
2015-09-09 15:44:04: ERROR[Main]: ======= END OF ERROR FROM LUA ========
2015-09-09 15:44:04: ERROR[Main]: Server: Failed to load and run /dev/shm/minetest/bin/../mods/moreblocks/init.lua
2015-09-09 15:44:04: ERROR[Main]: ModError: ModError: Failed to load and run /dev/shm/minetest/bin/../mods/moreblocks/init.lua
2015-09-09 15:44:04: ERROR[Main]: Error from Lua:
2015-09-09 15:44:04: ERROR[Main]: /dev/shm/minetest/bin/../mods/moreblocks/redefinitions.lua:63: Attempt to override non-existent item default:dry_shrub
2015-09-09 15:44:04: ERROR[Main]: stack traceback:
2015-09-09 15:44:04: ERROR[Main]: [C]: in function 'error'
2015-09-09 15:44:04: ERROR[Main]: /dev/shm/minetest/bin/../builtin/game/register.lua:324: in function 'override_item'
2015-09-09 15:44:04: ERROR[Main]: /dev/shm/minetest/bin/../mods/moreblocks/redefinitions.lua:63: in main chunk
2015-09-09 15:44:04: ERROR[Main]: [C]: in function 'dofile'
2015-09-09 15:44:04: ERROR[Main]: /dev/shm/minetest/bin/../mods/moreblocks/init.lua:27: in main chunk
Stairsplus mod leaks its register functions to global namespace. Shouldn't they be in moreblocks
namespace instead?
register_micro
register_panel
register_slab
register_slope
register_stair
register_stair_slab_panel_micro
It seems like building same material slabs on top of each other no longer converts them back to a full block. This includes overridden native materials like wooden slabs made from wooden planks.
I don't have much info at the moment, but it is repeatable. Nothing shown in my logs but i have yet to repeat it in verbose.
while doing this you notice the player(camera) shake violently before the player dies.
I'll update this post when i find our more information unless someone beats me to it.
Hello, as I am able now to measure the lua used memory of my loaded mods in minetest,
(for this may look here)
moreblocks is using near 11950 KByte of lua memory (Biggest user on my server). As there are reported OOM crashes, when using LuaJIT is is important to reduce the usage of memory to avoid OOM.
So you know your code better then others, to see what can be changed, as I guess might bring a lot memory saving.
carpets and stuff :)
After updating minetest_game to v0.4.17 and all mods, we suddenly have an issue with many stairs blocks.
Example:
ERROR[Server]: Item "stairs:stair_outer_sandstone" not defined at position (57,50,-138)
ERROR[Server]: Item "stairs:stair_outer_silver_sandstone_brick" not defined at position (49,33,-146)
But there are same looking blocks:
ACTION[Server]: dev places node moreblocks:stair_silver_sandstone_outer at (58,51,-137)
ACTION[Server]: dev places node moreblocks:stair_silver_sandstone_brick_outer at (47,33,-148)
What has happened here?
And how can we solve it?
All the stairsplus items are hidden in the inventory (I found the following line in config.lua )
-- Show stairs/slabs/panels/microblocks in creative inventory (true or false):
setting("bool", "stairsplus_in_creative_inventory", false)
Is there any specific reason for hidding it ? It's a pain to build in creative mode without stairs, slabs ... already crafted. Otherwise it would be great to turn this to true.
Edit : related #119
When you dig moreblocks:slope_desert_stone it turns into desert_cobble
and stone slope into default:cobble
I enabled Stairs+ nodes in creative inventory by default with 774c404. However, this makes it difficult to browse the creative inventory and slows down loading, so I think I'll disable it by default.
As an alternative, I thought of adding a /saw
command that would display the circular saw GUI (only available in creative mode or for players with the circular_saw
privilege). This way, players won't have to craft/place/use a circular saw to access Stairs+ nodes and the creative inventory will remain easy to browse.
Bonus feature for quicker usage: /saw [node name]
would pre-fill the input material slot with 65535 nodes of the specified type, as long as it's not in the not_in_creative_inventory
group (unless the player has the give
privilege, which would let them bypass this restriction).
Versions
What happens?
The server crashes with the following message when started in creative mode.
2019-03-29 19:29:11: ERROR[Main]: A serialization error occurred:
2019-03-29 19:29:11: ERROR[Main]: Malformatted inventory list. list=main, read 1435 of 4692 ItemStacks.
2019-03-29 19:29:11: ERROR[Main]: The server is probably running a different version of Minetest.
Reproduce crash
moreblocks
modVerify that it only happens in creative mode
Copy pasting it there from minetest/minetest#3964.
In davisonio/craig-server_game#76 @RHRhino has shown that this lighting bug seems to be caused by super glow glass from the moreblocks mod.
Super glow glass uses light_source = 15 (https://github.com/davisonio/craig-server_game/blob/master/mods/moreblocks/nodes.lua#L287) when the maximum recommended in the minetest docs is 14 (http://dev.minetest.net/minetest.register_node).
I think the bug we have here is that when you set light_source to more than 14 it causes the light to stay there permenantly even when you've removed the node.
super_glow_glass and trap_super_glow_glass are affected by this.
Upon installing this mod, almost all the stairs in the creative inventory have disappeared! Worse still, if remove it, all the stairs & slabs in my existing build get corrupted.
What can I do?
The latest version of minetest added default:silver_sandstone, default:silver_sandstone_block and default:silver_sandstone_brick.
Since tar was replaced with gravel, a node with gravity, several buildings on my server making heavy use of tar were broken, because the gravel floors collapsed.
Missing alias.
Slab obsidian glass looks different, when looking through it from opposite sides. From one side it is ok, from another it is transperent without borders.
Examples: https://imgur.com/a/myQjU (correct view below). Screenshots from "Liberty Land" server.
@RealBadAngel suggested that "glasslike framed should be used for such things", source: http://irc.minetest.ru/minetest-dev/2016-02-14#i_4533652
moreblocks_slap_pinewood_2 and moretrees:stair_acacia_planks are unknown Blocks on our servers.
Its also not craft- or givable.
dont sure which blocks also - this are the only unknown Blocks we found now... .
moreblocks:stair_junglewood_alt_2 does work for example.
: ACTION[Server]: facedir: 0
2016-12-25 09:07:17: ERROR[Main]: ServerError: Lua: Runtime error from mod 'moreblocks' in callback nodemeta_inventory_AllowPut(): ...me/ubuntu/.minetest/mods/moreblocks/circular_saw.lua:237: attempt to perform arithmetic on local 'cost' (a nil value)
2016-12-25 09:07:17: ERROR[Main]: stack traceback:
2016-12-25 09:07:17: ERROR[Main]: ...me/ubuntu/.minetest/mods/moreblocks/circular_saw.lua:237: in function <...me/ubuntu/.minetest/mods/moreblocks/circular_saw.lua:213>
It clearly looks like mip-mapping causes slab_glass_1 to became transparent from some medium distance, but for some reason yellow slab_super_glow_glass_1 is not affected.
Can be observed on Liberty Land at 92 5 47
Screenshots:
https://i.imgur.com/uXuw3xf.png (closer)
https://i.imgur.com/hJ6vD04.png (further)
Config: http://pastebin.com/raw/fLgAQtNw
Not sure if it is core bug or moreblocks one. Observing it with minetest git 5dbaa68
Videoadapter: AMD/ATi Radeon HD 6870 / OGL 4.5 / Win 7sp1
Some of the stair's directions always rotate automatically to a fixed Angle and cannot be rotated as needed
one of our players tryed to use the chainsaw with some >more<-blocks but it didnt worked.
the result was a nil value -> servercrash.
I've noticed that I can't saw quartz blocks, that are provided by this mod: https://forum.minetest.net/viewtopic.php?f=11&t=5682
https://notabug.org/Calinou/moreblocks lead to 404
After I pulled moreblocks today, all oriented glass nodes (glass slabs, glass slopes) are lying flat and can't be oriented with the screwdriver. This doesn't happen with any other blocks.
I only noted wool and metal blocks so far, but they at least are not compatible with the table saw. Would be nice to get that fixed, along with others I may not yet have found out! Thanks.
Minetest allows six textures per node, one for every side.
Meshes in this mod only allow one texture.
This is easy to fix but hard to make syntax compatible with the rest on Minetest.
Some meshes will not have all six sides, if a missing side happens to be a top or bottom a small dummy mesh should be added for that side.
Here is an example cylinder.
cylinder.obj.zip
Use cases for this would be for default:tree or default:cactus
BTW: a cylinder might make a nice addition to moreblocks. Cylinder.obj is by pithydon (CC0).
edit: on second thought it would be strange for a circular saw to make a cylinder, so forget this last part.
Hi,
could you tag a moreblocks release? I just took over the maintenance of the minetest-mod-moreblocks package in Debian, and the last package is from a git commit in 2013... I'd prefer working on a developer-approved git commit rather than a random one!
Thanks,
Snark on #debian-games
Wool is overriding the stairsplus_in_creative_inventory
configuration option.
When placing stairs nodes (slabs and outer/inner/normal stairs from the stairs
mod that comes with Minetest Game) they’re all illogically rotated ignoring the position they’re placed on.
The following two screenshots show the wooden stairs nodes placed against the stone node behind them always alternating between placing against lower half and upper half of the node.
Below I did the same with moreblocks enabled.
It seems like the stair nodes now ignore the placement and are just placed sideways.
Mypaint is a really nice painting mod, but requires other mods to define paintable nodes.
It would make sense to add it as a soft dependancy and impliment something for stairsplus, and other nodes.
https://github.com/DonBatman/mypaint_extras/blob/master/mypaint_wood/init.lua seems like a good start.
I'll help where I can, but my lua knolage is limited as is my time.
For some reason a bunch of warnings about the aliases (I assume from Moreblocks) is shown in debug.txt. They go something like this:
WARNING[Main]: Not registering alias, item with same name is already defined: stairs:stair_stone -> moreblocks:stair_stone
And something like 50 of them.
The normal MTG slabs have the slab group. Some crafting recipes need items of the slab group.
I think the group should be added after this line.
That's response to Calinou's comment here: #20 (comment)
I did testing of moreblocks load times without wool and with wool, here's how I did it:
init.lua:
--[[
=====================================================================
** More Blocks **
By Calinou, with the help of ShadowNinja and VanessaE.
Copyright (c) 2011-2017 Hugo Locurcio and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
=====================================================================
--]]
local clock = os.clock
local t1 = clock()
moreblocks = {}
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
S = function(s) return s end
end
moreblocks.intllib = S
local modpath = minetest.get_modpath("moreblocks")
dofile(modpath .. "/config.lua")
dofile(modpath .. "/circular_saw.lua")
dofile(modpath .. "/stairsplus/init.lua")
dofile(modpath .. "/nodes.lua")
dofile(modpath .. "/redefinitions.lua")
dofile(modpath .. "/crafting.lua")
dofile(modpath .. "/aliases.lua")
if minetest.setting_getbool("log_mods") then
minetest.log("action", S("[moreblocks] loaded."))
end
local dt = clock() - t1
minetest.log("action", dt)
and registrations.lua (thanks for Vanessa code in PRs)
--[[
More Blocks: registrations
Copyright (c) 2011-2017 Hugo Locurcio and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
local default_nodes = { -- Default stairs/slabs/panels/microblocks:
"stone",
"cobble",
"mossycobble",
"brick",
"sandstone",
"steelblock",
"goldblock",
"copperblock",
"bronzeblock",
"diamondblock",
"desert_stone",
"desert_cobble",
"meselamp",
"glass",
"tree",
"wood",
"jungletree",
"junglewood",
"pine_tree",
"pine_wood",
"acacia_tree",
"acacia_wood",
"aspen_tree",
"aspen_wood",
"obsidian",
"obsidian_glass",
"stonebrick",
"desert_stonebrick",
"sandstonebrick",
"obsidianbrick",
"wool:black",
"wool:blue",
"wool:brown",
"wool:cyan",
"wool:dark_green",
"wool:dark_grey",
"wool:green",
"wool:grey",
"wool:magenta",
"wool:orange",
"wool:pink",
"wool:red",
"wool:violet",
"wool:white",
"wool:yellow",
}
for _, name in pairs(default_nodes) do
local nodename = "default:".. name
if string.find(name, ":") then
nodename = name
end
local ndef = minetest.registered_nodes[nodename]
if ndef then
local drop
if type(ndef.drop) == "string" then
drop = ndef.drop:sub(9)
end
local tiles = ndef.tiles
if #ndef.tiles > 1 and ndef.drawtype:find("glass") then
tiles = { ndef.tiles[1] }
end
stairsplus:register_all("moreblocks", name, nodename, {
description = ndef.description,
drop = drop,
groups = ndef.groups,
sounds = ndef.sounds,
tiles = tiles,
sunlight_propagates = true,
light_source = ndef.light_source
})
end
end
Mod loading time has increased from 0,258 to 0,326 seconds on avg (20 tests with each), or increase by 0,068 sec (+26%)
Therefore I want to propose to make wools sawable, since load times are tiny and not affected much.
Tested on core i3 3.3GHz/5400rpm hdd
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.