Skip to content
Snippets Groups Projects
  1. Mar 12, 2017
  2. Mar 10, 2017
    • paramat's avatar
      Flint & steel sounds: Fix bugs caused by nil position · ad118ea9
      paramat authored
      Usage and tool break sounds were played at 'pointed_thing.above' which
      can be nil if not pointing at anything or at an entity. This caused
      sounds to be played to all players on a server non-positionally.
      
      Fallback to player pos for sounds if 'pointed_thing.above' is nil.
      
      Replace 'pt' variable with 'pointed_thing' in 'register_tool'.
      ad118ea9
    • paramat's avatar
      Mapgen: Use decoration sidelen 16 for jungletrees and junglegrass · c52ad140
      paramat authored
      Currently jungletrees and junglegrass use sidelen 80 for simplicity,
      but this results in a more uneven distribution of decorations. A more
      even distribution helps keep rainforest darker with a more unbroken
      canopy.
      This is also more consistent. 80 is based on the default mapchunk
      size, all other decorations use sidelen 16 or smaller to divide into
      any mapchunk size.
      c52ad140
    • paramat's avatar
      Tree schematics: Alter jungletree, aspen, pine, appletree · 0f0dd0f6
      paramat authored
      Denser jungletree for darker rainforest:
      Highest 'jungletree' nodes now prob 255.
      Add a 5th lower branch layer.
      Increase lower branch layer y-slice prob to 191.
      
      Aspen:
      Extend trunk upwards by 1 node to reduce leafdecay radius to 2.
      
      Pine:
      Make lower trunk 1 node longer so that lowest branches are more often
      higher off the ground, also to make pines taller.
      
      Appletree:
      Make 2 opposite branches prob 255, the other 2 prob 127, to avoid
      trees with 1 or 0 branches. Therefore also add random rotation.
      0f0dd0f6
  3. Mar 07, 2017
  4. Mar 05, 2017
  5. Mar 01, 2017
    • octacian's avatar
      Show title and author of book in description · c68b8274
      octacian authored
      Utilizes the new key-meta (as with nodes) and the ability to set the description of an itemstack with the `description` meta key. Includes code to convert old metadata to new key-meta.
      c68b8274
    • Auke Kok's avatar
      Allow interaction with nodes while wielding these items. · 78c632eb
      Auke Kok authored
      - beds
      - boats
      - carts
      - key/skeleton key
      - seeds
      
      All these had on_place handlers that did not allow nodes with
      an on_rightclick() handler to be used first (if not using
      sneak). This code is taken from the torches mod and applied
      everywhere.
      
      This allows all these items to e.g. be inserted into the `frame`
      mod's item frames.
      78c632eb
  6. Feb 28, 2017
    • paramat's avatar
      Biomes: New surface node for rainforest · d1b13255
      paramat authored
      Moist rainforest plant litter.
      Textures by npx.
      d1b13255
    • octacian's avatar
      Keys: Show owner in description · 9d3a5263
      octacian authored
      Utilizes several new features allowing the description of an item to be changed using the `description` meta key. This also moves keys from using the old single-value itemstack metadata system to the new node-like metadata system.
      9d3a5263
  7. Feb 25, 2017
    • paramat's avatar
      Corals: Smaller, less dense reefs · bb18eecc
      paramat authored
      bb18eecc
    • paramat's avatar
      Lavacooling: Return to chance = 2 · d5f1f964
      paramat authored
      Return to previous parameters interval = 1, chance = 2.
      Compensates for the increase in default active block radius.
      Large amounts of lava cooling at once is known to overload sound
      creation, producing error messages.
      d5f1f964
    • paramat's avatar
      Torches: Reduce light source level from 13 to 12 · 1ec31d84
      paramat authored
      As part of the original plan for a new lightcurve.
      
      With the old lightcurve lights were so dim all light sources had light
      source level 13 or 14 to compensate, resulting in almost no difference
      between torchlight and a maximum brightness light.
      
      The new lightcurve makes all light sources effectively much brighter by
      spreading visually-bright light further, torches are now slightly too
      bright. So now we can reduce the light source level of torches while
      actually making them effectively brighter than with the old lightcurve.
      This also creates a desirable difference between torchlight and a
      maximum-brightness light source.
      1ec31d84
    • MarkuBu's avatar
      Leafdecay: Node timer based implementation, API · 60e5b299
      MarkuBu authored
      This implements a node-timer based leafdecay mechanism, and exposes
      an API to use it in mods.
      
      The API is documented in game_api.txt.
      
      `default.register_leafdecay(leafdecaydef)`
      
      `leafdecaydef` is a table, with following members:
      {
      	trunks = { "default:tree"}, -- nodes considered trunks
      	leaves = { "default:leaves", "default:apple"}, -- nodes considered leaves
      	radius = 3, -- activates leafdecay this far from the trunk
      }
      
      The algorithm will drop `leaves` items in the area if no `trunks` are found
      in the `trunk_radius` sized area around the position of the leaf. If a node
      listed in `leaves` has a group `leafdecay_drop > 0`, then the item is dropped,
      otherwise the item is removed but not dropped.
      
      The algorithm also implements a value `default.leafdecay_speed` (default
      15) which can be modified to increase or decrease of the leaf decay. The
      algorithm will vary the actual speed a bit to introduce randomness.
      
      Leaf decay is randomized by 0.1 seconds to reduce the chance that
      decay happens many times on the same second interval. This requires
      nodetimer_interval to be set to values lower than 1.0 to have an
      effect.
      
      The leaves will decay between 2 and 10 seconds after digging the trunk,
      and happen at non-integer second intervals.
      
      -- The API was added by sofar.
      60e5b299
  8. Feb 21, 2017
  9. Feb 12, 2017
  10. Feb 11, 2017
  11. Feb 09, 2017
  12. Feb 02, 2017
    • paramat's avatar
      Mapgen: Dedicated registrations for mgv6 blob ores · 2e950ac6
      paramat authored
      Now that biomes are being specified for blob ores we need a separate
      set of blob ore registrations for mgv6 which has no Biome API biomes
      defined.
      Various minor improvements to mapgen.lua.
      2e950ac6
  13. Feb 01, 2017
  14. Jan 27, 2017
  15. Jan 26, 2017
  16. Jan 22, 2017
  17. Jan 20, 2017
  18. Jan 16, 2017
    • Auke Kok's avatar
      Revert "Doors: Remove ..." and "Doors: Allow the screwdriver to ..." · 6dcf541f
      Auke Kok authored
      This reverts commit 5e4a6e8a, and
                   commit 60cf3f85.
      
      The original door API rewrite I posted had all rotation disabled using
      the correct on_rotate() handler returning `false`. Two subsequent
      changes attempting first to enable simple rotation and second disabling
      that again changed the callback handler to a boolean `false`, which
      is incorrect use in the screwdriver API, and actually allows rotation.
      
      The proper way to disable rotation for facedir nodes it to use a full
      callback handler that does `return false`.
      6dcf541f
  19. Jan 15, 2017
  20. Jan 12, 2017
Loading