117 Commits

Author SHA1 Message Date
GreenXenith
7647eb547a Add torches 2019-09-14 18:05:29 -07:00
Aaron Suen
8d850980d1 Try removing sparks on collision.
Didn't look right with sparks going through glass, and still
didn't look right having sparks hit glass and go sliding off
to the side at constant velocity.
2019-09-14 19:11:54 -04:00
Aaron Suen
974f0c2672 Having sparks go through solid glass is a bit distracting. 2019-09-14 19:06:22 -04:00
Aaron Suen
afc4d408c7 For now, remove direction bias of fire sparks.
After much discussion about things like wind velocity, it was
concluded that many fires are indoors or underground, and the
check to see if they're out in the open is not worth the cost.
2019-09-14 19:03:40 -04:00
Aaron Suen
35f96fb571 Merge improved fire visuals by GreenXenith. 2019-09-14 18:28:35 -04:00
Aaron Suen
9b9b14b173 Standard battery of auto formatting and optimizing. 2019-09-14 18:27:06 -04:00
GreenXenith
da9dea607c Add fire spark particles 2019-09-14 14:42:29 -07:00
GreenXenith
2d63bdba43 Improve fire texture 2019-09-14 14:42:03 -07:00
Aaron Suen
7e75fd149a Quote consistency. 2019-09-14 09:49:06 -04:00
Aaron Suen
52de19a28c Unified falling check, check after craft. 2019-09-09 07:05:01 -04:00
Aaron Suen
1ae768bc33 Remove debugging code. 2019-09-07 12:26:55 -04:00
Aaron Suen
9a75f4c87a More flexible burning API.
Stone, lode, and lux tools now all have their handles burn, and
eject the non-flammable portions of the tool.

Now using a unified on_ignite hook for when flammable things catch
fire.  The call is made BEFORE the node is replaced, and has an
opportunity to look at node metadata and eject anything
non-flammable.

It can be a function, e.g. for shelves, or a static value in the
same format that the function would return (e.g. for lode tools
which need string values for temper substitutions).

If it returns a string or itemstack, it will eject that from the
position where the node burned.  If it returns a table it will
eject all the values of that table.
2019-09-07 11:28:51 -04:00
Aaron Suen
310ce1bc6c Treat NodeCore as a unified thing.
- Collapse all nodecore "core" mods in the /mods listing, so it's
  easier to find the actual add-on mods.
- Parameterize in-game branding to make renaming derivatives just
  a little easier.
2019-09-07 09:08:57 -04:00
Aaron Suen
39dea8a2ae MAJOR: Code quality audit using luacheck.
- Removed lots of unused variables, a few shadowed identifiers.
- Removed a few sections of dead code.
2019-08-31 09:26:53 -04:00
Aaron Suen
fe2c153f9e Clean up all lua code style.
Formatting rules based on Paul Kulchenko's perl-based formatter...
http://notebook.kulchenko.com/programming/lua-beautifier-in-55-lines-of-perl
...using a single tab for indent.

Mostly pure whitespace changes.
2019-08-27 19:14:51 -04:00
Aaron Suen
560b068bd7 Fix crafting, standardize recipe callback params. 2019-08-24 06:31:27 -04:00
Aaron Suen
b30112d702 New, bolder charcoal textures.
Hopefully, tiers should be a little easier to distinguish...
2019-04-09 22:51:31 -04:00
Aaron Suen
41963a009a Exclude some large files from exports.
- Consolidate any "source-only" files into "src" dirs.
- Exclude "docs" dir, mainly in root atm.
- Exclude all dotfiles.

This significantly reduces the size of delivered files, since
esp the player model .blend file is very large.
2019-04-09 07:54:46 -04:00
Aaron Suen
d41e208d87 Switched from fire alpha to gentle animation. 2019-04-04 08:26:53 -04:00
Aaron Suen
4b1488ed3f Hints system overhaul.
- Included new content.
- Partially converted to base on recipes instead of just items.
- Added support for group and toolcap checks.

Fixed a number of small bugs elsewhere in the process.
2019-04-03 07:41:27 -04:00
Aaron Suen
be6b5ec8a0 Remove "Cube" from node descriptions.
Consistent with everything else in the world, we assume that "cube"
is the default state for things to be in (this is NodeCore after
all) and only use shape descriptors for things like lumps, prills
and other non-cube versions of things that also exist as cubes.
2019-04-02 08:10:17 -04:00
Aaron Suen
676a478427 Fix alpha channel. 2019-04-01 19:54:39 -04:00
Aaron Suen
2b048e4ffb Image optimize. 2019-04-01 19:19:17 -04:00
Aaron Suen
d5c0c94c85 Fix coal2 not returning any coal lumps. 2019-03-31 23:51:25 -04:00
Aaron Suen
468bbba9ca Try using alpha for flames.
Fuel quality is important now, so we want to be able to see the
fuel through the fire.  On the other hand, this may cause fire
to be invisible through water...
2019-03-31 22:21:05 -04:00
Aaron Suen
a22cc73a20 Consistentize ash/charcoal lump/cube naming. 2019-03-31 22:11:29 -04:00
Aaron Suen
2d4445c976 Tweak flammability, esp of charcoal/ash mixtures. 2019-03-31 21:38:26 -04:00
Aaron Suen
10192c44d2 Break coal/ash apart, reconstitute into pure nodes.
This allows access to top-tier charcoal, for maximum efficiency
burning, plus new lumps of coal/ash as future resources.
2019-03-31 21:18:53 -04:00
Aaron Suen
fbff15e2fe MAJOR fire api/logic rework.
- Expanded fire api, added "check" varieties of things that also
  perform relevant checks for eligibility.  Standardized testing
  for ventilation.
- Snuff embers to coals as fuel.
- Fuel is consumed randomly by flames.  This means that fuel that
  are surrounded by flame burn out quicker, while flames
  surrounded by fuel consume fuel from each node slower.  This
  adds subtlety to furnace design for efficiency.
2019-03-31 20:54:38 -04:00
Aaron Suen
cc1f7c9dd9 Sparser embers, define nodes. 2019-03-31 19:41:03 -04:00
Aaron Suen
00baac623d New artwork for fire rework. 2019-03-31 19:21:33 -04:00
Aaron Suen
9f53c5b43d Fix crash on punching lava.
minetest.[de]serialize apparently does attempt to serialize
functions (e.g. the on_punch) hook now, but all upvalues become
nil in the process.
2019-03-24 22:32:36 -04:00
Aaron Suen
b5c45423b5 Make ignite/snuff sounds more distinct from one another. 2019-03-24 21:13:27 -04:00
Aaron Suen
cfb5e729c8 Sounds for igniting/extinguishing fires. 2019-03-24 21:08:39 -04:00
Aaron Suen
73839954ae Give embers a sound (esp. for when they fall/land) 2019-03-17 10:55:41 -04:00
Aaron Suen
c09c8777e2 Fire ambiance.
This is the last currently known missing sound, finally.
2019-03-14 22:20:18 -04:00
Aaron Suen
fd5f4219f7 Sounds for some items, ash. 2019-03-14 01:16:44 -04:00
Aaron Suen
9607bcc6a6 Start working on sounds, plus minor refinements.
- Clean up registered_* usage patterns.
- Reduce tendancy of leaves to create stack nodes.
  Now they tend to stack up properly in-world more often.
- Tweak damage system to create "headroom" where minor
  damage doesn't cost inv slots immediately.
- Make player hand skin color match model skin.
- Cleanup/unify grass abm logic.
- Start installing new sounds by MagikEh

Sound source:
  https://github.com/MagikEh/SoundsOfWarr
2019-03-13 23:51:59 -04:00
Aaron Suen
7bf237fe26 More debug code. 2019-03-10 03:36:37 -04:00
Aaron Suen
78f1b2971a Work around particle emission issues.
Seems like minetest doesn't behave very well on trying to spawn
more than 1 particlespawner during a single tick.

Work around this so smoke comes out correctly...
2019-03-10 03:32:59 -04:00
Aaron Suen
19bfab1c1f Glass now cools/quenches.
Almost done with this new feature; just need to craft lenses and
prisms from chroma glass...
2019-03-07 22:21:04 -05:00
Aaron Suen
ed7fa1e95c Add molten glass, cook sand into it w/ fire. 2019-03-07 21:50:29 -05:00
Aaron Suen
98b235511c Standardize use of include function. 2019-03-02 20:39:08 -05:00
Aaron Suen
f893f613c3 API refinements.
- Make node match operate on only one of node or stack, depending
  on whether node defers to stack via is_stack_only.  This should
  hopefully prevent future pummel recipe issues.
- Add new core stack API.  Needs to be deployed in a lot of places.
- Start work on system for allowing flammable containers; they
  eject their potentially non-flammable contents.
2019-02-23 09:44:22 -05:00
Aaron Suen
fc53bdd72e Fix recipe check mutability bugs. 2019-02-23 02:05:41 -05:00
Aaron Suen
c5ebe7f35a Fix stick firestarting.
Wasn't working when wielding more than one stick/staff, due to
implied count check added to fix log-stack-splitting issue.
2019-02-21 14:27:06 -05:00
Aaron Suen
1f719facc9 Merge branch 'master' into refac1 2019-02-09 00:36:14 -05:00
Aaron Suen
e90ad9fda4 Added the beginnings of a hint/guide system. 2019-02-08 23:45:41 -05:00
Aaron Suen
d67f736ac5 Merge node_is into match. 2019-02-03 12:44:33 -05:00
Aaron Suen
e78ba700a1 Some more adjustments.
Started flattening recipes.
2019-02-03 11:24:06 -05:00