Commit Graph

102 Commits

Author SHA1 Message Date
cora
efdd22d69f Fix fishbuckets placing water in the nether 2022-11-27 00:17:13 +01:00
cora
f14bfdc0cd Clear item meta when turning fishbucket to empty bucket
before it simply set a different itemstring, now it creates a
whole new itemstack
2022-11-26 22:18:46 +01:00
cora
66322a873b Fix infinite fishbucket placement in survival/creative 2022-11-26 22:18:46 +01:00
cora
e134cc5e65 make it possible to place fishbucket in flowing riverwater 2022-11-26 22:18:46 +01:00
cora
1fcedd1375 Fix fishbucket _on_dispense 2022-11-26 22:18:46 +01:00
cora
bb73e5f1cd Make it possible to pick up fish with river water bucket 2022-11-26 22:18:46 +01:00
cora
ebf4678e54 mcl_buckets whitespace fixes 2022-11-26 22:18:46 +01:00
cora
b4971b298d Move fish bucket code to separate file 2022-11-26 22:18:46 +01:00
cora
99db678a44 Fish buckets set properties from bucket item meta 2022-11-26 22:18:46 +01:00
cora
dd58bed5d1 refactor fish bucket code to not use bucket api
it was clearly not made for this
2022-11-26 22:18:46 +01:00
cora
53c1ed9fbf Merge pull request 'Axolotl' (#2870) from TheOnlyJoeEnderman/MineClone2:Axolotl into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2870
Reviewed-by: cora <cora@noreply.git.minetest.land>
2022-11-23 03:18:36 +00:00
TheOnlyJoeEnderman
3110f97868 Move axolotl_bucket to buckets mod 2022-11-07 08:19:44 +00:00
TheOnlyJoeEnderman
7e3d5f3553 add axolotl to bucket translation template 2022-11-04 01:58:04 +00:00
Johannes Fritz
8faa6aa9eb Fix buckets on Android 2022-11-01 03:46:45 +00:00
TheOnlyJoeEnderman
0624d9d169 Change spaces to tabs on line 127 2022-10-29 04:29:13 +00:00
TheOnlyJoeEnderman
d324197609 Fix duplicate/unnecessary "fish" in several names 2022-10-26 21:43:41 +00:00
TheOnlyJoeEnderman
f352e99eb6 add axolotl to list of bucketable fish 2022-10-21 00:44:18 +00:00
3raven
b15575469a Add translation 2022-08-22 22:15:37 +00:00
PrairieAstronomer
64f810ac76 Removed some unnessary code 2022-07-30 12:40:04 -06:00
PrairieAstronomer
a153e5bc33 Fixed Place Water in the Nether with Fish Buckets. 2022-07-30 12:21:16 -06:00
cora
3a7022ab66 Clean up buckets and cauldrons a little bit 2022-06-21 13:53:08 +02:00
cora
685cba6821 Allow placing lava into cauldrons 2022-06-21 13:44:52 +02:00
cora
7a8d20e124 take lava from cauldron with bucket 2022-06-21 13:08:20 +02:00
Elias Fleckenstein
f6a40ffb78
Run tools/strip_trailing_whitespace.sh 2022-05-26 07:29:28 +02:00
Emojigit
af8681c143 mcl_buckets 2022-02-23 23:58:05 +01:00
kabou
af132cc523 Reinstate nil check in on_place_bucket.
* Oops, nil checks on registered_node[name] were erroneously optimized
  away, risking crashes.  Reinstate those checks.
2022-02-21 18:00:56 +01:00
kabou
e54502edd6 Add more local aliases for minetest.* namespace functions
* Add locals for
  - minetest.is_creative_enabled
  - minetest.is_protected
  - minetest.record_protection_violation
2022-02-20 20:24:55 +01:00
kabou
639bf936c5 Use alias for minetest.* namespace function call.
* Fix one missed minetest.get_node use in earlier commit.
2022-02-20 19:52:05 +01:00
kabou
d2261426c3 Remove redundant variables in on_place_bucket.
The function on_place_bucket defined a couple of variables that were
used only once or in a redundant check.  After removal of the redundant
check in a previous commit, all use-once variables can now be substituted
with their assignment expressions.
2022-02-20 18:46:23 +01:00
kabou
88ce1e3662 Remove redundant logic.
The function on_place_bucket contains the following logic:
  if not a and not b then return x end
  if a then
    foo(a)
  elseif b then
    foo(b)
  else
    return x
  end

The "if not a and not b then .." is removed because the case is handled
by the else case later on.  This will allow some further simplifications.
2022-02-20 18:46:23 +01:00
kabou
b3aed9d6b8 Use proper get_item_group accessor.
Instead of directly accessing the group table in node definitions, use
the proper minetest.get_item_group accessor to test for "cauldron"
group.
Also adds local alias get_item_group for the global minetest call.
2022-02-20 18:46:23 +01:00
kabou
13baa68b67 Fixed missed alias uses and added set_node alias.
Two instances of add_node and add_item still used the full minetest
call, substitute the alias.
Added a set_node alias for several minetest.set_node calls.
2022-02-20 18:46:23 +01:00
kabou
315f251584 Add local to speedup global function access.
The minetest.registered_nodes function is called from multiple places.
Define a local alias registered_nodes and substitute it in all calls.
2022-02-20 18:46:23 +01:00
kabou
584a75df76 Fix filling cauldrons with water.
When using a bucket of water on a cauldron, this would not fill the
cauldron as expected, but deposit a water source block on top of the
cauldron instead.

Applied patch from mineclone5 #38 (commit #
698c29733f06a7fcb7e755bf26ee46b33b00699b) from mineclone5 that fixes
this problem.
2022-02-20 18:46:23 +01:00
NO11
c40c05f594 Exact MC behavior 2022-02-17 15:32:58 +00:00
NO11
3cfcd1355f Add missing dependency 2022-02-17 14:42:01 +00:00
NO11
4707cd4526 Correct bucket behavior 2022-02-17 14:36:48 +00:00
AFCMS
b364faa7c7 make bucket use 5 lenght raycast 2021-07-17 16:22:46 +02:00
AFCMS
49bde37a5e rewrite README to markdown 2021-07-15 01:03:50 +02:00
AFCMS
dc17cc91a3 make raycast start from player head 2021-07-15 00:01:56 +02:00
AFCMS
873a1e73dc fix documentation 2021-07-14 15:22:27 +02:00
AFCMS
8fff20eec9 fix misleading API 2021-07-14 15:18:12 +02:00
AFCMS
ec6086d8e6 cleanup 2021-07-14 15:14:23 +02:00
AFCMS
6d7aafe0d4 Revert "more mt like API (improved readability)"
This reverts commit 88e59d3592.
2021-07-14 15:13:40 +02:00
AFCMS
cf5703d528 fix luacheck warnings 2021-07-14 11:53:37 +02:00
AFCMS
88e59d3592 more mt like API (improved readability) 2021-07-14 11:52:27 +02:00
AFCMS
cd08df175c add better documentation 2021-07-14 11:41:09 +02:00
AFCMS
ca277b6769 mcl_bucket code refactoring + fix extra_check noot working 2021-07-14 11:29:15 +02:00
AFCMS
b0127fc1c3 fix bucket dispense function 2021-07-14 09:18:15 +02:00
AFCMS
d26b1b1402 use mcl_util.call_on_rightclick insteed of current implementation 2021-07-14 09:10:01 +02:00