fix bucket water load

This commit is contained in:
Alexsandro Percy 2023-08-12 17:30:15 -03:00
parent 484fe12d2d
commit b751f470ab
3 changed files with 9 additions and 5 deletions

View File

@ -451,7 +451,7 @@ minetest.register_entity("steampunk_blimp:blimp", {
if not has_passengers and toolcaps and toolcaps.damage_groups and
toolcaps.groupcaps and toolcaps.groupcaps.choppy then
toolcaps.groupcaps and (toolcaps.groupcaps.choppy or toolcaps.groupcaps.axey_dig) then
local is_empty = true --[[false
local inventory = airutils.get_inventory(self)

View File

@ -70,11 +70,14 @@ function steampunk_blimp.load_water(self, player)
if water then
if self._water_level < steampunk_blimp.MAX_WATER then
local itemstack
--inv:remove_item("main", itemstack)
--itmstck:set_count(1)
--inv:remove_item("main", itmstck)
local indx = item_name:find('bucket:bucket')
local bucket_name = 'bucket:bucket'
if airutils.is_mcl then bucket_name = "mcl_buckets:bucket" end
local indx = item_name:find(bucket_name)
if indx then
itemstack = ItemStack("bucket:bucket_empty")
itemstack = ItemStack(bucket_name.."_empty")
--inv:add_item("main", itemstack)
player:set_wielded_item(itemstack)
end

View File

@ -2,7 +2,8 @@ steampunk_blimp={}
steampunk_blimp.gravity = tonumber(minetest.settings:get("movement_gravity")) or 9.8
steampunk_blimp.trunk_slots = 50
steampunk_blimp.fuel = {['default:coal_lump'] = {amount=1},['default:coalblock'] = {amount=10}}
steampunk_blimp.water = {['default:water_source'] = {amount=1},['default:river_water_source'] = {amount=1}, ['bucket:bucket_water'] = {amount=1}, ['bucket:bucket_river_water'] = {amount=1}} --bucket:bucket_empty
steampunk_blimp.water = {['default:water_source'] = {amount=1},['default:river_water_source'] = {amount=1}, ['bucket:bucket_water'] = {amount=1},
['bucket:bucket_river_water'] = {amount=1}, ['mcl_buckets:bucket_water'] = {amount=1}, ['mcl_buckets:bucket_river_water'] = {amount=1}} --bucket:bucket_empty
steampunk_blimp.ideal_step = 0.02
steampunk_blimp.rudder_limit = 30
steampunk_blimp.iddle_rotation = 0