[Mod] Lucky Block [1.3] [lucky_block]

User avatar
TenPlus1
Member
Posts: 2800
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] Lucky Block [0.2][lucky_block]

by TenPlus1 » Post

When adding lucky blocks for other mods it's always handy to add some nice blocks and some bad one's to mix it up a little, so theres a chance of giving a hopper or spawning lava under the player :) otherwise it would be boring getting good stuffs all the time.

wilkgr76
Member
Posts: 833
Joined: Wed Feb 18, 2015 02:44
GitHub: wilkgr76

Re: [Mod] Lucky Block [0.2][lucky_block]

by wilkgr76 » Post

TenPlus1 wrote:When adding lucky blocks for other mods it's always handy to add some nice blocks and some bad one's to mix it up a little, so theres a chance of giving a hopper or spawning lava under the player :) otherwise it would be boring getting good stuffs all the time.
I was just wondering why it was under "hopper" and not part of default... That's all.
N/A

User avatar
Napiophelios
Member
Posts: 1018
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] Lucky Block [0.2][lucky_block]

by Napiophelios » Post

drawtype = nodebox will crash the game if you click with screwdriver.

I added some simple animated textures for fun, see if you like it.
lucky_block-0.2_animated.zip
(59.44 KiB) Downloaded 92 times
Image
lb-anim.png
(49.37 KiB) Not downloaded yet

User avatar
TenPlus1
Member
Posts: 2800
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] Lucky Block [0.2][lucky_block]

by TenPlus1 » Post

Thanks Napiophelios, fixed the nodebox and protector variable bugs and added support for animated textures... Would be nice to see other servers using their own lucky block textures :)

blert2112
Member
Posts: 244
Joined: Sat Apr 25, 2015 04:05
GitHub: blert2112

Re: [Mod] Lucky Block [0.2][lucky_block]

by blert2112 » Post

TenPlus1... I added some stuff into this mod. Worked a very long time on it and I hope that you might find some of it useful. Help yourself to whatever you like. See my repo and please be sure to read the readme.

User avatar
TenPlus1
Member
Posts: 2800
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] Lucky Block [0.3][lucky_block]

by TenPlus1 » Post

Updated to version 0.3:

- Added new lucky blocks
- Error checking added to some routines
- Added new features
- Schematics overhaul
- Re-wrote API.txt to make things clearer

User avatar
SaKeL
Member
Posts: 653
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Mod] Lucky Block [0.3][lucky_block]

by SaKeL » Post

can this lucky blocks spawn automatically in the world or someone has to place them manually ?

User avatar
TenPlus1
Member
Posts: 2800
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] Lucky Block [0.3][lucky_block]

by TenPlus1 » Post

Lucky Blocks can be crafted using a chest surrounded by gold ingots, although it's up to server owners if they wish to have them spawn in-game automatically.

Update (7th January 2016):

- Fixed bug where schematics were always forcefully placed
- Added error checking to spawned entities
- Added nametags to spawned mobs
- Fixed instafarm block

Update (7th February 2016):

- Added default tree's (apple, jungle, pine, acacia, aspen)
- improved explosions (no more square holes)

wilkgr76
Member
Posts: 833
Joined: Wed Feb 18, 2015 02:44
GitHub: wilkgr76

Re: [Mod] Lucky Block [0.3][lucky_block]

by wilkgr76 » Post

Ok, this is particularly nefarious, but how about if the user has his home set with /sethome, placing a lava source there... That's quite evil.
N/A

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod] Lucky Block [0.3][lucky_block]

by Don » Post

That is really evil.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

wilkgr76
Member
Posts: 833
Joined: Wed Feb 18, 2015 02:44
GitHub: wilkgr76

Re: [Mod] Lucky Block [0.3][lucky_block]

by wilkgr76 » Post

Don wrote:That is really evil.
Precisely.
N/A

User avatar
TenPlus1
Member
Posts: 2800
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] Lucky Block [0.3][lucky_block]

by TenPlus1 » Post

Update:

- Lucky block explosions now support on_blast function thanks to MT-Modder

User avatar
TenPlus1
Member
Posts: 2800
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] Lucky Block [0.4][lucky_block]

by TenPlus1 » Post

Updated to 0.4

- Added ability to use custom functions inside lucky blocks.
- Fixed traps so player is in position when they appear.

Notice: I'm looking for new blocks to add so if any mod authors would like to make some for there own mods that would be awesome :)

User avatar
ParaklataChotou
Member
Posts: 209
Joined: Sat Jun 18, 2016 17:09
GitHub: paraklatachotou
IRC: CareBearWhoCares
In-game: AutistCortana

Re: [Mod] Lucky Block [0.4][lucky_block]

by ParaklataChotou » Post

I'll try this new update. Thank you. Any errors (if there's any) I'll send it to you the error file. It's an excellent mod.
Visit my server: freextress.ddnsking.com 30002 . mobs, npcs, interesting places, pvp.

User avatar
ParaklataChotou
Member
Posts: 209
Joined: Sat Jun 18, 2016 17:09
GitHub: paraklatachotou
IRC: CareBearWhoCares
In-game: AutistCortana

Re: [Mod] Lucky Block [0.4][lucky_block]

by ParaklataChotou » Post

The same glitch. take the error file.

Code: Select all

2016-10-01 20:48:05: ERROR[Main]: ServerError: Runtime error from mod '*builtin*' in callback environment_Step(): ...ra\minetest-0.4.14-win64\bin\..\builtin\game\falling.lua:24: attempt to index local 'node' (a nil value)
2016-10-01 20:48:05: ERROR[Main]: stack traceback:
2016-10-01 20:48:05: ERROR[Main]: 	...ra\minetest-0.4.14-win64\bin\..\builtin\game\falling.lua:24: in function 'set_node'
2016-10-01 20:48:05: ERROR[Main]: 	...a\minetest-0.4.14-win64\bin\..\mods\lucky_block\init.lua:473: in function 'func'
2016-10-01 20:48:05: ERROR[Main]: 	...andra\minetest-0.4.14-win64\bin\..\builtin\game\misc.lua:34: in function <...andra\minetest-0.4.14-win64\bin\..\builtin\game\misc.lua:11>
2016-10-01 20:48:05: ERROR[Main]: 	...a\minetest-0.4.14-win64\bin\..\builtin\game\register.lua:369: in function <...a\minetest-0.4.14-win64\bin\..\builtin\game\register.lua:349>
and thanks anyways. The mod is cool, but it causes the servers crash.
Visit my server: freextress.ddnsking.com 30002 . mobs, npcs, interesting places, pvp.

User avatar
MineYoshi
Member
Posts: 5373
Joined: Wed Jul 08, 2015 13:20
Contact:

Re: [Mod] Lucky Block [0.4][lucky_block]

by MineYoshi » Post

ParaklataChotou wrote:The same glitch. take the error file.

Code: Select all

2016-10-01 20:48:05: ERROR[Main]: ServerError: Runtime error from mod '*builtin*' in callback environment_Step(): ...ra\minetest-0.4.14-win64\bin\..\builtin\game\falling.lua:24: attempt to index local 'node' (a nil value)
2016-10-01 20:48:05: ERROR[Main]: stack traceback:
2016-10-01 20:48:05: ERROR[Main]: 	...ra\minetest-0.4.14-win64\bin\..\builtin\game\falling.lua:24: in function 'set_node'
2016-10-01 20:48:05: ERROR[Main]: 	...a\minetest-0.4.14-win64\bin\..\mods\lucky_block\init.lua:473: in function 'func'
2016-10-01 20:48:05: ERROR[Main]: 	...andra\minetest-0.4.14-win64\bin\..\builtin\game\misc.lua:34: in function <...andra\minetest-0.4.14-win64\bin\..\builtin\game\misc.lua:11>
2016-10-01 20:48:05: ERROR[Main]: 	...a\minetest-0.4.14-win64\bin\..\builtin\game\register.lua:369: in function <...a\minetest-0.4.14-win64\bin\..\builtin\game\register.lua:349>
and thanks anyways. The mod is cool, but it causes the servers crash.
Is that the build from the main page?
Oi

User avatar
TenPlus1
Member
Posts: 2800
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] Lucky Block [0.4][lucky_block]

by TenPlus1 » Post

ParaklataChotou - if a falling node is dropped by a lucky block and the node doesn't exist in-game then you get the above error, so I've added a check for that... Works ok now :)
Last edited by TenPlus1 on Mon Oct 03, 2016 07:06, edited 1 time in total.

User avatar
ParaklataChotou
Member
Posts: 209
Joined: Sat Jun 18, 2016 17:09
GitHub: paraklatachotou
IRC: CareBearWhoCares
In-game: AutistCortana

Re: [Mod] Lucky Block [0.4][lucky_block]

by ParaklataChotou » Post

TenPlus1 wrote:ParaklataChotou - if a falling node it dropped by a lucky block that doesn't exist then you get the above error, so I've added a check for that... Works ok now :)
Really? cool. n_n. Now I'll try it again on Android Server. and I'll tell you the results. Thanks.
Visit my server: freextress.ddnsking.com 30002 . mobs, npcs, interesting places, pvp.

User avatar
ParaklataChotou
Member
Posts: 209
Joined: Sat Jun 18, 2016 17:09
GitHub: paraklatachotou
IRC: CareBearWhoCares
In-game: AutistCortana

Re: [Mod] Lucky Block [0.4][lucky_block]

by ParaklataChotou » Post

TenPlus1 wrote:ParaklataChotou - if a falling node is dropped by a lucky block and the node doesn't exist in-game then you get the above error, so I've added a check for that... Works ok now :)
Now it's working like the weed. Thank you n_n. Now it's not causing crash on my server.
Visit my server: freextress.ddnsking.com 30002 . mobs, npcs, interesting places, pvp.

Kosmos
Member
Posts: 131
Joined: Sun Sep 11, 2016 12:42
In-game: KosmosHD

Re: [Mod] Lucky Block [0.4][lucky_block]

by Kosmos » Post

Hey,
so can i make my own schematics???(i mean if i copy it in the schem folder they have a chance to spawn???)

User avatar
TenPlus1
Member
Posts: 2800
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] Lucky Block [0.4][lucky_block]

by TenPlus1 » Post

Kosmos, yes you can add schematic files and have them spawn from lucky blocks :) follow guide.

User avatar
Andrey01
Member
Posts: 2395
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Re: [Mod] Lucky Block [0.4][lucky_block]

by Andrey01 » Post

TenPlus1, for what have you done is this mod?

User avatar
TenPlus1
Member
Posts: 2800
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] Lucky Block [0.4][lucky_block]

by TenPlus1 » Post

Andrey: how do you mean ?

User avatar
TenPlus1
Member
Posts: 2800
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] Lucky Block [0.4][lucky_block]

by TenPlus1 » Post

Update:

- Added new troll block (Dry Shrub takeover).
- Added 'stop punching yourself' block.

User avatar
TenPlus1
Member
Posts: 2800
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] Lucky Block [0.5][lucky_block]

by TenPlus1 » Post

Updated to 0.5:

- Added explosion radius and fire settings
- Added 12 new blocks for 0.4.15+

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests