mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-12 01:21:20 -07:00
Implemented blast furnace sink fill-bucket option
This commit is contained in:
parent
4d652e7f02
commit
f9dbfe9a77
1 changed files with 18 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ class BlastFurnaceListeners : InteractionListener {
|
||||||
val brokenBelt = 9103
|
val brokenBelt = 9103
|
||||||
val brokenCog = 9105
|
val brokenCog = 9105
|
||||||
val tGauge = 9089
|
val tGauge = 9089
|
||||||
|
val sink = 9143
|
||||||
val playerOre = intArrayOf(
|
val playerOre = intArrayOf(
|
||||||
Items.IRON_ORE_440,
|
Items.IRON_ORE_440,
|
||||||
Items.COPPER_ORE_436,
|
Items.COPPER_ORE_436,
|
||||||
|
|
@ -386,5 +387,22 @@ class BlastFurnaceListeners : InteractionListener {
|
||||||
}
|
}
|
||||||
return@on true
|
return@on true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**Handles filling buckets from the sink*/
|
||||||
|
|
||||||
|
on(sink, SCENERY,"fill-bucket"){ player, _ ->
|
||||||
|
player.pulseManager.run(object : Pulse(1){
|
||||||
|
override fun pulse(): Boolean {
|
||||||
|
if(removeItem(player, Items.BUCKET_1925))
|
||||||
|
{
|
||||||
|
animate(player, 832)
|
||||||
|
sendMessage(player, "You fill the bucket from the sink.")
|
||||||
|
addItemOrDrop(player, Items.BUCKET_OF_WATER_1929)
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return@on true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue