Giter Site home page Giter Site logo

moreblocks's Introduction

More Blocks Build status

More Blocks for Minetest, a free and open source infinite world block sandbox game.

Forum topic

Installation

Download the mod

To install More Blocks, clone this Git repository into your Minetest's mods/ directory:

git clone https://github.com/minetest-mods/moreblocks.git

You can also download a ZIP archive of More Blocks.

Enable the mod

Once you have installed More Blocks, you need to enable it in Minetest. The procedure is as follows:

Using the client's main menu

This is the easiest way to enable More Blocks when playing in singleplayer (or on a server hosted from a client).

  1. Start Minetest and switch to the Local Game tab.
  2. Select the world you want to enable More Blocks in.
  3. Click Configure, then enable moreblocks by double-clicking it (or ticking the Enabled checkbox).
  4. Save the changes, then start a game on the world you enabled More Blocks on.
  5. More Blocks should now be running on your world.

Using a text editor

This is the recommended way to enable the mod on a server without using a GUI.

  1. Make sure Minetest is not currently running (otherwise, it will overwrite the changes when exiting).
  2. Open the world's world.mt file using a text editor.
  3. Add the following line at the end of the file:
load_mod_moreblocks = true

If the line is already present in the file, then replace false with true on that line.

  1. Save the file, then start a game on the world you enabled More Blocks on.
  2. More Blocks should now be running on your world.

Version compatibility

More Blocks is currently primarily tested with Minetest 5.3.0. It may or may not work with newer or older versions. Issues arising in older versions than 5.0.0 will generally not be fixed.

License

Copyright © 2011-2020 Hugo Locurcio and contributors

  • More Blocks code is licensed under the zlib license, see LICENSE.md for details.
  • Unless otherwise specified, More Blocks textures are licensed under CC BY-SA 3.0 Unported.

moreblocks_copperpatina.png was created by pithydon, and is licensed under CC0 1.0 Universal.

moreblocks's People

Contributors

afkplayer5000 avatar andersje avatar antumdeluge avatar beyondlimits avatar caellian avatar calinou avatar codexp avatar davisonio avatar fozolo avatar jat15 avatar jhcole avatar kilbith avatar lemon-melon avatar mat9117 avatar neinwhal avatar oblomov avatar oleastre avatar panquesito7 avatar pithydon avatar pyrollo avatar rqworldblender avatar smalljoker avatar sofar avatar sys4-fr avatar tenplus1 avatar the4codeblocks avatar thomas--s avatar vanessae avatar woosteruk avatar xanthin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

moreblocks's Issues

Wool replication

Mixing cut wool with dye creates full wool blocks allowing nearly free wool replication.

Some blocks are not sawable?

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.

stairsplus: Pollution of global namespace.

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

Can get stacks larger than max

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,

Proper release?

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

Stairs become unknown nodes when disabling moreblocks

  • Minetest 5.0.0
  • Moreblocks 9363068

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:

  • Start a new world with moreblocks enabled
  • Craft some stairs from any supported material in the crafting grid

moreblocks_enabled

  • Quit the world and disable moreblocks
  • Start the world again.

moreblocks_disabled

Holding shift while walking on slopes causes players to die.

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.

Aliases Causing Warnings in Log

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.

Cut wool descriptions.

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".

a bug

Some of the stair's directions always rotate automatically to a fixed Angle and cannot be rotated as needed

multi textured mesh

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.

Super glow glass causing lighting problems?

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.

Link: davisonio/craig-server_game#76

Server crashes with “Malformatted inventory list” error when started in creative mode

Versions

  • Minetest 5.0.0
  • moreblocks on d96f110

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

  • Start Minetest 5.0.0
  • Create a new world
  • Enable creative mode
  • Enable moreblocks mod
  • Start the world
  • -> The server crashes

Verify that it only happens in creative mode

  • Do the same
  • Disable creative mode
  • Start the world
  • -> Server does not crash

Moreblocks breaks dark green wool recipe/craft

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:

image

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.

Translations buggy

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.

stairsplus items hidden in creative inventory

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

Make wool sawable (testing results)

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 

Here are results!
default

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

Cut items do not take on the color of the source block

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.

a bug

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

Please remove dependency on default:dry_shrub.

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

New blocks from default not supported in saw

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.

lua memory usage

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.

auto-rotation of default:*wood blocks

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:

  • Technic
  • Moretrees

slab_glass_1 becames transperent from medium distance when mipmapping is on

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

Add a command to display the circular saw GUI in creative mode

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).

server crashed

: 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>

Please release a new version

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!

Placement of default stairs is messed up

  • Minetest 5.0.0
  • Moreblocks 9363068

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.

placement_default

Below I did the same with moreblocks enabled.

placement_moreblocks

It seems like the stair nodes now ignore the placement and are just placed sideways.

moreblocks_slap_pinewood_2 = unknown Block

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.

Missing a lot of nodes after an update

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?

screenshot_20180711_123551

Warning message in stairsplus folder

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!

No stairs in creative inventory

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?

Slab back to full block

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.

Tar replacement breaks buildings

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.

desert_stone, cobble bug

When you dig moreblocks:slope_desert_stone it turns into desert_cobble
and stone slope into default:cobble

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.