Page 1 of 1

[mod] Spleef Arena [spleef_arena] [0.0.1

PostPosted: Fri Jan 11, 2013 11:02
by jojoa1997
Spleef Arena is out.
There is a dirt spleef block, spleff block component, and a spleef stick. The component is supposed to hypothetically make the blocks weaker aka make them dig fast.

Here is a video of spleefing. http://m.youtube.com/watch?v=469pZ27Cn8c

Download:spleef_arena GitHub

License: Textures and code WTFPL

Changlog:
0.0.1 intitial release

the recipes are:C=component, D=dirt, G=glass, S=stick, X=nothing
spleef dirt-
DDD
DCD
DDD

spleef component-
GXG
XGX
GXG

spleef stick-(onec i make the items handle, hilt, and blade it will be changed.)
XCX
XSX
XSX

PostPosted: Fri Jan 11, 2013 15:41
by Ragnar
WAY ahead of you! *Opens Notepad++*

PostPosted: Fri Jan 11, 2013 16:26
by jojoa1997
Ragnar wrote:WAY ahead of you! *Opens Notepad++*

i already made a bunch of code from this tablet.

PostPosted: Fri Jan 11, 2013 16:33
by jojoa1997
Is it possible to have a spleef group
groups = {spleef=1},

PostPosted: Fri Jan 11, 2013 16:46
by Ragnar
yeah
wait a sec...
strange, i saw it somewhere on the API page, but not anymore :/
it was something like this
minetest.register_group({
...
})

PostPosted: Fri Jan 11, 2013 16:47
by markveidemanis
The latest update of Building_Blocks adds a spleef stick, however it can destroy anything ( Literally like adminpick ) and as far as i know it is not functional in any other way. So maybe you can use what is currently in building blocks as your Starting Point and build upon that. Also, the textures used in building blocks are quite good, maybe at least use them if you are not going to use the code from it. So i suggest that you look at some of the code from it, but start from scratch, maybe using some of the textures and code along the way. Possibly you could ask sdzen to add your code to his mod.

What do you mean by Spleef-Block?

PostPosted: Fri Jan 11, 2013 16:50
by jojoa1997
markveidemanis wrote:The latest update of Building_Blocks adds a spleef stick, however it can destroy anything ( Literally like adminpick ) and as far as i know it is not functional in any other way. So maybe you can use what is currently in building blocks as your Starting Point and build upon that. Also, the textures used in building blocks are quite good, maybe at least use them if you are not going to use the code from it. So i suggest that you look at some of the code from it, but start from scratch, maybe using some of the textures and code along the way. Possibly you could ask sdzen to add your code to his mod.

What do you mean by Spleef-Block?

i just want a tool that can only dig spleef blocks.

PostPosted: Fri Jan 11, 2013 16:52
by jojoa1997
would this be it
minetest.register_group(spleef)

PostPosted: Fri Jan 11, 2013 17:25
by Likwid H-Craft
Hmm, I think I made a group but, I have a Windows so IDK, if you own one as, jojoa1997 before I help you.

PostPosted: Fri Jan 11, 2013 18:24
by jojoa1997
Windows 7
And help me with what

PostPosted: Fri Jan 11, 2013 18:46
by Likwid H-Craft
With the Group I think there is, a way.

Few Min looking in Lua_api...

Well I found this.
Your 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
Groups
-------
In a number of places, there is a group table. Groups define the
properties of a thing (item, node, armor of entity, capabilities of
tool) in such a way that the engine and other mods can can interact with
the thing without actually knowing what the thing is.

Usage:
- Groups are stored in a table, having the group names with keys and the
  group ratings as values. For example:
    groups = {crumbly=3, soil=1}
    ^ Default dirt (soil group actually currently not defined; TODO)
    groups = {crumbly=2, soil=1, level=2, outerspace=1}
    ^ A more special dirt-kind of thing
- Groups always have a rating associated with them. If there is no
  useful meaning for a rating for an enabled group, it shall be 1.
- When not defined, the rating of a group defaults to 0. Thus when you
  read groups, you must interpret nil and 0 as the same value, 0.

You can read the rating of a group for an item or a node by using
  minetest.get_item_group(itemname, groupname)

Groups of items
----------------
Groups of items can define what kind of an item it is (eg. wool).

Groups of nodes
----------------
In addition to the general item things, groups are used to define whether
a node is destroyable and how long it takes to destroy by a tool.

Groups of entities
-------------------
For entities, groups are, as of now, used only for calculating damage.

object.get_armor_groups() -> a group-rating table (eg. {fleshy=3})
object.set_armor_groups({level=2, fleshy=2, cracky=2})

Groups of tools
----------------
Groups in tools define which groups of nodes and entities they are
effective towards.

Groups in crafting recipes
---------------------------
An example: Make meat soup from any meat, any water and any bowl
{
    output = 'food:meat_soup_raw',
    recipe = {
        {'group:meat'},
        {'group:water'},
        {'group:bowl'},
    },
    -- preserve = {'group:bowl'}, -- Not implemented yet (TODO)
}
An another example: Make red wool from white wool and red dye
{
    type = 'shapeless',
    output = 'wool:red',
    recipe = {'wool:white', 'group:dye,basecolor_red'},
}

Special groups
---------------
- immortal: Disables the group damage system for an entity
- level: Can be used to give an additional sense of progression in the game.
  - A larger level will cause eg. a weapon of a lower level make much less
    damage, and get weared out much faster, or not be able to get drops
    from destroyed nodes.
  - 0 is something that is directly accessible at the start of gameplay
  - There is no upper limit
- dig_immediate: (player can always pick up node without tool wear)
  - 2: node is removed without tool wear after 0.5 seconds or so
       (rail, sign)
  - 3: node is removed without tool wear immediately (torch)
- disable_jump: Player (and possibly other things) cannot jump from node
- fall_damage_add_percent: damage speed = speed * (1 + value/100)
- bouncy: value is bounce speed in percent
- falling_node: if there is no walkable block under the node it will fall
- attached_node: if the node under it is not a walkable block the node will be
                  dropped as an item. If the node is wallmounted the
                  wallmounted direction is checked.

PostPosted: Sat Jan 12, 2013 04:24
by jojoa1997
I will most likely be posting the mod tomorrow.
Preview:
spleef blocks-can only be dug by spleef sticks
-types are dirt(the only one in the first release), desert sand, sand, gravel, leaves
spleef stick-digs only spleef blocks

recipes:
L=leaves, S=sticks, B=blade, H=handle, X=nothing, T=hilt, G=string, K=glass, C=spleef component

-string:
LLL
LSL
LLL

-blade:
LLL
XLX
LLX

-handle:
SSS
XSS
SXS

-hilt:
XSX
SSS
XSX

-spleef stick:
BHG
BHG
XTX

-spleef component
KXK
XKX
KXK

-block( #=one of the items below. the entire type though, L=leaves, G=gravel, S=sand, D=desert sand, A=dirt)
###
#C#
###

Help needed:
i need textures for everything in recipes except for the spleef block. keep in mind that the spleef stick pic will be a combination of all its parts.

PostPosted: Sat Jan 12, 2013 12:49
by Likwid H-Craft
Well I will help you, but what you, like have for the sticks? and etc.

PostPosted: Sat Jan 12, 2013 16:20
by jojoa1997
this is how i envision the hypothetical put together of the spleef stick
Before
LLL SSS
XLX XSS
LLL SXS

XSX
SSS
XSX
After
LLL
LSSS
LLLSS
SSS
SSS
S

PostPosted: Sat Jan 12, 2013 16:22
by jojoa1997
Likwid H-Craft wrote:Well I will help you, but what you, like have for the sticks? and etc.

Thanks.
For the textures i have in mind:
string- whatever looks like a string
blade-make it green and add a base to the blade
Image
handle-the shaft of an axe really(wood color)
Image
hilt-the handle really (it is leather colored)
Image
Spleef stick-i gonna have all the parts of it on the pick(i will do this one myself)

PostPosted: Sat Jan 12, 2013 17:16
by Likwid H-Craft
NP.
So you like use the pics kind of, for the base of they look like.

PostPosted: Sat Jan 12, 2013 17:17
by jojoa1997
Likwid H-Craft wrote:NP.
So you like use the pics kind of, for the base of they look like.

yeah also look at post 14 and see how i envision the working together

PostPosted: Sat Jan 12, 2013 17:59
by jojoa1997
spleef blocks 0.0.1 is out

PostPosted: Mon Jan 14, 2013 01:40
by jojoa1997
spleef blocks 0.1 is out

PostPosted: Mon Jan 14, 2013 12:19
by jojoa1997
Anyone have textures

PostPosted: Mon Jan 14, 2013 12:36
by Aqua
Maybe you should add what 'Spleefing' is about and post some screenshots.

PostPosted: Mon Jan 14, 2013 13:22
by jojoa1997
I will add the screenshots when I get home. Here is a link to a video. http://m.youtube.com/watch?v=469pZ27Cn8c